aboutsummaryrefslogtreecommitdiffstats
path: root/main/nss/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/nss/APKBUILD')
-rw-r--r--main/nss/APKBUILD19
1 files changed, 18 insertions, 1 deletions
diff --git a/main/nss/APKBUILD b/main/nss/APKBUILD
index 86c0c403b1..2acb2d8167 100644
--- a/main/nss/APKBUILD
+++ b/main/nss/APKBUILD
@@ -2,7 +2,7 @@
pkgname=nss
pkgver=3.12.8
_ver=3_12_8
-pkgrel=1
+pkgrel=2
pkgdesc="Mozilla Network Security Services"
url="http://www.mozilla.org/projects/security/pki/nss/"
arch="all"
@@ -107,6 +107,23 @@ package() {
|| return 1
}
+dev() {
+ local i= j=
+ depends="$pkgname $depends_dev"
+
+ cd "$pkgdir" || return 0
+ for i in usr/include usr/lib/pkgconfig; do
+ if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then
+ d="$subpkgdir/${i%/*}" # dirname $i
+ mkdir -p "$d"
+ mv "$pkgdir/$i" "$d"
+ rmdir "$pkgdir/${i%/*}" 2>/dev/null
+ fi
+ done
+
+ return 0
+}
+
libnss() {
pkgdesc="Mozilla Network Security Service libraries"
mkdir -p "$subpkgdir"/usr/