aboutsummaryrefslogtreecommitdiffstats
path: root/main/xz
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-10-19 00:21:30 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-21 05:59:15 +0000
commit187fbc6e852cba0a52399adce59d8aaeff8e9283 (patch)
tree2226a45a95953d86cddd319899db52ebd7f3e8ae /main/xz
parent45aa78147df16c1b1e7763cbb25b2a6206ecc60c (diff)
downloadaports-187fbc6e852cba0a52399adce59d8aaeff8e9283.tar.bz2
aports-187fbc6e852cba0a52399adce59d8aaeff8e9283.tar.xz
main/xz: Install license to /usr/share/licenses
Diffstat (limited to 'main/xz')
-rw-r--r--main/xz/APKBUILD35
1 files 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 <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@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"