aboutsummaryrefslogtreecommitdiffstats
path: root/main/libelf/APKBUILD
blob: 9b118415a8d4830a3aa1750609aaaa4ff8f5d1eb (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
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libelf
pkgver=0.8.13
pkgrel=2
pkgdesc="libelf is a free ELF object file access library"
url="http://www.mr511.de/software/"
arch="all"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-dev"
source="http://www.mr511.de/software/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--enable-gnu-names \
		--enable-compat \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install prefix="$pkgdir"/usr || return 1
}
sha512sums="d2a4ea8ccc0bbfecac38fa20fbd96aefa8e86f8af38691fb6991cd9c5a03f587475ecc2365fc89a4954c11a679d93460ee9a5890693112f6133719af3e6582fe  libelf-0.8.13.tar.gz"