summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-07-22 15:46:08 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-07-22 15:46:08 -0300
commitd515140034bd498830dc5ee9fa5af64ad9aca04d (patch)
tree0fbb440b695f399d01ee7cf0717b531f2c40d10e
parent58ede4aa3da3e089a3e4879efc208146f502a970 (diff)
libre/abs-libre-2.4.2-1
-rw-r--r--libre/abs-libre/PKGBUILD38
-rw-r--r--libre/abs-libre/abs.install13
2 files changed, 51 insertions, 0 deletions
diff --git a/libre/abs-libre/PKGBUILD b/libre/abs-libre/PKGBUILD
new file mode 100644
index 000000000..fa23952bd
--- /dev/null
+++ b/libre/abs-libre/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 101993 2010-12-03 13:48:19Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+
+_pkgname=abs
+pkgname=abs-libre
+pkgver=2.4.2
+pkgrel=1
+pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
+arch=('i686' 'x86_64')
+url="http://projects.archlinux.org/abs.git/"
+license=('GPL')
+depends=('bash' 'rsync')
+backup=(etc/abs.conf)
+install=abs.install
+source=(ftp://ftp.archlinux.org/other/abs/${_pkgname}-${pkgver}.tar.gz)
+md5sums=('7be7cfc67443cff62e20f27ca57dc17a')
+
+build() {
+ cd ${srcdir}/${_pkgname}
+
+ make CONFDIR=/etc/
+ make CONFDIR=/etc/ DESTDIR=${pkgdir} install
+
+ # Add readme file, and make base /var/abs path
+ install -dm0755 ${pkgdir}/var/abs/local/
+ install -Dm0644 ${srcdir}/abs/README ${pkgdir}/var/abs/README
+
+ sed -i -e 's|rsync.archlinux.org|parabolagnulinux.org|' ${pkgdir}/etc/abs.conf
+
+ # make adjustments to abs.conf
+ if [[ $CARCH = "i686" ]]; then
+ sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
+ fi
+ if [[ $CARCH = "x86_64" ]]; then
+ sed -i '/ARCH=/s|i686|x86_64|' ${pkgdir}/etc/abs.conf
+ fi
+}
+
diff --git a/libre/abs-libre/abs.install b/libre/abs-libre/abs.install
new file mode 100644
index 000000000..ac814c2fc
--- /dev/null
+++ b/libre/abs-libre/abs.install
@@ -0,0 +1,13 @@
+pre_upgrade() {
+ if [ "$(vercmp $2 2.3.2-1)" -lt 0 ]; then
+ echo "==> Fixing potential ABS tree permission issues (this may take a while...)"
+
+ for dir in core extra community testing; do
+ if [ -d /var/abs/$dir ]; then
+ find /var/abs/$dir -type d -exec chown root:root {} \;
+ find /var/abs/$dir -type d -exec chmod 755 {} \;
+ fi
+ done
+ fi
+}
+