# Maintainer: Natanael Copa pkgname=apr pkgver=1.7.0 pkgrel=2 pkgdesc="The Apache Portable Runtime" url="https://apr.apache.org/" arch="all" license="Apache-2.0" depends_dev="util-linux-dev" makedepends="$depends_dev" subpackages="$pkgname-dev" source="https://www.apache.org/dist/apr/apr-$pkgver.tar.bz2 apr-1.6.2-dont-test-dlclose.patch semtimedop-s390x.patch CVE-2021-35940.patch " # secfixes: # 1.7.0-r2: # - CVE-2021-35940.patch build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --datadir=/usr/share \ --enable-nonportable-atomics \ --with-devrandom=/dev/urandom make } check() { make check } package() { make DESTDIR="$pkgdir" install } # basicly everything thats not a *.so* file belongs to the -dev package # we override the pre-defined func. dev() { depends="$pkgname $depends_dev" mkdir -p "$subpkgdir" mv "$pkgdir"/* "$subpkgdir"/ mkdir -p "$pkgdir"/usr/lib mv "$subpkgdir"/usr/lib/*.so* "$pkgdir"/usr/lib/ } sha512sums=" 3dc42d5caf17aab16f5c154080f020d5aed761e22db4c5f6506917f6bfd2bf8becfb40af919042bd4ce1077d5de74aa666f5edfba7f275efba78e8893c115148 apr-1.7.0.tar.bz2 9fb931e45f30fbe68af56849dfca148c09cdf85e300af14fb259cbd43470113288680bdb21189d4cf13f5ce95f8d28666822535e017e64ace5324339ab50cbef apr-1.6.2-dont-test-dlclose.patch 5d1afa9419d0481e7c3369724e8b4c1e199cbfd5d031bd9d9fc4f46ee0d3819353ff03c3b2c508d5b939f66ef4549953bbf9cdae7ff934002b9a01d824c843e8 semtimedop-s390x.patch 33c072ad4e27afee4b93df5b1076a8d858c6f4ef57df4e2dd1bf750f8b0390cb130744aa3bf67c4de359b35a558da07e479b10e0028ec935aa9a1ea4820c995e CVE-2021-35940.patch "