mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 08:42:11 +01:00
- removed depends that are autodetected - fix _builddir - replace pre/post scripts with custom dev() - remove unneded pre/post scripts - removed .so link out of -dev, so it is owned by the parent - cleaned up package()
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Contributor: Sean Summers <seansummers@gmail.com>
|
|
# Maintainer:
|
|
pkgname=tomcat-native
|
|
pkgver=1.1.32
|
|
pkgrel=0
|
|
pkgdesc="native resources optional component for Apache Tomcat"
|
|
url="http://tomcat.apache.org/native-doc/"
|
|
arch="all"
|
|
license="ASL 2.0"
|
|
depends="openjdk7-jre-base"
|
|
depends_dev="apr-dev openssl-dev openjdk7"
|
|
makedepends="${depends_dev}"
|
|
install=""
|
|
subpackages="${pkgname}-dev"
|
|
source="http://mirrors.gigenet.com/apache/tomcat/tomcat-connectors/native/${pkgver}/source/${pkgname}-${pkgver}-src.tar.gz
|
|
${install}
|
|
"
|
|
|
|
_builddir="${srcdir}/${pkgname}-${pkgver}-src/jni/native"
|
|
build() {
|
|
cd "${_builddir}"
|
|
./configure --with-apr=/usr/bin/apr-1-config \
|
|
--with-java-home=/usr/lib/jvm/default-jvm \
|
|
--prefix="/usr" || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "${_builddir}"
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
rm -f "${pkgdir}/usr/lib/libtcnative-1.la" || return 1
|
|
rmdir "${pkgdir}/usr/bin" || return 1
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
mv "${subpkgdir}/usr/lib/libtcnative-1.so" "${pkgdir}/usr/lib/" || return 1
|
|
}
|
|
|
|
md5sums="90b4f55d9e3f3614c7b780500268570b tomcat-native-1.1.32-src.tar.gz"
|
|
sha256sums="26936848f727e162f513bd2b5f7b2300d7d716a5e92e5f4ebcd0e1eff8e09584 tomcat-native-1.1.32-src.tar.gz"
|
|
sha512sums="695f710f91cf720b3115f9933f5dab56e7465ee0fcf6508b53d1de172ba59165b08f27b3cdfef741b60dbf0b3da97ae3ea87c5a0ef9f1d879a9820259197dcba tomcat-native-1.1.32-src.tar.gz"
|