summaryrefslogblamecommitdiff
path: root/user/apr/APKBUILD
blob: ce732265976462c093baf232f5235f6e5660edaa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                 
           
            
        
                                     
                             





                                 
                                                                 



                                         




                                      
                                               




                                             



                      











                                                                              
                                                                                                                                                               
                                                                                                                                                                    
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=apr
pkgver=1.7.4
pkgrel=0
pkgdesc="The Apache Portable Runtime"
url="https://apr.apache.org/"
arch="all"
license="Apache-2.0"
depends=""
depends_dev="util-linux-dev bash"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://downloads.apache.org/apr/$pkgname-$pkgver.tar.bz2
	apr-1.6.2-dont-test-dlclose.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--disable-nonportable-atomics \
		--with-devrandom=/dev/urandom
	make
}

check() {
	make -j1 check
}

package() {
	make DESTDIR="$pkgdir" install
}

# APR is mostly a development package; only ship libraries in the default pkg.
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="2342c997765ea2ca96eac158e5fd260232dba68fc41b90a79a7ba9b25c539fc217981867362090e0ebebe632289257c342275e3c5baedb698c474ef8f49a9dcd  apr-1.7.4.tar.bz2
9fb931e45f30fbe68af56849dfca148c09cdf85e300af14fb259cbd43470113288680bdb21189d4cf13f5ce95f8d28666822535e017e64ace5324339ab50cbef  apr-1.6.2-dont-test-dlclose.patch"