aboutsummaryrefslogtreecommitdiffstats
path: root/community/patchelf/APKBUILD
blob: 96eed0499914ac6a0e5859e3f4f2940d5d0210b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Michael Koloberdin <koloberdin@gmail.com>
pkgname=patchelf
pkgver=0.10
pkgrel=0
pkgdesc="Small utility to modify the dynamic linker and RPATH of ELF executables"
url="https://nixos.org/patchelf.html"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/NixOS/patchelf/archive/$pkgver.tar.gz
	fix-tests.patch
	"

prepare() {
	default_prepare
	autoreconf -fiv
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	case "$CARCH" in
		ppc64le) ;;
		x86) ;;
		*) make -C tests -j1 check ;;
	esac
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="034e7d68fa4ea90c9a0d03c0c8625522f4876c794d15be7770d809386c96047385c431bba7a655e8b460394dc414ea6dd0a9ca0d232396ac9e7bf1990eb3a75b  patchelf-0.10.tar.gz
f52c519e1b43481b44ac24060a05a1f027468627e9bf6e75055a1ae480f53a4ce141923adcaacea1370a8ef3bdbf12edbf479e348b6aecc0f0d1eba0cdf23ec8  fix-tests.patch"