blob: 41f132a87ddf9173f99baf635374441624164bc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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' 'mips64el')
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
}
|