Commit f1c129e6 authored by Francesco Marinucci's avatar Francesco Marinucci

[skip-ci] abs: removed from repo, closing issue #127

parent a747b07e
Pipeline #2535 skipped
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Drake Justice <djustice[at]chakra-project[dot]org>
pkgname=abs
pkgver=2.4.3
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
http://chakra-linux.org/sources/abs/abs-chakra)
md5sums=('b8b46b22d2f9a2aec2c994ccf230b4fd'
'6f2b27558960b355979f358f35772db4')
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
cp -f "${srcdir}/abs-chakra" "${pkgdir}/usr/bin/abs"
}
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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment