PKGBUILDs/extra/abs/PKGBUILD
2009-10-09 21:23:22 -05:00

31 lines
916 B
Bash

# $Id: PKGBUILD 48089 2009-07-30 16:57:14Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
pkgname=abs
pkgver=2.3.3
pkgrel=1
pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
arch=('i686' 'x86_64')
url="http://projects.archlinux.org/git/?p=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=('a65e55d96118532e1138ff107ac7f489')
build() {
cd ${srcdir}/${pkgname}
make CONFDIR=/etc/ || return 1
make CONFDIR=/etc/ DESTDIR=${pkgdir} install || return 1
# Add readme file, and make base /var/abs path
install -dm0755 ${pkgdir}/var/abs/local/
install -Dm0644 ${srcdir}/abs/README ${pkgdir}/var/abs/README
# change ABS tags for x86_64 to correct values
if [ "$CARCH" = "x86_64" ]; then
sed -i 's|"i686"|"x86_64"|g' ${pkgdir}/etc/abs.conf
fi
}