Mail archive
alpine-aports

[alpine-aports] [PATCH] main/xz: Install license to /usr/share/licenses

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
Date: Mon, 19 Oct 2015 00:21:30 +0200

---
 main/xz/APKBUILD | 35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/main/xz/APKBUILD b/main/xz/APKBUILD
index 803bdc1..cb71a37 100644
--- a/main/xz/APKBUILD
+++ b/main/xz/APKBUILD
_at_@ -1,41 +1,44 @@
+# Contributor: Sören Tempel <soeren+alpine_at_soeren-tempel.net>
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=xz
 pkgver=5.2.2
-pkgrel=0
+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"
+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 $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 -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
+	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
 }
 
-libs() {
-	pkgdesc="Libraries for decoding LZMA compression"
-	mkdir -p "$subpkgdir"/usr/lib
-	mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/
+package() {
+	make -C "$_builddir" DESTDIR="$pkgdir" install || return 1
+	install -Dm644 "$_builddir"/COPYING \
+		"$pkgdir"/usr/share/licenses/$pkgname || return 1
 }
 
 md5sums="7cf6a8544a7dae8e8106fdf7addfa28c  xz-5.2.2.tar.gz"
-- 
2.6.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Oct 19 2015 - 00:21:30 GMT