1 # Maintainer: Jan de Groot <jgc@archlinux.org>
2 # Contributor: Arjan Timmerman <arjan@soufly.nl>
3 # Contributor: Tor Krill
8 pkgdesc="A tool designed to simplify the creation and maintenance of programs that contain large amounts of repetitious text"
10 url="https://www.gnu.org/software/autogen/"
12 depends=('guile' 'libxml2' 'perl')
13 makedepends=('autogen' 'chrpath')
14 source=(https://ftp.gnu.org/gnu/${pkgname}/rel${pkgver}/${pkgname}-${pkgver}.tar.xz{,.sig}
16 10_libopts_tarball_perms.diff)
17 validpgpkeys=('44A088E295C3A722C450590EC9EF76DEB74EE762'
18 '3EEE51D1355B8EC40D9F3122495143D05D0712D1') # Bruce Korb <bkorb@gnu.org>
19 sha512sums=('5f12c982dbe27873f5649a96049bf019ff183c90cc0c8a9196556b0ca02e72940cd422f6d6601f68cc7d8763b1124f2765c3b1a6335fc92ba07f84b03d2a53a1'
21 '4864c9f20448b7eea0e36b35b15408baf5485f77fe7b1e9181c5636ab30c6871c74c654da05c6b84c8e6a057531c234a6a1e263b7465d54842c04bfc9c5b821d'
22 '687a725cc901b4acaa73e4503c933b949a99264647e0829902f3d9c7bc62867268cabdf2c31fe10dcfdec9b69397ef27592196b097e3c19c6b714ef84d4060a4')
26 patch -Np1 -i ${srcdir}/guile-3.0.patch
27 # Reproducible man page generation
28 export MAN_PAGE_DATE=$(LC_ALL=C date -u -d '@$(SOURCE_DATE_EPOCH)' +%Y-%m-%d)
29 patch -Np1 -i ${srcdir}/10_libopts_tarball_perms.diff
30 sed -i 's/ -Werror / /' configure
34 cd "${srcdir}/${pkgname}-${pkgver}"
35 ./configure --prefix=/usr
36 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41 cd "${srcdir}/${pkgname}-${pkgver}"
46 cd "${srcdir}/${pkgname}-${pkgver}"
47 make DESTDIR="${pkgdir}" install
49 # Remove unrequired RPATH from binaries
50 for i in ${pkgdir}/usr/bin/*; do
51 if chrpath --list "$i"; then
52 chrpath --delete "$i";