aboutsummaryrefslogtreecommitdiffstats
path: root/main/icedtea-web/APKBUILD
blob: 0a45aa915aa06bcbe685ce9f675692001481d9d0 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=icedtea-web
pkgver=1.3.2
pkgrel=0
pkgdesc="web integration packages for icedtea"
url="http://icedtea.classpath.org/wiki/IcedTea-Web"
arch="all"
license="GPL"
depends=openjdk6-jre
depends_dev="xulrunner-dev openjdk6 gtk+-dev nspr-dev"
makedepends="tar zip $depends_dev"
install=""
subpackages="$pkgname-mozilla $pkgname-doc"
source="http://icedtea.classpath.org/download/source/icedtea-web-$pkgver.tar.gz
	"

_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-1.6-openjdk \
		--datarootdir=/usr/share \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-jdk-home=/usr/lib/jvm/java-1.6-openjdk \
		--with-pkgversion=Alpine \
		|| return 1
	make || return 1
}

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

mozilla() {
	mkdir -p "$subpkgdir"/usr/lib/mozilla/plugins
	mkdir -p "$subpkgdir"/usr/lib/jvm/java-1.6-openjdk/lib
	mv "$pkgdir"/usr/lib/jvm/java-1.6-openjdk/lib/IcedTeaPlugin.so \
		"$subpkgdir"/usr/lib/jvm/java-1.6-openjdk/lib
	ln -sf /usr/lib/jvm/java-1.6-openjdk/lib/IcedTeaPlugin.so \
		"$subpkgdir"/usr/lib/mozilla/plugins/libjavaplugin.so
	return 0
}

md5sums="94ce02c42c1e4d1411357fb3c1014f67  icedtea-web-1.3.2.tar.gz"
sha256sums="bd25d9a9565271b716e54a19ffe8e34ab339666f72c99da743155320b9ac27f0  icedtea-web-1.3.2.tar.gz"
sha512sums="5bf09819c7ce855c5c05b27589afbef14a209174d9de2e7ad6d1a7c7ee90e98efe5498718becca046c9aca8525d5fea9636819ccc4b9b18f38f15103d66bcd16  icedtea-web-1.3.2.tar.gz"