aboutsummaryrefslogtreecommitdiffstats
path: root/main/icedtea-web/APKBUILD
blob: c41cf7b87007e27f61729f93bb169fcbecf7dc13 (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: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=icedtea-web
pkgver=1.5.2
pkgrel=0
pkgdesc="web integration packages for icedtea"
url="http://icedtea.classpath.org/wiki/IcedTea-Web"
arch="x86 x86_64"
license="GPL"
depends="openjdk7-jre bash"
depends_dev="openjdk7 gtk+-dev nspr-dev"
makedepends="tar zip bash $depends_dev npapi-sdk"
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.7-openjdk \
		--datarootdir=/usr/share \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-jdk-home=/usr/lib/jvm/java-1.7-openjdk \
		--with-pkgversion=Alpine \
		|| 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-1.7-openjdk/lib
	mv "$pkgdir"/usr/lib/jvm/java-1.7-openjdk/lib/IcedTeaPlugin.so \
		"$subpkgdir"/usr/lib/jvm/java-1.7-openjdk/lib
	ln -sf /usr/lib/jvm/java-1.7-openjdk/lib/IcedTeaPlugin.so \
		"$subpkgdir"/usr/lib/mozilla/plugins/libjavaplugin.so
	return 0
}

md5sums="f8656d18345a7d1e2eb20e076abcc3ca  icedtea-web-1.5.2.tar.gz"
sha256sums="b29e8ff2533cc6521a6509a002001f4c97c80a004460063156d003898da13bf3  icedtea-web-1.5.2.tar.gz"
sha512sums="464354f94bb87ebbb295f5795d4bd6b427a1d64422b82f2bca4ad5dac0b74dd36d39c26f61b000c1aa062253f81d0821e8354eb88cc14ca4a4d0845ad26ff10e  icedtea-web-1.5.2.tar.gz"