mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Jakub Jirutka <jakub@jirutka.cz>
 | |
| # Maintainer: Jakub Jirutka <jakub@jirutka.cz>
 | |
| pkgname=java-jffi
 | |
| _pkgname=${pkgname#java-}
 | |
| pkgver=1.3.10
 | |
| _libver=1.2
 | |
| pkgrel=0
 | |
| pkgdesc="Java Foreign Function Interface"
 | |
| url="https://github.com/jnr/jffi"
 | |
| # ppc64le blocked by build failure
 | |
| # riscv64 blocked by openjdk8
 | |
| arch="all !ppc64le !riscv64"
 | |
| license="Apache-2.0"
 | |
| depends="$pkgname-native=$pkgver-r$pkgrel java-jre-headless"
 | |
| makedepends="apache-ant file linux-headers openjdk8 texinfo"
 | |
| subpackages="$pkgname-native"
 | |
| source="https://github.com/jnr/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
 | |
| builddir="$srcdir/$_pkgname-$_pkgname-$pkgver"
 | |
| 
 | |
| # Tests fail on non-x86_64 platforms, they are probably broken.
 | |
| # if [ "$CARCH" != x86_64 ]; then
 | |
| # 	options="!check"
 | |
| # fi
 | |
| # pass locally and in ci but not on builders
 | |
| options="!check"
 | |
| 
 | |
| build() {
 | |
| 	ant jar
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	ant test -v
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	install -m644 -D "$builddir"/dist/jffi.jar \
 | |
| 		"$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar
 | |
| 	ln -sf $_pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$_pkgname.jar
 | |
| }
 | |
| 
 | |
| native() {
 | |
| 	depends=""
 | |
| 
 | |
| 	# Note: jffi expects file named libjffi-x.y.so, not libjffi.so.x.y.
 | |
| 	install -m755 -D "$builddir"/build/jni/libjffi-$_libver.so \
 | |
| 		"$subpkgdir"/usr/lib/libjffi-$_libver.so
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 9e7d9aa1c16d7fa2486c75b71fd23465a3069ea3f314bc1b536115c982333d7cffa93f75a06ec86b740b83f4fca3be0c32cf99222d90bf1e6b45a9744ead1268  jffi-1.3.10.tar.gz
 | |
| "
 |