summaryrefslogtreecommitdiff
path: root/libre/abs-parabola
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-25 17:37:48 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-25 17:37:48 -0300
commit12eb1745c80473b78502a4fba65c54ee9cb560d2 (patch)
tree5692e66216e72585d9034d4ce7d42a9350e7d856 /libre/abs-parabola
parent5035e42b8394e28791b1627a41051a769d209954 (diff)
downloadabslibre-12eb1745c80473b78502a4fba65c54ee9cb560d2.tar.gz
abslibre-12eb1745c80473b78502a4fba65c54ee9cb560d2.tar.bz2
abslibre-12eb1745c80473b78502a4fba65c54ee9cb560d2.zip
abs-parabola: add parabola suffix for the package
Diffstat (limited to 'libre/abs-parabola')
-rw-r--r--libre/abs-parabola/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/libre/abs-parabola/PKGBUILD b/libre/abs-parabola/PKGBUILD
new file mode 100644
index 000000000..7f8d12340
--- /dev/null
+++ b/libre/abs-parabola/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 215815 2014-06-30 16:27:03Z fyan $
+# Maintainer (Arch): Allan McRae <allan@archlinux.org>
+
+_pkgname=abs
+pkgname=abs-parabola
+pkgver=2.4.4
+pkgrel=2
+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' 'abs-libre')
+conflicts=('abs' 'abs-libre')
+provides=('abs')
+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
+}