blob: 1795c3ca4b5665759a048e857c435e0f239d38a1 (
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.34
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://www-eu.apache.org/dist/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="f88cf00554a596cf0e80765f3a15705e tomcat-native-1.1.34-src.tar.gz"
sha256sums="db5d7fec734aab6b5a999fe71fcd22a7acdd7cf6b2d68bec936b38bed1bac367 tomcat-native-1.1.34-src.tar.gz"
sha512sums="0f9370009e04c8dbf6357261e6e007ebabe2f391364aea8accc6ca99a4cb1cc96b2d6035f362a47410abd6074a83defa684d9205fd29339889c711cd9f75212d tomcat-native-1.1.34-src.tar.gz"
|