summaryrefslogtreecommitdiff
path: root/system/elfutils/APKBUILD
blob: 9b35ccee4444e6844f335a29cf3d33cd722e1559 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=elfutils
pkgver=0.192
pkgrel=0
pkgdesc="Libraries and utilities to manipulate ELF objects"
url="https://sourceware.org/elfutils/"
arch="all"
license="GPL-2.0+ AND LGPL-3.0+ AND GPL-3.0+"
depends=""
checkdepends="musl-dbg shimmy>0.7"
makedepends="argp-standalone-dev bzip2-dev curl-dev fts-dev libarchive-dev
	libbsd-dev m4 musl-obstack-dev xz-dev zlib-dev zstd-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2
	aarch64-regs.patch
	backtrace-signal.patch
	backtrace-cfi-fault.patch
	elfcompress-wildcard.patch
	fnm.patch
	skip-run-deleted.patch
	skip-run-backtrace-native-core.patch
	error.h
	"

prepare() {
	default_prepare
	mkdir "$srcdir"/vendor-error
	ln -s "$srcdir"/error.h "$srcdir"/vendor-error/error.h
}

build() {
	export CFLAGS="$CFLAGS -I$srcdir/vendor-error -Og"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		ac_cv_header_error_h=yes
	make
}

check() {
	env LD_LIBRARY_PATH="${builddir}/libelf:${builddir}/libebl:${builddir}/libdw:${builddir}/libasm" \
		LC_ALL="C" \
		make check VERBOSE=1
}

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

sha512sums="543188f5f2cfe5bc7955a878416c5f252edff9926754e5de0c6c57b132f21d9285c9b29e41281e93baad11d4ae7efbbf93580c114579c182103565fe99bd3909  elfutils-0.192.tar.bz2
1eb5975bed830dc83e9375f526176276a5254dd9351853dc4c2c4be66246ea74bb65ae5352ea9f3d7fdf70f8af2b9d953e921dbce7cf94a906cd22272db6adab  aarch64-regs.patch
17fc3bc814300e07f6087ce010c43bb67d6b0c8f3bf34ef57815a322a6ef9fbec5929b08641842b0f097d1ff2fdc865c94d6c4e84e357ce0b37e0c9b427024a7  backtrace-signal.patch
90f8b6b894e79334c66522675e47debb60266fcdb7124bfd9eb0938a276ad4168bee734d3e125b56c76f20b849aa70ac8181382f01313264ecca08225e5fe411  backtrace-cfi-fault.patch
7fa88ba58fb5eb7c835074dcd1db19591a001bb713c472f08eba3a94d80129011365f9cad70b04ec162897a13e4d2cc2d05ccec9130fd51b163621bb6e7ecc9d  elfcompress-wildcard.patch
95c46254dbd6ad358c29d2f9577ccb9ce884e51b3d7587b7d91c02c1b4e54378ceba707a9d3800b1a7a15b7a4ba8bce6e7601fb6eb3cc93bbe82d484fc16103e  fnm.patch
a85900ec75e72cc394b7e188f1f93dbf8b0555987e122cf4cb3369ecc8446d7af7d078c5e387f550806f5a738dcb12d4dde4d4313ed6ffb56d1de0481249016d  skip-run-deleted.patch
339da4817c86d40b0581530bdd05006371d37568f66f766bf1307c65af941dd3ee373ee5d2dd32b0381de1a0649b0c4349c2c7f842adcec911c89f6a24cb0c99  skip-run-backtrace-native-core.patch
b33d7f210b9652b7b919afb32b4674ca125b660bf5f81fafb4e4e8405ea16be74ce85f653e6c0ac83e5fff1b192e82e273c5b5baa3802fdc7602edfa1086936d  error.h"