Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/i486-stage1/shadow/DESCR
blob: 19d576ddf1a6ae86ed3dc1339f261607bee6f130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# prepare configure for cross-compilation
sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD

# remove docu and git dependencies
sed -i "/makedepends=/s/'git'//" PKGBUILD
sed -i "/makedepends=/s/'libxslt'//" PKGBUILD
sed -i "/makedepends=/s/'docbook-xsl'//" PKGBUILD
sed -i "/makedepends=/s/'gnome-doc-utils'//" PKGBUILD

# building man pages needs xml2po, disable it
sed -i 's@--enable-man@--disable-man@g' PKGBUILD
sed -i '/find/,/-delete/{s/\(.*\)/#\1/g}' PKGBUILD
sed -i '/rmdir/,/man8/{s/\(.*\)/#\1/g}' PKGBUILD
# counterspells, yes I know, I'm bad with sed
sed -i 's/^#}/}/' PKGBUILD
# shadow: /usr/sbin exists in filesystem
# revert last rmdir commenting of /usr/sbin removal
sed -i 's@^# \+rmdir \+"$pkgdir/usr/sbin"@  rmdir "$pkgdir/usr/sbin"@' PKGBUILD

sed -i '2!N; /prepare()/ a \  sed -i "/SUBDIRS/s/man//g" Makefile.am' PKGBUILD