aboutsummaryrefslogblamecommitdiffstats
path: root/community/tomcat-native/APKBUILD
blob: 779656ce6e07f88b0514e5e77113d380fbea4b7e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                                              
                           
                     

             
                                                               

                                          
                    
                           
                                                  


                                                                                                                 
 
         
                      


                                                  
                                                           
                              
            


           
                      
 
                                      

                                 
                                                           
 
                                                
                               

 
        
                   
                                                                   

 
                                                                                                                                                                              
# Contributor: Sean Summers <seansummers@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# TODO: Patch for LibreSSL.
pkgname=tomcat-native
pkgver=1.2.17
pkgrel=0
pkgdesc="Native resources optional component for Apache Tomcat"
url="http://tomcat.apache.org/native-doc/"
arch="all"
license="Apache-2.0"
depends="openjdk8-jre-base"
makedepends="apr-dev chrpath openjdk8 openssl-dev"
subpackages="$pkgname-dev"
source="http://www-eu.apache.org/dist/tomcat/tomcat-connectors/native/$pkgver/source/$pkgname-$pkgver-src.tar.gz"
builddir="$srcdir/$pkgname-$pkgver-src/native"

build() {
	cd "$builddir"

	./configure --prefix=/usr \
		--with-apr=/usr/bin/apr-1-config \
		--with-java-home=/usr/lib/jvm/default-jvm \
		--with-ssl=yes
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install

	# Remove redundant rpath.
	chrpath --delete "$pkgdir"/usr/lib/libtcnative-1.so

	rm -f "$pkgdir"/usr/lib/libtcnative-1.la
	rmdir "$pkgdir"/usr/bin
}

dev()  {
	default_dev
	mv "$subpkgdir"/usr/lib/libtcnative-1.so "$pkgdir"/usr/lib/
}

sha512sums="8fa946855fd14525ec0abe7b09975bbd34d6127352e90730a8afb77e16cd91715417e812a40017fee65939a9ce95faf39a9193222f441cda0ad2eb7f690e77b9  tomcat-native-1.2.17-src.tar.gz"