summaryrefslogtreecommitdiff
path: root/extra/devtools/PKGBUILD
blob: 2a3390d572998c7c482f1114882c67398935985e (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
# we override almost everything

pkgver=20190201
pkgrel=1
pkgdesc='Tools for Arch Linux 32 package maintainers and build slave operators'
license=('GPL')
url='https://git.archlinux32.org/archlinux32/devtools32/'
source=(
  "https://sources.archlinux32.org/sources/${pkgname}32-v${pkgver}.tar.gz"{,.sig}
)
if [ "${md5sums[0]}" = 'ed3c757184e633faeea09747a7b91bb1' ]; then
  sha512sums=('fc1da4ae810992961ee0c19ba5f1ad4f87fee726d67e5e57c6ebc0acc7a1206842c9a8ddc8323b0a9f61077b79734ff244e85a1517789a025c806dd885c2fe1b'
              'SKIP')
  validpgpkeys=('DE9F7688CACF04FEB81A6C590AEEC90755DA7B5A')
  unset md5sums
fi

makedepends+=('asciidoc')

prepare() {
  cd "${srcdir}/${pkgname}32-v${pkgver}"
  sed -i '
    s,\$working_dir/etc/pacman\.d/mirrorlist32,/dev/null,
    s/mirrorlist32/mirrorlist/g
  ' 'arch-nspawn.in'
  sed -i 's@s,/mirrorlist\$\$,\\032,;\?@@' 'Makefile'
}

eval "$(
  declare -f prepare build check package | \
    sed '
      s/\(\${pkgname}\)-/\132-v/g
    '
)"