summaryrefslogtreecommitdiffstats
path: root/main/xz/APKBUILD
blob: 786a31ed38e337bb3e1ffd2e910b570cabe5d65f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xz
pkgver=5.0.3
pkgrel=1
pkgdesc="Library and command line tools for XZ and LZMA compressed files"
url="http://tukaani.org/xz/"
arch="all"
license="GPL LGPL 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 $srcdir/$pkgname-$pkgver
	./configure --prefix=/usr \
		--disable-rpath \
		--enable-werror
	sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
	sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

libs() {
	pkgdesc="Libraries for decoding LZMA compression"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/
}

md5sums="fefe52f9ecd521de2a8ce38c21a27574  xz-5.0.3.tar.gz"