summaryrefslogtreecommitdiffstats
path: root/main/ltrace/APKBUILD
blob: 1f459db2000f8df8037943b1f45c8a305519f289 (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
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ltrace
pkgver=0.7.2
pkgrel=1
pkgdesc="Tracks runtime library calls in dynamically linked programs"
url="http://ltrace.alioth.debian.org/"
arch="all"
license="GPL"
depends=
options="!configsub"
makedepends="libelf-dev autoconf automake"
subpackages="$pkgname-doc"
source="http://dev.alpinelinux.org/archive/ltrace/ltrace-$pkgver.tar.bz2
	host-os-uclibc.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal && autoconf && automake --add-missing --force || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-werror \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make install INSTALL=install DESTDIR="$pkgdir" || return 1
}
md5sums="f5d9282b471cdf9fbafd916ec5be0717  ltrace-0.7.2.tar.bz2
3bff111d422b6e181240fb15ade9fb94  host-os-uclibc.patch"
sha256sums="bd9e7bd94ba6728fd3ec57f4bcfef8240260bea8f4fcebbc9c454d07ccc11894  ltrace-0.7.2.tar.bz2
73872075162b7992660d61995b6d1fcff040d866b3a9132470ca5736a79054f2  host-os-uclibc.patch"
sha512sums="ec86f08d0c18579ff05f8be23ef3c7309c76c647a0d952fbc627e8095b6ce52b2552e152dc0ec9c6098039c2d50d549a1d218f56a13f75f28bc7b03eb39e94e0  ltrace-0.7.2.tar.bz2
4094bcd955d8a3391ce41adba5c510f42f84d678d1326e05cb3949061689c61abe0d538b0377c1ae8883f69287965d5616129fc8037a89737d2f25e719382510  host-os-uclibc.patch"