summaryrefslogtreecommitdiff
path: root/extra/abs/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-29 02:13:48 -0800
committerroot <root@rshg054.dnsready.net>2012-12-29 02:13:48 -0800
commit5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch)
treef467412e09912ababcd8fe6c05193d829f514dcd /extra/abs/PKGBUILD
parent3009e8addb4a894329bf8ab3e8fb763361833978 (diff)
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'extra/abs/PKGBUILD')
-rw-r--r--extra/abs/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/abs/PKGBUILD b/extra/abs/PKGBUILD
new file mode 100644
index 000000000..26ab5ebca
--- /dev/null
+++ b/extra/abs/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 166403 2012-09-07 16:50:29Z dreisner $
+# Maintainer: Allan McRae <allan@archlinux.org>
+
+pkgname=abs
+pkgver=2.4.4
+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)
+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
+ 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
+}