Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/devtools/PKGBUILD
blob: b9b668ac0784fd299403069d53d794cfc74c40d4 (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
# we override almost everything

pkgver=20191130
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}
)
sha512sums=('cb8f9cff827c0049ed0b473e4175c52a972cf395c33ece812b4e66f1751575d8e17eae474e73aca1c1e918f12d77958e3420c2080d0d27c4215f1a1fe929d21f'
            'SKIP')
validpgpkeys=('DE9F7688CACF04FEB81A6C590AEEC90755DA7B5A')
unset sha256sums
unset md5sums

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
    '
)"