summaryrefslogtreecommitdiff
path: root/extra/tomcat-native/PKGBUILD
blob: 37869770ffda65c86f66d97e2d0aad5fb29c8dec (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
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua

pkgname=tomcat-native
pkgver=1.1.23
pkgrel=1
pkgdesc="The Apache Tomcat Native Library"
arch=('i686' 'x86_64' 'mips64el')
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=('f2a55b5a19adbe491edc98e0c11d9028')

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}
}