-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,31 @@ | ||
# | ||
# 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 | ||
pkgver=2.4.4 | ||
pkgrel=1 | ||
pkgdesc="Utilities to download and work with the Arch Build System (ABS)" | ||
arch=('i686' 'x86_64') | ||
arch=('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') | ||
source=("ftp://ftp.archlinux.org/other/abs/${pkgname}-${pkgver}.tar.gz") | ||
md5sums=('7258c739a93e02a4f31f114e9fc3b0ba') | ||
|
||
build() { | ||
cd ${srcdir}/${pkgname} | ||
cd "$pkgname-$pkgver" | ||
|
||
make CONFDIR=/etc/ | ||
make CONFDIR=/etc/ DESTDIR=${pkgdir} install | ||
make | ||
} | ||
|
||
# Add readme file, and make base /var/abs path | ||
install -dm0755 ${pkgdir}/var/abs/local/ | ||
install -Dm0644 ${srcdir}/abs/README ${pkgdir}/var/abs/README | ||
package() { | ||
cd "$pkgname-$pkgver" | ||
|
||
# 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 | ||
make DESTDIR="${pkgdir}" install | ||
|
||
cp -f "${srcdir}/abs-chakra" "${pkgdir}/usr/bin/abs" | ||
# Add readme file, and make base /var/abs path | ||
install -dm755 "${pkgdir}"/var/abs/local/ | ||
install -Dm644 README "${pkgdir}"/var/abs/README | ||
|
||
sed -i '/ARCH=/s|i686|x86_64|' ${pkgdir}/etc/abs.conf | ||
} | ||
|