mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02: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/
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=lasem
|
|
pkgver=0.5.0
|
|
_apiver=0.6
|
|
pkgrel=2
|
|
pkgdesc="A library for rendering SVG and Mathml, implementing a DOM like API"
|
|
url="https://wiki.gnome.org/Projects/Lasem"
|
|
arch="all"
|
|
license="LGPL-2.0 GPL-2.0"
|
|
makedepends="intltool gdk-pixbuf-dev gobject-introspection-dev libxml2-dev
|
|
pango-dev"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-render"
|
|
source="http://download.gnome.org/sources/lasem/${pkgver%.*}/lasem-$pkgver.tar.xz
|
|
install-mathml-headers.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--disable-silent-rules \
|
|
|| return 1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
|
|
# Some software expect pkg-config name without a version.
|
|
test -e "$pkgdir"/usr/lib/pkgconfig/$pkgname-$_apiver.pc
|
|
ln -s $pkgname-$_apiver.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
|
|
|
|
rm -r "$pkgdir"/usr/share/gtk-doc \
|
|
"$pkgdir"/usr/doc
|
|
}
|
|
|
|
render() {
|
|
pkgdesc="Simple MathML converter"
|
|
|
|
cd "$pkgdir"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
mv usr/bin/lasem-render* "$subpkgdir"/usr/bin/
|
|
rmdir usr/bin || true
|
|
|
|
test -e "$subpkgdir"/usr/bin/lasem-render-$_apiver
|
|
ln -s lasem-render-$_apiver "$subpkgdir"/usr/bin/lasem-render
|
|
}
|
|
|
|
sha512sums="1ee92ea73550ee7b23394976c91e63d9dccbd76ba414d01a06cb75f65da0decf57c56a9121e4e120f1cf2311dc217d462ac361ca16f6b0d7410e1b886b6f4cd8 lasem-0.5.0.tar.xz
|
|
bdfa5cd2b108d40ec77cee70f5bf2664a003b75249078fe57a8ddffb51a01f0ac8194fbec1ebc000a0aa4a65b08647874ed317bfa4523e24db59f49ca66d34eb install-mathml-headers.patch"
|