2016-11-09 11:31:23 -05:00
|
|
|
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
|
|
|
# Contributor: Konrad <konrad AT knauber DOT name>
|
|
|
|
# Contributor: Luka Perkov <archlinux <at> lukaperkov <dOt> net>
|
|
|
|
# Contributor: Fernando M <f <at> beford.net>
|
|
|
|
# Author: Wintershade <Wintershade AT google mail DOT com>
|
|
|
|
|
|
|
|
pkgname=rpm-org
|
2017-03-13 12:19:25 -04:00
|
|
|
pkgver=4.13.0.1
|
2016-11-09 11:31:23 -05:00
|
|
|
_pkgver=$pkgver
|
|
|
|
#_pkgver=4.12.0-rc1
|
2016-11-28 17:29:12 -05:00
|
|
|
pkgrel=1
|
2016-11-09 11:31:23 -05:00
|
|
|
pkgdesc="RPM Package Manager - RPM.org fork, used in major RPM distros"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.rpm.org/"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('lua>=5.1' 'file' 'nss>=3.12' 'popt' 'elfutils' 'libarchive' 'libcap')
|
|
|
|
makedepends=('python2' 'python')
|
|
|
|
optdepends=('libdbus: systemd inhibit plugin')
|
|
|
|
conflicts=('rpm' 'rpmextract')
|
|
|
|
options=('!libtool')
|
|
|
|
provides=("rpm=${pkgver}" 'rpmextract=1.0-4')
|
2017-03-13 12:19:25 -04:00
|
|
|
#source=(https://github.com/rpm-software-management/rpm/releases/download/rpm-${pkgver}-release/rpm-${pkgver}.tar.bz2
|
|
|
|
source=(http://ftp.rpm.org/releases/rpm-4.13.x/rpm-$pkgver.tar.bz2
|
2016-11-28 17:29:12 -05:00
|
|
|
rpmextract.sh rpmlib-filesystem-check.patch bfdfix.patch)
|
2017-03-13 12:19:25 -04:00
|
|
|
sha1sums=('9566f95f38fcb214e439c552f378c2f64ba0aff9'
|
2016-11-09 11:31:23 -05:00
|
|
|
'74849919207885ae024f1ab8ed68a76474d67ad7'
|
|
|
|
'0c5fa516dde1f10211af896c729e4b00c313e12b'
|
2016-11-28 17:29:12 -05:00
|
|
|
'456d4a2c9f71c2e3bfa5011800855a73a55aa5bc')
|
2016-11-09 11:31:23 -05:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${srcdir}/rpm-${_pkgver}
|
|
|
|
patch -p1 < ../rpmlib-filesystem-check.patch
|
2016-11-28 17:29:12 -05:00
|
|
|
patch -p1 < ../bfdfix.patch
|
|
|
|
}
|
2016-11-09 11:31:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/rpm-${_pkgver}
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--enable-python \
|
|
|
|
--with-external-db \
|
|
|
|
--with-lua \
|
|
|
|
--with-cap \
|
|
|
|
CPPFLAGS="`pkg-config --cflags nss`" \
|
|
|
|
PYTHON=python2
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/rpm-${_pkgver}
|
|
|
|
make prefix=${pkgdir}/usr localstatedir=${pkgdir}/var install
|
|
|
|
rmdir ${pkgdir}/var/tmp
|
|
|
|
rmdir ${pkgdir}/var
|
|
|
|
# rpmextract using bsdtar, needs libarchive
|
|
|
|
install -m755 ${srcdir}/rpmextract.sh ${pkgdir}/usr/bin/
|
|
|
|
|
|
|
|
# move rpm from /bin to /usr/bin
|
|
|
|
mv ${pkgdir}/bin/rpm ${pkgdir}/usr/bin/
|
|
|
|
rm ${pkgdir}/usr/bin/rpm{query,verify}
|
|
|
|
cd ${pkgdir}/usr/bin
|
|
|
|
ln -s rpm rpmquery
|
|
|
|
ln -s rpm rpmverify
|
|
|
|
rm -r ${pkgdir}/bin/
|
|
|
|
|
|
|
|
# also install python 3 files
|
|
|
|
# building with python 3 files as default doesn't seem to work
|
|
|
|
cd ${srcdir}/rpm-${_pkgver}
|
|
|
|
cd python
|
|
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
|
|
|
}
|