1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/closure-compiler/APKBUILD
Jakub Jirutka 63f5e7d295 [various]: unify names of licenses according to SPDX
This commit updates $license variable in all APKBUILDs to comply with
short names specified by SPDX version 3.0 [1] where possible. It was
done using find-and-replace method on substrings inside $license
variables.

Only license names were updated, not "expressions" specifying relation
between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or
exceptions (e.g. "X with exceptions").

Many licenses have a version or multiple variants, e.g. MPL-2.0,
BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not
contain license version or variant. Since there's no way how to infer
this information just from abuild, it were left without the variant
suffix or version, i.e. non SPDX compliant.

GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They
exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later
(formerly e.g. GPL-2.0+). We did not systematically noted distinguish
between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean
GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g.
GPL2+) were left without the variant suffix, i.e. non SPDX compliant.

Note: This commit just fixes format of the license names, no
verification has been done if the specified license information is
actually correct!

[1]: https://spdx.org/licenses/
2017-12-30 21:05:50 +01:00

32 lines
1.2 KiB
Text

# 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=20171203
pkgrel=0
pkgdesc="A JavaScript checker and optimizer"
url="https://developers.google.com/closure/compiler/"
arch="noarch !s390x"
license="Apache-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="478e8f1b665e4ac74f5307aa9fdc8042d743e8e455144894a1dde8596f29befff08e34343718a663fa0ae82007d72908b015af388bfac19cdfaa95985737614b closure-compiler-20171203-jar.tar.gz
18127beb77da790d1fa13fddc4056c485ca2b4a263becd7d37542dc705d08c342f842aa22322dd9aaa8e0ad651f45fc4c0ff632201cc5f20d391843d2c1b2661 closure-compiler"