summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 17 insertions, 5 deletions
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
+}