summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/abs-libre/PKGBUILD49
1 files changed, 28 insertions, 21 deletions
diff --git a/libre/abs-libre/PKGBUILD b/libre/abs-libre/PKGBUILD
index 1abcd02dc..ce83f426d 100644
--- a/libre/abs-libre/PKGBUILD
+++ b/libre/abs-libre/PKGBUILD
@@ -1,48 +1,55 @@
-# $Id: PKGBUILD 134858 2011-08-08 04:45:57Z allan $
+# $Id: PKGBUILD 166402 2012-09-07 16:49:13Z dreisner $
# Maintainer: Allan McRae <allan@archlinux.org>
_pkgname=abs
pkgname=abs-libre
#CARCH=mips64el
-pkgver=2.4.3
-pkgrel=3
-pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
+pkgver=2.4.4
+pkgrel=1
+pkgdesc="Utilities to download and work with the Arch Build System (ABS) (Parabola rebranded)"
arch=('i686' 'x86_64' 'mips64el')
url="http://projects.archlinux.org/abs.git/"
license=('GPL')
depends=('bash' 'rsync')
backup=(etc/abs.conf)
-source=(ftp://ftp.archlinux.org/other/abs/${_pkgname}-${pkgver}.tar.gz)
-md5sums=('b8b46b22d2f9a2aec2c994ccf230b4fd')
+source=(ftp://ftp.archlinux.org/other/abs/${pkgname}-${pkgver}.tar.gz{,.sig})
+md5sums=('7258c739a93e02a4f31f114e9fc3b0ba'
+ 'a628f7d5b1cd1e838366b88709690c24')
provides=("${_pkgname}=${pkgver}")
replaces=("${_pkgname}")
conflicts=("${_pkgname}")
build() {
- cd ${srcdir}/${_pkgname}
+ cd "$_pkgname-$pkgver"
- make prefix=/usr sysconfdir=/etc prepare
- make DESTDIR=${pkgdir} install
+ make
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+
+ make 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
+ install -Dm0644 README "${pkgdir}"/var/abs/README
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
+ # 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
- case $CARCH in
- "i686")
- sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
- ;;
- "x86_64")
- sed -i '/ARCH=/s|i686|x86_64|' ${pkgdir}/etc/abs.conf
- ;;
- "mips64el")
+ 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
+ if [[ $CARCH = "mips64el" ]]; then
sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
sed -i '/ARCH=/s|i686|mips64el|' ${pkgdir}/etc/abs.conf
- ;;
- esac
+ fi
}
-