aboutsummaryrefslogtreecommitdiffstats
path: root/main/xz/APKBUILD
blob: 60912d66bdf7e328ede59afb716ef52968042386 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xz
pkgver=5.2.3
pkgrel=0
pkgdesc="Library and command line tools for XZ and LZMA compressed files"
url="http://tukaani.org/xz/"
arch="all"
license="custom"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://tukaani.org/xz/xz-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-rpath \
		--disable-werror \
		|| return 1

	sed 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
		-i libtool || return 1
	sed 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
		-i libtool || return 1

	make || return 1
}

package() {
	make -C "$_builddir" DESTDIR="$pkgdir" install || return 1
	install -Dm644 "$_builddir"/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname || return 1
}

md5sums="ef68674fb47a8b8e741b34e429d86e9d  xz-5.2.3.tar.gz"
sha256sums="71928b357d0a09a12a4b4c5fafca8c31c19b0e7d3b8ebb19622e96f26dbf28cb  xz-5.2.3.tar.gz"
sha512sums="a5eb4f707cf31579d166a6f95dbac45cf7ea181036d1632b4f123a4072f502f8d57cd6e7d0588f0bf831a07b8fc4065d26589a25c399b95ddcf5f73435163da6  xz-5.2.3.tar.gz"