From 187fbc6e852cba0a52399adce59d8aaeff8e9283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 19 Oct 2015 00:21:30 +0200 Subject: main/xz: Install license to /usr/share/licenses --- main/xz/APKBUILD | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/main/xz/APKBUILD b/main/xz/APKBUILD index 803bdc1095..cb71a378a6 100644 --- a/main/xz/APKBUILD +++ b/main/xz/APKBUILD @@ -1,41 +1,44 @@ +# Contributor: Sören Tempel # Maintainer: Natanael Copa 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" -- cgit v1.2.3