# Contributor: Sean Summers # Maintainer: Jakub Jirutka pkgname=tomcat-native pkgver=2.0.3 pkgrel=0 pkgdesc="Native resources optional component for Apache Tomcat" url="https://tomcat.apache.org/native-doc/" # riscv64: blocked by java-jdk arch="all !riscv64" license="Apache-2.0" makedepends=" apr-dev chrpath java-jdk libtool openssl-dev " subpackages="$pkgname-dev" source="https://archive.apache.org/dist/tomcat/tomcat-connectors/native/$pkgver/source/tomcat-native-$pkgver-src.tar.gz" builddir="$srcdir/$pkgname-$pkgver-src/native" options="!check" # package has no tests build() { ./configure \ --prefix=/usr \ --with-apr=/usr/bin/apr-1-config \ --with-java-home=/usr/lib/jvm/default-jvm \ --with-ssl=/usr/lib make } package() { make DESTDIR="$pkgdir" install # Remove redundant rpath. chrpath --delete "$pkgdir"/usr/lib/libtcnative-*.so rm -f "$pkgdir"/usr/lib/*.la } dev() { default_dev mv "$subpkgdir"/usr/lib/libtcnative-*.so "$pkgdir"/usr/lib/ } sha512sums=" d80e6b76295bb253eaf6eab4d722f3ba2f683f33a96310838b4c44b99f0b47a49ed9c09bb53ed23698db057ce765e3fcbfcd4ac4b75d2bdbe691f916be3be339 tomcat-native-2.0.3-src.tar.gz "