updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / rpm-org / PKGBUILD
bloba1f68d859a13d6de2960b76958e3e7ff25bf43db
1 # Author: Wintershade <Wintershade AT google mail DOT com>
2 # Contributor: Konrad <konrad AT knauber DOT name>
3 # Contributor: Luka Perkov <archlinux <at> lukaperkov <dOt> net>
4 # Contirbutor: Fernando M <f <at> beford.net>
6 pkgname=rpm-org
7 pkgver=4.9.1.1
8 pkgrel=1
9 pkgdesc="RPM Package Manager - RPM.org fork, used in major RPM distros"
10 arch=('i686' 'x86_64')
11 url=("http://www.rpm.org/")
12 license=('GPL')
13 depends=('lua' 'file' 'nss' 'perl' 'python2')
14 conflicts=('rpm' 'rpmextract')
15 provides=('rpm=${pkgver}' 'rpmextract=1.0-4')
16 source=(http://rpm.org/releases/rpm-4.9.x/rpm-${pkgver}.tar.bz2
17         'rpmextract.sh')
18 md5sums=('de64e7410721aa8e377adb8430cfc9e2'
19         'a7b527e4c210e66ef72532c606072e0d')
22 build() {
23         cd ${srcdir}/rpm-${pkgver}
24         ./configure --localstatedir=/var --prefix=/usr --without-selinux --disable-rpath --with-external-db --enable-python CPPFLAGS="`pkg-config --cflags nss`" PYTHON=python2
25         make
28 package() {
29         cd ${srcdir}/rpm-${pkgver}
30         make prefix=${pkgdir}/usr localstatedir=${pkgdir}/var install
31         rmdir ${pkgdir}/var/tmp
32         install -m755 ${srcdir}/rpmextract.sh ${pkgdir}/usr/bin/