aboutsummaryrefslogtreecommitdiffstats
path: root/community/icedtea-web/APKBUILD
blob: d3700c6fb53cf1497e6a4516b5a183e4cb6facaa (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Contributor: 
# Maintainer: 
pkgname=icedtea-web
pkgver=1.6.2
pkgrel=0
pkgdesc="web integration packages for icedtea"
url="http://icedtea.classpath.org/wiki/IcedTea-Web"
arch="aarch64 x86 x86_64 ppc64le"
license="GPL"
depends="openjdk8-jre bash"
depends_dev="openjdk8 gtk+2.0-dev nspr-dev"
makedepends="tar zip bash $depends_dev npapi-sdk"
install=""
subpackages="$pkgname-mozilla $pkgname-doc"
source="http://icedtea.wildebeest.org/download/source/icedtea-web-$pkgver.tar.gz
	"
_jdkver="1.8"

_builddir="$srcdir"/icedtea-web-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr/lib/jvm/java-$_jdkver-openjdk \
		--datarootdir=/usr/share \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-jdk-home=/usr/lib/jvm/java-$_jdkver-openjdk \
		--with-pkgversion=Alpine \
		--disable-docs \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

mozilla() {
	pkgdesc="web integration packages for icedtea - mozilla plugin"
	install_if="$pkgname=$pkgver-r$pkgrel firefox"
	mkdir -p "$subpkgdir"/usr/lib/mozilla/plugins
	mkdir -p "$subpkgdir"/usr/lib/jvm/java-$_jdkver-openjdk/lib
	mv "$pkgdir"/usr/lib/jvm/java-$_jdkver-openjdk/lib/IcedTeaPlugin.so \
		"$subpkgdir"/usr/lib/jvm/java-$_jdkver-openjdk/lib
	ln -sf /usr/lib/jvm/java-$_jdkver-openjdk/lib/IcedTeaPlugin.so \
		"$subpkgdir"/usr/lib/mozilla/plugins/libjavaplugin.so
	return 0
}

sha512sums="32c9618a575bf05d3fbe5fec3f8429d55036acde70bf7ccf40b59e14eba775d1f561640acbf673b1737a8c5c3a8eadb74e8f1bef525cfa6060e3f1968d45b3f7  icedtea-web-1.6.2.tar.gz"