mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 15:41:51 +01: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/
64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lua-xctrl
|
|
pkgver=2015.04.10
|
|
_x=${pkgver%%.*}
|
|
_y=${pkgver%.*}
|
|
_y=${_y#*.}
|
|
_z=${pkgver##*.}
|
|
_ver=${_x}-${_y}-${_z}
|
|
pkgrel=2
|
|
_luaversions="5.1 5.2 5.3"
|
|
pkgdesc="Lua module that allows you to query and manipulate various aspects of an X11 window manager"
|
|
url="https://github.com/yetanothergeek/xctrl"
|
|
arch="all"
|
|
license="GPL-2.0"
|
|
depends=
|
|
makedepends="lua-dev libx11-dev libxmu-dev"
|
|
for _i in $_luaversions; do
|
|
makedepends="$makedepends lua$_i-dev"
|
|
subpackages="$subpackages lua$_i-xctrl:split_${_i/./_}"
|
|
done
|
|
install=
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/yetanothergeek/xctrl/archive/$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/xctrl-$pkgver
|
|
_lua_libdir=/usr/lib/lua/5.1
|
|
|
|
prepare() {
|
|
cd "$builddir"
|
|
}
|
|
|
|
build() {
|
|
for _i in $_luaversions; do
|
|
msg "Build for Lua $_i"
|
|
cd "$builddir"
|
|
export EXTRA_CFLAGS="-fPIC"
|
|
make LUAPKG="lua$_i" || return 1
|
|
done
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
for _i in $_luaversions; do
|
|
install -d "$pkgdir"/usr/lib/lua/$_i "$pkgdir"/usr/share/doc/$pkgname
|
|
install src/xctrl.so "$pkgdir"/usr/lib/lua/$_i/xctrl.so
|
|
install doc/lxctrl.html "$pkgdir"/usr/share/doc/$pkgname/lxctrl.html
|
|
done
|
|
}
|
|
|
|
_split() {
|
|
local d=usr/lib/lua _ver=$1
|
|
pkgdesc="$pkgdesc for Lua $_ver"
|
|
install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
|
|
depends=
|
|
mkdir -p "$subpkgdir/$d" || return 1
|
|
mv "$pkgdir/$d/$1" "$subpkgdir/$d"
|
|
}
|
|
|
|
for _v in $_luaversions; do
|
|
eval "split_${_v/./_}() { _split $_v; }"
|
|
done
|
|
|
|
sha512sums="11a48641ebc71ab56201a707b844ee0d0475167fe4f4bd96f4d8296db00dc806c6d3889a5447bb41cec787b0de6d0351f77b45a8505fac5a5e184e3b80482acb lua-xctrl-2015.04.10.tar.gz"
|