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/
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
# Maintainer: Michael Koloberdin <koloberdin@gmail.com>
|
|
pkgname=patchelf
|
|
pkgver=0.9
|
|
pkgrel=2
|
|
pkgdesc="Small utility to modify the dynamic linker and RPATH of ELF executables"
|
|
url="https://nixos.org/patchelf.html"
|
|
arch="all !aarch64"
|
|
license="GPL-3.0"
|
|
depends=""
|
|
makedepends="autoconf automake libtool"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="${pkgname}-${pkgver}.tar.gz::https://github.com/NixOS/patchelf/archive/${pkgver}.tar.gz
|
|
fix-tests.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
prepare() {
|
|
cd "$builddir"
|
|
default_prepare
|
|
autoreconf -fiv || return 1
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure --prefix=/usr || return 1
|
|
make || return 1
|
|
}
|
|
|
|
check(){
|
|
cd "$builddir"
|
|
if [ "$CARCH" != "ppc64le" ] ; then
|
|
make -C tests -j1 check || return 1
|
|
fi
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
}
|
|
|
|
md5sums="69c94a4400e930f938b754d543705eb9 patchelf-0.9.tar.gz
|
|
39250eb2b2261bac6344b4e0bba08a9c fix-tests.patch"
|
|
sha256sums="cf0693e794229e19edcf2299427b5a352e0f4d4f06f9d3856e30ddb0344d5ce8 patchelf-0.9.tar.gz
|
|
7e8c1d25ee815ab0cd644c5cfe76f87b83877146a5e2252236ceb407fbcaf883 fix-tests.patch"
|
|
sha512sums="70e615f2f705f413aab5e3eebe20ffe79743bb92381b10a8faa49f16ca24b0f9bd4095c5644f682ec94d75012ffb1b39837933faa9f3c1f1c41bdc5b9d010a30 patchelf-0.9.tar.gz
|
|
f52c519e1b43481b44ac24060a05a1f027468627e9bf6e75055a1ae480f53a4ce141923adcaacea1370a8ef3bdbf12edbf479e348b6aecc0f0d1eba0cdf23ec8 fix-tests.patch"
|