core/abs/PKGBUILD
2011-01-14 21:57:59 +00:00

41 lines
1.2 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=abs
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
# 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
}