summaryrefslogtreecommitdiff
path: root/libre/abs-libre/PKGBUILD
blob: a9be5a541e827d17e20142dacaedd6e75cba7a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 101993 2010-12-03 13:48:19Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>

_pkgname=abs
pkgname=abs-libre
#CARCH=x86_64
pkgver=2.4.3
pkgrel=2
pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
arch=('i686' 'x86_64' 'mips64el')
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)
md5sums=('b8b46b22d2f9a2aec2c994ccf230b4fd')

build() {
  cd ${srcdir}/${_pkgname}

  make prefix=/usr sysconfdir=/etc prepare
  make 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

  sed -i -e 's|rsync.archlinux.org|parabolagnulinux.org|' ${pkgdir}/etc/abs.conf
  sed -i -e 's|(core|(libre !libre-testing core|' ${pkgdir}/etc/abs.conf

  # make adjustments to abs.conf
  case $CARCH in
    "i686")
        sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
        ;;
    "x86_64")
        sed -i '/ARCH=/s|i686|x86_64|' ${pkgdir}/etc/abs.conf
        ;;
    "mips64el")
        sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
        sed -i '/ARCH=/s|i686|mips64el|' ${pkgdir}/etc/abs.conf
        ;;
  esac
}