archrelease: copy trunk to extra-x86_64
[arch-packages.git] / autogen / repos / extra-x86_64 / PKGBUILD
blob1cc4d077a41dc80ca3db62cfc95b778e91d4c5cb
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
2 # Contributor: Arjan Timmerman <arjan@soufly.nl>
3 # Contributor: Tor Krill
5 pkgname=autogen
6 pkgver=5.18.16
7 pkgrel=5
8 pkgdesc="A tool designed to simplify the creation and maintenance of programs that contain large amounts of repetitious text"
9 arch=('x86_64')
10 url="https://www.gnu.org/software/autogen/"
11 license=('GPL3')
12 depends=('guile' 'libxml2' 'perl')
13 makedepends=('autogen' 'chrpath')
14 source=(https://ftp.gnu.org/gnu/${pkgname}/rel${pkgver}/${pkgname}-${pkgver}.tar.xz{,.sig}
15         guile-3.0.patch
16         10_libopts_tarball_perms.diff)
17 validpgpkeys=('44A088E295C3A722C450590EC9EF76DEB74EE762'
18               '3EEE51D1355B8EC40D9F3122495143D05D0712D1') # Bruce Korb <bkorb@gnu.org>
19 sha512sums=('5f12c982dbe27873f5649a96049bf019ff183c90cc0c8a9196556b0ca02e72940cd422f6d6601f68cc7d8763b1124f2765c3b1a6335fc92ba07f84b03d2a53a1'
20             'SKIP'
21             '4864c9f20448b7eea0e36b35b15408baf5485f77fe7b1e9181c5636ab30c6871c74c654da05c6b84c8e6a057531c234a6a1e263b7465d54842c04bfc9c5b821d'
22             '687a725cc901b4acaa73e4503c933b949a99264647e0829902f3d9c7bc62867268cabdf2c31fe10dcfdec9b69397ef27592196b097e3c19c6b714ef84d4060a4')
24 prepare() {
25   cd $pkgname-$pkgver
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
33 build() {
34   cd "${srcdir}/${pkgname}-${pkgver}"
35   ./configure --prefix=/usr
36   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
37   make
40 check() {
41   cd "${srcdir}/${pkgname}-${pkgver}"
42   make check -j1
45 package() {
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";
53     fi
54   done