summaryrefslogtreecommitdiff
path: root/core/popt
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /core/popt
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/popt')
-rw-r--r--core/popt/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/core/popt/PKGBUILD b/core/popt/PKGBUILD
new file mode 100644
index 000000000..4445eb0a1
--- /dev/null
+++ b/core/popt/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 105825 2011-01-12 14:39:27Z stephane $
+# Maintainer: 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=3
+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
+}