Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/devtools/PKGBUILD
blob: 844c0fe1a65d8244550c3baa7b52a5c0896039fc (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=20180626
pkgrel=1
pkgdesc='Tools for Arch Linux 32 package maintainers'
license=('GPL')
url='https://git.archlinux32.org/archlinux32/devtools32/'
source=(
  "https://sources.archlinux32.org/sources/${pkgname}32-v${pkgver}.tar.gz"{,.sig}
)
sha512sums=('36581ab6feef8a26228e69ca0ede0847a24aae7b9bed1bd11af7e2124ee515ecc7fdd9362d77ac1d4263606c42929b29b98e4b5543148d9302eea4754c299e25'
            'SKIP')
validpgpkeys=('DE9F7688CACF04FEB81A6C590AEEC90755DA7B5A')
unset md5sums

prepare() {
  cd "${srcdir}/${pkgname}32-v${pkgver}"
  find . \
    -maxdepth 1 \
    -type f \
    \( \
      -name 'pacman-*-i686.conf' -o \
      -name 'arch-nspawn.in' \
    \) \
    -exec sed -i 's/mirrorlist32/mirrorlist/g' {} \;
}

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