summaryrefslogtreecommitdiff
path: root/testing/popt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-05 23:14:55 +0000
committerroot <root@rshg054.dnsready.net>2011-11-05 23:14:55 +0000
commit82fd7f658509afe9737e14e8d1ee9fefe13c9d1f (patch)
tree9c41c06e2e0b0ef270dc8eec367171163497f622 /testing/popt
parent3026bb55941e3b04b56f5fb41b88941c6c2ce0cd (diff)
Sat Nov 5 23:14:55 UTC 2011
Diffstat (limited to 'testing/popt')
-rw-r--r--testing/popt/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/popt/PKGBUILD b/testing/popt/PKGBUILD
new file mode 100644
index 000000000..fc6688a4f
--- /dev/null
+++ b/testing/popt/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 142031 2011-11-04 09:28:13Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: dorphell <dorphell@archlinux.org>
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+# Contributor: John Proctor <jproctor@prium.net>
+
+pkgname=popt
+pkgver=1.16
+pkgrel=4
+pkgdesc="A commandline option parser"
+arch=('i686' 'x86_64')
+url="http://rpm5.org"
+license=('custom')
+depends=('glibc')
+options=('!libtool')
+source=(http://rpm5.org/files/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('3743beefa3dd6247a73f8f7a32c14c33')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # move libs in /lib
+ install -Dm755 "${pkgdir}"/usr/lib/libpopt.so.0.0.0 \
+ ${pkgdir}/lib/libpopt.so.0.0.0
+
+ rm "${pkgdir}"/usr/lib/libpopt.so*
+ ln -sf /lib/libpopt.so "${pkgdir}"/usr/lib/libpopt.so
+ ln -sf libpopt.so.0 "${pkgdir}"/lib/libpopt.so
+ ln -sf libpopt.so.0.0.0 "${pkgdir}"/lib/libpopt.so.0
+
+ # install license
+ install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}