aboutsummaryrefslogtreecommitdiffstats
path: root/testing/closure-compiler/APKBUILD
blob: 2811fadf45f4b7224e70e313bfbe397e5c821063 (plain) (blame)
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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# TODO: Build it from source instead of downloading prebuilt JAR (although
#   it does not contain any native binaries), so we can patch it when needed.
pkgname=closure-compiler
pkgver=20170218
pkgrel=0
pkgdesc="A JavaScript checker and optimizer"
url="https://developers.google.com/closure/compiler/"
arch="noarch !s390x"
license="ASL-2.0"
depends="openjdk8-jre-base"
source="$pkgname-$pkgver-jar.tar.gz::http://dl.google.com/$pkgname/compiler-$pkgver.tar.gz
	$pkgname"
builddir="$srcdir/$pkgname-$pkgver"

check() {
	java -jar "$srcdir"/$pkgname-v$pkgver.jar --version
}

package() {
	cd "$srcdir"

	install -D -m 644 $pkgname-v$pkgver.jar \
		"$pkgdir"/usr/share/java/$pkgname-$pkgver.jar
	ln -s $pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$pkgname.jar

	install -D -m 755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="4ddbb339615edb104ddcb84775b1da2f096d49dc921b70c5094a7b7afba25e40c1212bbc9f0e51ad643a3a72bfc46a301efcadd7909d09a77d0bb5e68e41bd81  closure-compiler-20170218-jar.tar.gz
18127beb77da790d1fa13fddc4056c485ca2b4a263becd7d37542dc705d08c342f842aa22322dd9aaa8e0ad651f45fc4c0ff632201cc5f20d391843d2c1b2661  closure-compiler"