summaryrefslogtreecommitdiffstats
path: root/testing/tomcat-native/APKBUILD
blob: 5d092927b9490091caaafa76930063656854bea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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"