updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rpm / PKGBUILD
blob37735806a2d95b9062ef03705f079c132026f04a
1 # Maintainer: David Strobach <lalochcz@gmail.com>
2 # Contributor: Paolo Stivanin <admin AT polslinux DOT it>
4 pkgname=rpm
5 pkgver=5.3.6
6 pkgrel=2
7 _pkgrel=0
8 _pkgreldate=20101201
9 pkgdesc="The RedHat Package Manager"
10 arch=('i686' 'x86_64')
11 url="http://rpm5.org/"
12 license=('GPL')
13 groups=('system')
14 depends=('perl' 'python2' 'zlib' 'beecrypt' 'pcre' 'file' 'neon' 'xz' 'popt' 'db5.1')
15 conflicts=("${pkgname}-org" 'rpmextract')
16 options=('!emptydirs')
17 source=("http://rpm5.org/files/$pkgname/$pkgname-5.3/$pkgname-$pkgver-$_pkgrel.$_pkgreldate.src.rpm")
18 md5sums=('d4c4967e945609eb6bf751f8d9320bf2')
20 build() {
21   msg "Preparing sources"
22   bsdtar -xf $pkgname-$pkgver.tar.gz
23   msg "Starting build"
24   cd $pkgname-$pkgver
25   LDFLAGS="${LDFLAGS} -Wl,--no-as-needed"
26   ./configure --prefix=/usr \
27               --sysconfdir=/etc \
28               --localstatedir=/var \
29               --with-python \
30               --with-python-inc-dir=/usr/include/python2.7 \
31               --with-python-lib-dir=/usr/lib/python2.7 \
32               --with-ruby=none \
33               --without-selinux \
34               --with-popt=/usr/lib \
35               --with-pcre=/usr/lib \
36               --with-bzip2=/usr/lib \
37               --with-xz=/usr/lib \
38               --with-file=/usr/lib \
39               --with-neon=external \
40               --with-beecrypt=external \
41               --disable-openmp \
42               --disable-build-lafiles
43   make DESTDIR="$pkgdir"
46 package() {
47   cd $srcdir/$pkgname-$pkgver
48   make DESTDIR="$pkgdir" install