blob: 615c4f10a64f450b998ccd0dfd341a9865c1667a (
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
42
43
44
45
46
47
48
49
50
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=rpm
pkgver=4.13.0
pkgrel=1
pkgdesc="The RPM package manager"
url="http://www.rpm.org/"
arch="all"
license="GPL2 LGPL2+"
depends=""
depends_dev="nspr-dev nss-dev db-dev lua-dev zlib-dev bzip2-dev xz-dev
libelf-dev file-dev popt-dev libcap-dev acl-dev libarchive-dev
binutils-dev"
makedepends="$depends_dev graphviz gettext-dev python2-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py-rpm:py_rpm"
source="http://ftp.rpm.org/releases/rpm-4.13.x/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/rpm-$pkgver
build() {
cd "$builddir"
_EXT_CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss" \
CFLAGS="$CFLAGS $_EXT_CPPFLAGS" CPPFLAGS="$CPPFLAGS $_EXT_CPPFLAGS" \
LIBS="$LIBS -lintl" \
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-external-db \
--with-cap --with-acl \
--enable-python \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
py_rpm() {
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib || return 1
}
md5sums="f64e70c7548911da51a11651a789e30e rpm-4.13.0.tar.bz2"
sha256sums="221166b61584721a8ca979d7d8576078a5dadaf09a44208f69cc1b353240ba1b rpm-4.13.0.tar.bz2"
sha512sums="d13d9170d5aba93698acfaa88a8ef4cddc9dc9d57aff88fa6947b23efcb11b51d4953f8ed2804b2b052fc6c7d9a95d2f5da599b9c17490c643bf8eff7b68f6e9 rpm-4.13.0.tar.bz2"
|