aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-06 16:36:49 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-20 10:01:08 +0000
commite5c50b5df0c7e3687d0d3f4a63403b70ec51ebd6 (patch)
treee7aecb8a6d14c8826e15ad9188d03fbd6be870c1 /main
parent4ddf33edfbdd97b32e7528969c5456af29358bff (diff)
downloadaports-e5c50b5df0c7e3687d0d3f4a63403b70ec51ebd6.tar.gz
aports-e5c50b5df0c7e3687d0d3f4a63403b70ec51ebd6.tar.bz2
aports-e5c50b5df0c7e3687d0d3f4a63403b70ec51ebd6.tar.xz
main/nspr: modernise, mark as having no test suite
Diffstat (limited to 'main')
-rw-r--r--main/nspr/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/main/nspr/APKBUILD b/main/nspr/APKBUILD
index 591f6e5702..ff59ebe657 100644
--- a/main/nspr/APKBUILD
+++ b/main/nspr/APKBUILD
@@ -1,11 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nspr
pkgver=4.15
-pkgrel=0
+pkgrel=1
pkgdesc="Netscape Portable Runtime"
url="http://www.mozilla.org/projects/nspr/"
arch="all"
license="MPL-1.1 GPL2 LGPL-2.1"
+options="!check" # No test suite.
depends=
# -dev package does not ship any symlinks so dependency cannot be autodetected
depends_dev="nspr"
@@ -15,18 +16,10 @@ source="http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$pkgver/src/nspr-$
fix-getproto.patch
"
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
+ cd "$builddir"
mkdir build inst
- for i in $source; do
- case $i in
- *.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- ;;
- esac
- done
+ default_prepare
}
build() {
@@ -34,7 +27,7 @@ build() {
if [ "$CARCH" = "x86_64" ];then
conf="--enable-64bit"
fi
- cd "$_builddir"/build
+ cd "$builddir"/build
# ./nspr/pr/include/md/_linux.h tests only __GLIBC__ version
# to detect c-library features, list musl features here for now.
CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE" \
@@ -45,23 +38,22 @@ build() {
--disable-debug \
--enable-optimize \
--enable-ipv6 \
- $conf \
- || return 1
- make CC="${CC:-gcc}" CXX="${CXX:-g++}" || return 1
+ $conf
+ make CC="${CC:-gcc}" CXX="${CXX:-g++}"
}
package() {
local file=
- cd "$_builddir"/build
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
cd "$pkgdir"/usr/lib
rm -f *.a
- cd "$_builddir"/build/config
- install -Dm755 nspr-config "$pkgdir"/usr/bin/nspr-config || return 1
- install -Dm644 nspr.pc "$pkgdir"/usr/lib/pkgconfig/nspr.pc || return 1
+ cd "$builddir"/build/config
+ install -Dm755 nspr-config "$pkgdir"/usr/bin/nspr-config
+ install -Dm644 nspr.pc "$pkgdir"/usr/lib/pkgconfig/nspr.pc
rm -rf "$pkgdir"/usr/bin/prerr.properties \
"$pkgdir"/usr/bin/compile-et.pl \
"$pkgdir"/usr/share/aclocal/nspr.m4 \