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

             
                                                               
                                           

                                        
                    
                                       
                                                  
                          
                                                                                                                       
                                              
 
         

                                                  
                                                           
                              
            


           
                                      

                                 
                                                           
 
                                                

 
       
                   
                                                                   

 
            
                                                                                                                                                                 
 
# Contributor: Sean Summers <seansummers@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tomcat-native
pkgver=1.2.31
pkgrel=0
pkgdesc="Native resources optional component for Apache Tomcat"
url="https://tomcat.apache.org/native-doc/"
# mips64 and riscv64 blocked by java-jdk
arch="all !mips64 !riscv64"
license="Apache-2.0"
options="!check" # package has no tests
makedepends="apr-dev chrpath java-jdk openssl-dev"
subpackages="$pkgname-dev"
source="https://www-eu.apache.org/dist/tomcat/tomcat-connectors/native/$pkgver/source/tomcat-native-$pkgver-src.tar.gz"
builddir="$srcdir/$pkgname-$pkgver-src/native"

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

package() {
	make DESTDIR="$pkgdir" install

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

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

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

sha512sums="
2aaa93f0acf3eb780d39faeda3ece3cf053d3b6e2918462f7183070e8ab32232e035e9062f7c07ceb621006d727d3596d9b4b948f4432b4f625327b72fdb0e49  tomcat-native-1.2.31-src.tar.gz
"