mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
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/
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer:
|
|
pkgname=go-bindata
|
|
pkgver=20151023
|
|
_hash="a0ff2567cfb70903282db057e799fd826784d41d"
|
|
pkgrel=0
|
|
pkgdesc="A small utility which generates Go code from any file"
|
|
url="https://github.com/jteeuwen/go-bindata"
|
|
arch="all"
|
|
license="CC0-1.0"
|
|
depends=""
|
|
makedepends="go"
|
|
install=""
|
|
subpackages=""
|
|
source="go-bindata-$pkgver.tar.gz::https://github.com/jteeuwen/go-bindata/archive/$_hash.tar.gz
|
|
go-remove-runtime.patch"
|
|
builddir="$srcdir/src/github.com/jteeuwen/$pkgname"
|
|
|
|
prepare() {
|
|
mkdir -p ${builddir%/*}
|
|
mv "$srcdir"/$pkgname-$_hash "$builddir"/ || return 1
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"/$pkgname
|
|
export GOPATH="$srcdir"
|
|
go build -v -o bin/$pkgname
|
|
}
|
|
|
|
package() {
|
|
install -Dm 755 "$builddir/$pkgname"/bin/go-bindata \
|
|
"$pkgdir"/usr/bin/go-bindata || return 1
|
|
}
|
|
|
|
md5sums="d630353abae8c73adf2ed2af3d0e74a0 go-bindata-20151023.tar.gz
|
|
89f3e2b57d42c5b6ff943c7a2c99e6f4 go-remove-runtime.patch"
|
|
sha256sums="65cf65ac422fb8072abfaabec86c20a74e448a93b489e896a36642e7049f5d32 go-bindata-20151023.tar.gz
|
|
db1189c655e4602651cd283aeaa10efa118c8d5e343c0e872e896a9b54146174 go-remove-runtime.patch"
|
|
sha512sums="ed1d2fd1c5a833b6efdc731eb43f72fc072a701c447a926ad6c1f9be3c0f1ed92c689639d02a288230a49d53795f41092deab132389871a5b9f79abdc525fc43 go-bindata-20151023.tar.gz
|
|
0d8b16b3384048e1c1d168b228c293f86a06a50304e49657545770a445496acbca79670441bb14464a306a1efb94bdb371aabb1e58969b45a40fcfbb1870d9dc go-remove-runtime.patch"
|