aports/testing/ustr/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

52 lines
1.4 KiB
Plaintext

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ustr
pkgver=1.0.4
pkgrel=0
pkgdesc="String library, very low memory overhead, simple to import"
url="http://www.and.org/ustr/"
arch="all"
license="MIT or LGPL-2.0-or-later or BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-static $pkgname-debug $pkgname-doc $pkgname-dev"
source="http://www.and.org/ustr/$pkgver/ustr-$pkgver.tar.bz2
c99-inline.patch
"
builddir="$srcdir/ustr-$pkgver"
build() {
cd "$builddir"
make all-shared CFLAGS="$CFLAGS -fgnu89-inline" || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
static() {
pkgdesc="ustr static libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}
debug() {
pkgdesc="Development files for libustr with debugging enabled"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libustr-debug*.so.* "$subpkgdir"/usr/lib/ || return 1
}
dev() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/share \
"$pkgdir"/usr/bin \
"$subpkgdir"/usr \
|| return 1
default_dev
}
sha512sums="b7df6ca3a9f25ee6f5c9ab4325732d348de27c5e02ebff36a7d5706f56b2df994df35bd652825a28e27bbde731c6a5933248d99c670d192b1952e7534eec1510 ustr-1.0.4.tar.bz2
3bdda468225b6361f8ae728432e9bf326047e4306924af9eb94331d44913ba5dfd2b330110c72a7210b534539183a2c95d20695ba9e585fb7f9e95aa296ad649 c99-inline.patch"