diff options
Diffstat (limited to 'main/libpri')
-rw-r--r-- | main/libpri/APKBUILD | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/main/libpri/APKBUILD b/main/libpri/APKBUILD index 2815d1b936..9e489c9e10 100644 --- a/main/libpri/APKBUILD +++ b/main/libpri/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=libpri -pkgver=1.4.12 +pkgver=1.4.13 _pkgver=$pkgver pkgrel=0 pkgdesc="Primary Rate ISDN (PRI) library" @@ -14,20 +14,22 @@ install= subpackages="$pkgname-dev" source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$_pkgver.tar.gz" +_builddir="$srcdir/$pkgname-$_pkgver" + build() { - cd "$srcdir/$pkgname-$_pkgver" - for i in ../*.patch; do - [ -r "$i" ] || continue - msg "Applying $i" - patch -p1 < $i || return 1; + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;; + esac done make LDCONFIG="echo" || return 1 } package() { - cd "$srcdir/$pkgname-$_pkgver" + cd "$_builddir" make LDCONFIG="echo" INSTALL_PREFIX="$pkgdir" install } -md5sums="9de39b866f049cc20a4f431cc6245166 libpri-1.4.12.tar.gz" +md5sums="275ce1d772f7efd28075e479411bbdeb libpri-1.4.13.tar.gz" |