aports/community/numix-themes/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

63 lines
2.1 KiB
Plaintext

# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=numix-themes
_pkgname=numix-gtk-theme
pkgver=2.6.4
pkgrel=0
pkgdesc="A modern flat theme with a combination of light and dark elements, GTK 2 and 3"
url="http://shimmerproject.org/project/Numix/"
arch="noarch"
license="GPL-3.0"
subpackages="$pkgname-gtk2 $pkgname-gtk3 $pkgname-metacity $pkgname-xfwm4 $pkgname-xfce4-notifyd:_notify
$pkgname-openbox:_openbox"
source="numix-$pkgver.tar.gz::https://github.com/numixproject/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver/src"
build() {
cd "$builddir"
# Remove Unity theme
rm -f gtk-3.0/apps/unity.css
sed -i '/unity\.css/d' gtk-3.0/gtk.css
rm -rf unity
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/share/themes/Numix
cp -pr ../* "$pkgdir"/usr/share/themes/Numix
mv index.theme "$pkgdir"/usr/share/themes/Numix
cd "$pkgdir"/usr/share/themes/Numix
rm -rf src/assets scripts Makefile
}
_mv() {
pkgdesc="$1"
install_if="$pkgname=$pkgver-r$pkgrel $2";
local _i
shift; shift
mkdir -p "$subpkgdir"/usr/share/themes/Numix
for _i; do
msg "moving $_i"
mv "$pkgdir"/usr/share/themes/Numix/src/$_i \
"$subpkgdir"/usr/share/themes/Numix || return 1
done
# index.theme remains in src despite being moved in package().
rm -f "$pkgdir"/usr/share/themes/Numix/src/index.theme 2>/dev/null || true
# Remove the empty top level src directory after moving finishes.
rmdir "$pkgdir"/usr/share/themes/Numix/src 2>/dev/null || true
}
gtk2() {
_mv "Numix GTK2 themes" gtk2.0 gtk-2.0
depends="gtk-murrine-engine"
}
gtk3() { _mv "Numix GTK3 themes" gtk3.0 gtk-3.*; }
metacity() { _mv "Numix Metacity themes" metacity metacity-1; }
xfwm4() { _mv "Numix Xfce4 themes" xfwm4 xfwm4; }
_notify() { _mv "Numix Xfce4-notifyd themes" xfce4-notifyd xfce-notify-4.0; }
_openbox() { _mv "Numix openbox themes" openbox openbox-3; }
md5sums="cdaca5ede2a40000d383d200e01c0395 numix-2.6.4.tar.gz"
sha256sums="f70cad6608d9a1b4819eaf6b51fc03d5c75971ff8f08080ac2eb9a5d8e386e6f numix-2.6.4.tar.gz"
sha512sums="a546f6214095a1b1d808e317ff4f3471962afacd20b5b3b4e1bc46bb604d5d9d4162b2358048dcf02f4fb2d7290ce5cfbc82a4f4e1bf07ca186ca6f54789d586 numix-2.6.4.tar.gz"