# Contributor: Sean Summers # Maintainer: Jakub Jirutka # TODO: Patch for LibreSSL and enable SSL support. pkgname=tomcat-native pkgver=1.2.16 pkgrel=0 pkgdesc="Native resources optional component for Apache Tomcat" url="http://tomcat.apache.org/native-doc/" arch="all" license="ASL-2.0" depends="openjdk8-jre-base" makedepends="apr-dev chrpath openjdk8" subpackages="$pkgname-dev" source="http://www-eu.apache.org/dist/tomcat/tomcat-connectors/native/$pkgver/source/$pkgname-$pkgver-src.tar.gz" builddir="$srcdir/$pkgname-$pkgver-src/native" build() { cd "$builddir" ./configure --prefix=/usr \ --with-apr=/usr/bin/apr-1-config \ --with-java-home=/usr/lib/jvm/default-jvm \ --with-ssl=no \ --disable-openssl || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 # Remove redundant rpath. chrpath --delete "$pkgdir"/usr/lib/libtcnative-1.so || return 1 rm -f "$pkgdir"/usr/lib/libtcnative-1.la || return 1 rmdir "$pkgdir"/usr/bin } dev() { default_dev || return 1 mv "$subpkgdir"/usr/lib/libtcnative-1.so "$pkgdir"/usr/lib/ } sha512sums="0345f85fbab406f25c25c8fc06bf55f3d166fa14bfcf542bddb5dc5db4c8c7bd0c5b71603d85261d71152ead3023b112144f2ffa5ede14ae8595013f79c802aa tomcat-native-1.2.16-src.tar.gz"