summaryrefslogtreecommitdiff
path: root/extra/tomcat-native/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/tomcat-native/PKGBUILD')
-rw-r--r--extra/tomcat-native/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/tomcat-native/PKGBUILD b/extra/tomcat-native/PKGBUILD
new file mode 100644
index 000000000..3686445e1
--- /dev/null
+++ b/extra/tomcat-native/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
+# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
+
+pkgname=tomcat-native
+pkgver=1.1.20
+pkgrel=2
+pkgdesc="The Apache Tomcat Native Library"
+arch=('i686' 'x86_64')
+url="http://tomcat.apache.org/"
+license="Apache"
+depends=('apr' 'openssl')
+makedepends=('java-environment')
+source=(http://www.apache.org/dist/tomcat/tomcat-connectors/native/${pkgver}/source/${pkgname}-${pkgver}-src.tar.gz)
+md5sums=('fb2b9d073cb6575c2d0020eda266ca0c')
+
+build() {
+ cd "${srcdir}/tomcat-native-${pkgver}-src/jni/native"
+
+ ./configure \
+ --prefix=/usr \
+ --with-java-home=${JAVA_HOME} \
+ --with-apr=/usr \
+ --with-ssl=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}-src/jni/native"
+
+ make DESTDIR=${pkgdir} install
+ rm -rf ${pkgdir}/usr/{bin,include}
+}