summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorClarence2020-12-16 14:48:32 +0800
committerClarence2020-12-16 14:48:32 +0800
commite6eab1bebd0712c89aa71851a6fd52b1408f3408 (patch)
tree0dc0fecbafc8146a3b43c21f92cc62f1cec90526
parent59d981b03343a084f6ec976954c782ccfc913b15 (diff)
downloadaur-e6eab1bebd0712c89aa71851a6fd52b1408f3408.tar.gz
add sofia-sip docs.
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD22
2 files changed, 25 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0bf938bce31..098068b9b64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,15 +5,18 @@ pkgbase = sofia-sip-fs
url = https://github.com/freeswitch/sofia-sip
arch = x86_64
license = LGPL
- depends = glib2
- depends = openssl
- depends = gawk
- provides = sofia-sip
- conflicts = sofia-sip
source = sofia-sip-fs-1.13.2.tar.xz::https://github.com/freeswitch/sofia-sip/archive/v1.13.2.tar.gz
source = 0001-Compatible-with-the-new-version-of-libckeck.patch
sha256sums = b9eca9688ce4b28e062daf0933c3bf661fb607e7afafa71bda3e8f07eb88df44
sha256sums = 7e52ec8ee1340042982c2d7b5612e37b7140daea5e5b67e2bd392b2c367913de
pkgname = sofia-sip-fs
+ depends = glib2
+ depends = openssl
+ depends = gawk
+ optdepends = spandsp-docs: Documentation
+ provides = sofia-sip
+ conflicts = sofia-sip
+
+pkgname = sofia-sip-docs
diff --git a/PKGBUILD b/PKGBUILD
index effe2d84e68..e1b674504c2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,12 @@
# Maintainer: Clarence <xjh.azzbcc@gmail.com>
_pkgname=sofia-sip
-pkgname=${_pkgname}-fs
+pkgname=(${_pkgname}-fs ${_pkgname}-docs)
pkgver=1.13.2
pkgrel=1
pkgdesc="An open-source SIP User-Agent library (FreeSWITCH version)"
arch=('x86_64')
url="https://github.com/freeswitch/sofia-sip"
license=('LGPL')
-depends=('glib2' 'openssl' 'gawk')
-provides=('sofia-sip')
-conflicts=('sofia-sip')
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/freeswitch/$_pkgname/archive/v$pkgver.tar.gz"
'0001-Compatible-with-the-new-version-of-libckeck.patch')
sha256sums=('b9eca9688ce4b28e062daf0933c3bf661fb607e7afafa71bda3e8f07eb88df44'
@@ -27,7 +24,22 @@ build() {
make
}
-package() {
+package_sofia-sip-fs() {
+ depends=('glib2' 'openssl' 'gawk')
+ optdepends=('spandsp-docs: Documentation')
+ provides=('sofia-sip')
+ conflicts=('sofia-sip')
+
cd "$_pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
+
+package_sofia-sip-docs() {
+ cd "$_pkgname-$pkgver"
+
+ make doxygen
+ install -dm755 "${pkgdir}/usr/share/doc/$_pkgname"
+ cp -frv "libsofia-sip-ua/docs/html" "${pkgdir}/usr/share/doc/$_pkgname"
+ cp -frv "libsofia-sip-ua-glib/docs/html" "${pkgdir}/usr/share/doc/$_pkgname"
+ find "${pkgdir}/usr/share/doc/$_pkgname" -name "*.map" | xargs rm -fv
+}