summaryrefslogtreecommitdiffstats
path: root/main/chrpath/APKBUILD
blob: 5be6a5f6a30c414e242fe5b42a0d5c7d4e7dffe9 (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
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=chrpath
pkgver=0.16
pkgrel=0
pkgdesc="Modify rpath of compiled programs"
url="https://alioth.debian.org/projects/chrpath/"
arch="all"
license="GPL+"
depends=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="https://alioth.debian.org/frs/download.php/latestfile/813/chrpath-$pkgver.tar.gz"

_builddir="$srcdir"/chrpath-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" docdir=/usr/share/doc/$pkgname-$pkgver \
		install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="2bf8d1d1ee345fc8a7915576f5649982  chrpath-0.16.tar.gz"
sha256sums="bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b  chrpath-0.16.tar.gz"
sha512sums="aa04d490f78bff20a56fe20539cec10218c0772a668909eda8324ca825f51e8ef92001e95d9c316e79a145a043c9c327ec94d1a82e104ab408ca1021832745aa  chrpath-0.16.tar.gz"