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

65 lines
1.7 KiB
Plaintext

# Contributor: Mark Riedesel <mark@klowner.com>
# Maintainer: Mark Riedesel <mark@klowner.com>
pkgname=opensubdiv
_pkgname=OpenSubdiv
pkgver=3.0.5
_pkgver=${pkgver//./_}
pkgrel=3
pkgdesc="An Open-Source subdivision surface library"
url="http://graphics.pixar.com/opensubdiv"
arch="all"
license="Apache-2.0"
depends=""
makedepends="cmake glew-dev glfw-dev doxygen py-docutils libxcursor-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tutorials $pkgname-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/PixarAnimationStudios/$_pkgname/archive/v$_pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$_pkgver"
build() {
mkdir -p "$builddir"/build
cd "$builddir"/build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DNO_TBB=TRUE \
-DNO_PTEX=TRUE \
-DNO_MAYA=TRUE \
-DNO_CUDA=TRUE \
-DNO_OPENCL=TRUE \
|| return 1
make || return 1
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
}
tutorials() {
pkgdesc="$pkgdesc (tutorials)"
depends="$pkgname"
cd "$pkgdir"
mkdir -p "$subpkgdir"/usr/bin/
local tut; for tut in ./usr/bin/tutorials/*; do
mv $tut "$subpkgdir"/usr/bin/opensubdiv_${tut##*/}
done
rmdir ./usr/bin/tutorials
}
tools() {
pkgdesc="$pkgdesc (tools)"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
md5sums="f16fa309b3fa3d400e6dcbf59d316dfe opensubdiv-3.0.5.tar.gz"
sha256sums="60bb7d709adfd949ff865864b68ff3b7e97a682a1841ccc70cd60a6c5a28ff30 opensubdiv-3.0.5.tar.gz"
sha512sums="cee4c13fd0ef0a8dac6f880bdda8b6eed1ac3c17f7eadbd5f00bb8fe0140ca12a244b7e51edc98186af0551a26ac88e402651837f3f49195d3a9697437b86bf8 opensubdiv-3.0.5.tar.gz"