aports/community/syncthing13/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

57 lines
2.2 KiB
Plaintext

# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=syncthing13
_realname=syncthing
pkgver=0.13.10
pkgrel=2
pkgdesc="Open Source Continuous File Synchronization"
url="https://syncthing.net/"
arch="all"
license="MPL-2.0"
pkgusers="$_realname"
pkggroups="$_realname"
makedepends="go"
install="$pkgname.pre-install"
options="!strip"
source="$_realname-$pkgver.tar.gz::https://github.com/syncthing/syncthing/archive/v$pkgver.tar.gz
net-30df40a6a17d00a985343756f9b1418c6897866e.tar.gz::https://github.com/golang/net/archive/30df40a6a17d00a985343756f9b1418c6897866e.tar.gz
$_realname.confd
$_realname.initd"
builddir="$srcdir/src/github.com/$_realname"
prepare() {
default_prepare
mkdir -p "$builddir"
ln -s "$srcdir"/$_realname-$pkgver "$builddir"/$_realname
# fix IPv6 definition errors on s390x, remove when upstream
# updates vendor manifest!
rm -r "$builddir"/$_realname/vendor/golang.org/x/net
rm "$srcdir"/net-*.tar.gz
ln -s "$srcdir"/net-* "$builddir"/$_realname/vendor/golang.org/x/net
}
build() {
cd "$builddir"/$_realname
GOPATH="$srcdir" go run build.go -no-upgrade -version=v$pkgver
}
package() {
mkdir -p "$pkgdir"/usr/bin
install -d -o $_realname -g $_realname "$pkgdir"/var/lib/$_realname
mv "$builddir"/$_realname/bin/* "$pkgdir"/usr/bin
install -D -m755 "$srcdir"/$_realname.initd \
"$pkgdir"/etc/init.d/$_realname
install -D -m644 "$srcdir"/$_realname.confd \
"$pkgdir"/etc/conf.d/$_realname
}
sha512sums="1bb433624d9875076cad1cab371fe6ba1b07e1fdfa7b91c178fde5476d6162653d66c8744cbda2bb9430bd5bfebb61baa0e46366db7c9296ee8c9fb90d9c4419 syncthing-0.13.10.tar.gz
6f8705b61f6447328cd82e1b676fbfcb71dbd9aada5a592993b579c310fb617d7d370c0e11b8f1e8e04e4fdbbf336a1a5a540394141cc1eda3bf53d91b0f69f1 net-30df40a6a17d00a985343756f9b1418c6897866e.tar.gz
b19cc3d802caa33f4d06852de590d2d984c12cf27d0540162cd7195da4f3f149c83c72e7a10f385b32b27fff6f39d33698e7402442a3f32a9da136c5d19059ae syncthing.confd
21fa7b0090e579ad0f02bb8cc9a78736eb99811613823bf12d477262da2281543d07b47ae0888e2e3876a687bf4cab3c89405447373a9c5ab2915989c5f9dce8 syncthing.initd"