aboutsummaryrefslogtreecommitdiffstats
path: root/main/popt
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-03 08:17:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-03 08:18:07 +0000
commit6f2d31148bb165f060d3a3151715830ffae55803 (patch)
tree6e6c68dbab396724f33093033748519527bfd3c2 /main/popt
parent762bc44f1771a33ca258a1523b87e98436881b39 (diff)
downloadaports-6f2d31148bb165f060d3a3151715830ffae55803.tar.bz2
aports-6f2d31148bb165f060d3a3151715830ffae55803.tar.xz
main/popt: move to /lib
ref #669
Diffstat (limited to 'main/popt')
-rw-r--r--main/popt/APKBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/popt/APKBUILD b/main/popt/APKBUILD
index 9f473cc4a2..27c744a636 100644
--- a/main/popt/APKBUILD
+++ b/main/popt/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=popt
pkgver=1.16
-pkgrel=2
+pkgrel=3
pkgdesc="A commandline option parser"
url="http://rpm5.org"
arch="all"
@@ -13,12 +13,22 @@ subpackages="$pkgname-doc $pkgname-dev"
build ()
{
cd "$srcdir"/$pkgname-$pkgver
- ./configure --prefix=/usr
+ ./configure --prefix=/usr \
+ --libdir=/lib \
+ || return 1
make || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make DESTDIR=$pkgdir install || return 1
+ rm -f "$pkgdir"/lib/*.la
}
+
+dev() {
+ default_dev
+ mkdir -p "$subpkgdir"/lib/
+ mv "$pkgdir"/lib/*.a "$subpkgdir"/lib/
+}
+
md5sums="3743beefa3dd6247a73f8f7a32c14c33 popt-1.16.tar.gz"