forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
76 lines (62 loc) · 2.32 KB
/
PKGBUILD
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Maintainer: Alexey Pavlov <[email protected]>
pkgname=automake1.12
pkgver=1.12.6
pkgrel=3
pkgdesc="A GNU tool for automatically creating Makefiles"
arch=('any')
license=('GPL')
url="https://www.gnu.org/software/automake"
groups=('base-devel')
depends=('perl' 'bash')
makedepends=('autoconf')
checkdepends=('dejagnu' 'python2')
install=automake.install
source=(https://ftp.gnu.org/gnu/automake/automake-${pkgver}.tar.xz{,.sig}
automake-1.14-msys2.patch
automake1.12-documentation.patch
automake-1.12-perl-escape-curly-bracket.patch)
sha256sums=('f834ab2145b1ee24bd85387950044f5cb418dd0af2b84c52e60c2bf29162dbfa'
'SKIP'
'76ac48cce5b6d48dfbd2659e3aeb10144acc932269c94fbed8d6335da773090b'
'0f0df05d1e9ba59362e6a9484db117e922d0c531836eccf434c5569edb68bf38'
'dc3566c450efe446799800b88185101f625ef4091d7f39bcb05325eaf4604f5c')
prepare() {
cd ${srcdir}/automake-${pkgver}
patch -p2 -i ${srcdir}/automake1.12-documentation.patch
patch -p1 -i ${srcdir}/automake-1.14-msys2.patch
patch -p1 -i ${srcdir}/automake-1.12-perl-escape-curly-bracket.patch
}
build() {
cd ${srcdir}/automake-${pkgver}
./configure --prefix=/usr
make
(cd doc && makeinfo -I ${srcdir}/automake-${pkgver}/doc -o automake1.12.info automake.texi)
(cd doc && makeinfo -I ${srcdir}/automake-${pkgver}/doc -o automake-history1.12.info automake-history.texi)
}
check() {
cd ${srcdir}/automake-${pkgver}
# expect 2 failures due to perl-5.18 incompatibility
make -k check || true
}
package() {
cd ${srcdir}/automake-${pkgver}
make DESTDIR=${pkgdir} install
mv ${pkgdir}/usr/share/aclocal/README ${pkgdir}/usr/share/aclocal/README.am12
# install the 1.12 versioned info files
for f in `find ${pkgdir}/usr/share/info -name "*.info*"` ; do
rm -f ${f}
done
for f in `find ${srcdir}/automake-${pkgver} -name "*.info*"` ; do
bf=`basename $f`
cp $f ${pkgdir}/usr/share/info/
done
# remove the unversioned executables
rm -f ${pkgdir}/usr/bin/automake ${pkgdir}/usr/bin/aclocal
# remove the unversioned man pages
rm -f ${pkgdir}/usr/share/man/man1/automake.1
rm -f ${pkgdir}/usr/share/man/man1/aclocal.1
# remove the unversioned info files
rm -f ${pkgdir}/usr/share/info/automake.info*
rm -f ${pkgdir}/usr/share/info/automake-history.info*
rm -rf ${pkgdir}/usr/share/doc
}