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/
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
# Contributor: David Huffman <storedbox@outlook.com>
|
|
# Maintainer: David Huffman <storedbox@outlook.com>
|
|
pkgname=libdwarf
|
|
pkgver=20170709
|
|
pkgrel=0
|
|
pkgdesc="Parsing library for DWARF2 and later debugging file format"
|
|
url="http://www.prevanders.net/dwarf.html"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later"
|
|
makedepends="elfutils-dev"
|
|
subpackages="$pkgname-dev dwarf-tools dwarf-tools-doc"
|
|
source="http://www.prevanders.net/$pkgname-$pkgver.tar.gz"
|
|
options="!check"
|
|
builddir="$srcdir/dwarf-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure --prefix=/usr --enable-shared || return 1
|
|
make && make -C dwarfgen || return 1
|
|
}
|
|
|
|
package() {
|
|
local bindir="$pkgdir/usr/bin"
|
|
local docdir="$pkgdir/usr/share/doc/dwarf-tools"
|
|
local incdir="$pkgdir/usr/include/libdwarf"
|
|
local libdir="$pkgdir/usr/lib"
|
|
local man1dir="$pkgdir/usr/share/man/man1"
|
|
mkdir -p "$bindir" "$docdir" "$incdir" "$libdir" "$man1dir"
|
|
|
|
cd "$builddir/libdwarf"
|
|
cp dwarf.h libdwarf.h "$incdir"
|
|
cp libdwarf.a libdwarf.so "$libdir"
|
|
|
|
cd "$builddir/dwarfdump"
|
|
cp dwarfdump "$bindir"
|
|
cp COPYING "$docdir/dwarfdump.COPYING"
|
|
cp DWARFDUMPCOPYRIGHT GPL.txt "$docdir"
|
|
cp dwarfdump.conf "$libdir"
|
|
cp dwarfdump.1 "$man1dir"
|
|
|
|
cd "$builddir/dwarfgen"
|
|
cp dwarfgen "$bindir"
|
|
cp COPYING "$docdir/dwarfgen.COPYING"
|
|
cp dwarfgen.1 "$man1dir"
|
|
}
|
|
|
|
tools() {
|
|
license="GPL2 BSD"
|
|
pkgdesc="Tools for interacting with DWARF2 and later debugging files"
|
|
|
|
local bin="usr/bin"
|
|
local lib="usr/lib"
|
|
|
|
mkdir -p "$subpkgdir/$lib"
|
|
mv "$pkgdir/$bin" "$subpkgdir/$bin"
|
|
mv "$pkgdir/$lib/dwarfdump.conf" "$subpkgdir/$lib"
|
|
}
|
|
|
|
sha512sums="afff6716ef1af5d8aae2b887f36b9a6547fb576770bc6f630b82725ed1e59cbd387779aa729bbd1a5ae026a25ac76aacf64b038cd898b2419a8676f9aa8c59f1 libdwarf-20170709.tar.gz"
|