From fcce4e670cd2d81990b3f50e8a682b44d40a73cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Tue, 2 Sep 2014 06:41:22 -0300 Subject: remove parabola suffix and add complex pkgrel on the packages --- libre/abs/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 libre/abs/PKGBUILD (limited to 'libre/abs/PKGBUILD') diff --git a/libre/abs/PKGBUILD b/libre/abs/PKGBUILD new file mode 100644 index 000000000..e9f313c9c --- /dev/null +++ b/libre/abs/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 215815 2014-06-30 16:27:03Z fyan $ +# Maintainer (Arch): Allan McRae + +pkgname=abs +pkgver=2.4.4 +pkgrel=2.parabola1 +pkgdesc="Utilities to download and work with the Arch Build System (ABS), with Parabola repos support" +arch=('i686' 'x86_64' 'mips64el') +url="http://projects.archlinux.org/abs.git/" +license=('GPL') +replaces=('abs-libre' 'abs-parabola') +conflicts=('abs-libre' 'abs-parabola') +depends=('bash' 'rsync') +backup=(etc/abs.conf) +source=(ftp://ftp.archlinux.org/other/abs/${pkgname}-${pkgver}.tar.gz{,.sig}) +md5sums=('7258c739a93e02a4f31f114e9fc3b0ba' + 'a628f7d5b1cd1e838366b88709690c24') + +build() { + cd "$pkgname-$pkgver" + + make +} + +package() { + cd "$pkgname-$pkgver" + + make DESTDIR="${pkgdir}" install + + # Add readme file, and make base /var/abs path + install -dm755 "${pkgdir}"/var/abs/local/ + install -Dm644 README "${pkgdir}"/var/abs/README + + # make adjustments to abs.conf + sed -i -e 's|i686 or x86_64|i686, x86_64 or mips64el|' "${pkgdir}"/etc/abs.conf + sed -i -e 's|rsync.archlinux.org|parabolagnulinux.org|' "${pkgdir}"/etc/abs.conf + sed -i -e 's|(core|(libre !libre-testing core|' "${pkgdir}"/etc/abs.conf + sed -i -e 's|!staging !community-staging !gnome-unstable !kde-unstable|!pcr !nonprism !kernels !cross !java !java-ugly !~smv !~xihh !~brendan !~lukeshu !~emulatorman !~aurelien !~jorginho !~coadde !~drtan|' "${pkgdir}"/etc/abs.conf + if [[ $CARCH != "x86_64" ]]; then + sed -i -e 's| multilib||' -e 's| !multilib-testing||' "${pkgdir}"/etc/abs.conf + fi + if [[ $CARCH = "x86_64" ]]; then + sed -i -e 's|community|community libre-multilib|' -e 's|!community-testing|!community-testing !libre-multilib-testing|' "${pkgdir}"/etc/abs.conf + fi + sed -i "s/ARCH=.*/ARCH=$CARCH/" "${pkgdir}"/etc/abs.conf +} -- cgit v1.2.3-2-g168b