1 # Maintainer: Jan de Groot <jgc@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
8 pkgdesc='The Apache Portable Runtime'
10 url='https://apr.apache.org/'
11 depends=('util-linux')
12 makedepends=('python')
14 source=(https://archive.apache.org/dist/apr/apr-$pkgver.tar.bz2{,.asc}
17 ship_find_apr.m4.patch
19 dont_override_external_buildflags)
20 sha256sums=('455e218c060c474f2c834816873f6ed69c0cf0e4cfee54282cc93e8e989ee59e'
22 '572efb102d02bb3e85ff08eca6b2ea8ff7936ce5228da7a45c1e639faca36a5c'
23 '12595d331b48be9e44bd843635eb4f0f500bd213e197a551a9d383a28a24641f'
24 '315932ef6536fc0644c1efe770ceb3bb675c3c7103a7cbb2f02efd8be03eb752'
25 '3d491d3af8fb5a75db4e085a17e5d8dcbe058bd256ef893ee779dc97fc9f8ad6'
26 '5ac0bdc532479f6082d29115ac9d3ca24524fd8b97a556568755b88e5a68e3df')
27 validpgpkeys=('5B5181C2C0AB13E59DA3F7A3EC582EB639FF092C' # Jeff Trawick
28 'B1B96F45DFBDCCF974019235193F180AB55D9977' # Nick Kew <niq@apache.org>
29 '65B2D44FE74BD5E3DE3AC3F082781DE46D5954FA' # "Eric Covener <covener@apache.org>"
30 '120A8667241AEDD4A78B46104C042818311A3DE5') # Ruediger Pluem <rpluem@apache.org>
34 patch -Np1 -i ../fix_apr-config.patch
35 patch -Np1 -i ../ship_find_apr.m4.patch
36 patch -Np1 -i ../fix-apr.pc.patch
37 patch -Np1 -i ../omit_extra_libs.patch
38 patch -Np1 -i ../dont_override_external_buildflags
44 ./configure --prefix=/usr --includedir=/usr/include/apr-1 \
45 --with-installbuilddir=/usr/share/apr-1/build \
46 --enable-nonportable-atomics \
47 --with-devrandom=/dev/urandom --disable-static
48 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
59 make DESTDIR="$pkgdir" install