103ab731ab
* runit is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
86 lines
2.2 KiB
Bash
86 lines
2.2 KiB
Bash
# Template file for 'rpm'
|
|
pkgname=rpm
|
|
version=4.16.1.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-lua --with-cap --with-acl --with-external-db
|
|
--enable-python PYTHON=python3 --sharedstatedir=/var/lib"
|
|
hostmakedepends="automake gettext-devel libtool nss-devel pkg-config
|
|
python3-setuptools"
|
|
makedepends="libgcrypt-devel binutils-devel db-devel elfutils-devel file-devel libarchive-devel
|
|
libcap-devel lua52-devel nss-devel popt-devel python3-devel libgomp-devel"
|
|
short_desc="Red Hat Package Management Utils"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://rpm.org"
|
|
changelog="https://rpm.org/wiki/Releases/${version}.html"
|
|
distfiles="http://ftp.rpm.org/releases/rpm-4.16.x/rpm-${version}.tar.bz2"
|
|
checksum=513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d
|
|
python_version=3
|
|
conflicts="rpmextract>=0" # Both provide rpm2cpio
|
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
|
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nss"
|
|
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nspr"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# Musl requires gettext to be included and it's cflag added otherwise
|
|
# it fails with _nl_msg_cat_cntr undefined reference error
|
|
*-musl)
|
|
makedepends+=" gettext-devel"
|
|
LDFLAGS+=" -lintl"
|
|
;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
librpm-devel_package() {
|
|
depends="librpm-${version}_${revision} librpmbuild-${version}_${revision}
|
|
librpmsign-${version}_${revision} librpmio-${version}_${revision} db-devel
|
|
popt-devel liblzma-devel zlib-devel bzip2-devel nss-devel lua52-devel"
|
|
short_desc+=" - development files"
|
|
depends="${makedepends}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
rpm-python3_package() {
|
|
depends="rpm"
|
|
short_desc+=" - python bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
|
|
librpm_package() {
|
|
short_desc+=" - rpm library"
|
|
pkg_install() {
|
|
vmove "usr/lib/librpm.so.*"
|
|
}
|
|
}
|
|
|
|
librpmbuild_package() {
|
|
short_desc+=" - rpmbuild library"
|
|
pkg_install() {
|
|
vmove "usr/lib/librpmbuild.so.*"
|
|
}
|
|
}
|
|
|
|
librpmsign_package() {
|
|
short_desc+=" - rpmsign library"
|
|
pkg_install() {
|
|
vmove "usr/lib/librpmsign.so.*"
|
|
}
|
|
}
|
|
|
|
librpmio_package() {
|
|
short_desc+=" - rpmio library"
|
|
pkg_install() {
|
|
vmove "usr/lib/librpmio.so.*"
|
|
}
|
|
}
|