aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-04-29 23:04:52 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-05-15 14:39:25 +0200
commit7501ed73da80079efa5ebf028e2df57337be39b8 (patch)
tree99c4dda7f367152214dd687238f892d65a2f6dec
parentb4413291f7b25ceea81a703d173847b51dc803e2 (diff)
downloadaports-7501ed73da80079efa5ebf028e2df57337be39b8.tar.bz2
aports-7501ed73da80079efa5ebf028e2df57337be39b8.tar.xz
main/xz: clarify license, improve abuild
add --disable-docs as it mostly includes SPDX license files, THANKS, TODOs, etc
-rw-r--r--main/xz/APKBUILD31
1 files changed, 13 insertions, 18 deletions
diff --git a/main/xz/APKBUILD b/main/xz/APKBUILD
index e83f0f1bb1..fbef29554c 100644
--- a/main/xz/APKBUILD
+++ b/main/xz/APKBUILD
@@ -3,14 +3,12 @@
pkgname=xz
pkgver=5.2.3
pkgrel=1
-pkgdesc="Library and command line tools for XZ and LZMA compressed files"
-url="https://tukaani.org/xz/"
+pkgdesc="Library and CLI tools for XZ and LZMA compressed files"
+url="https://tukaani.org/xz"
arch="all"
-license="custom"
-depends=""
-makedepends=""
+license="GPL-2.0-or-later Public-Domain"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
-source="https://tukaani.org/xz/xz-$pkgver.tar.gz"
+source="https://tukaani.org/xz/$pkgname-$pkgver.tar.xz"
build() {
cd "$builddir"
@@ -23,13 +21,13 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-rpath \
- --disable-werror
-
- sed 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
- -i libtool
- sed 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
- -i libtool
+ --disable-werror \
+ --disable-doc
+ sed -i \
+ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
+ libtool
make
}
@@ -39,11 +37,8 @@ check() {
}
package() {
- make -C "$builddir" DESTDIR="$pkgdir" install
- install -Dm644 "$builddir"/COPYING \
- "$pkgdir"/usr/share/licenses/$pkgname
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="ef68674fb47a8b8e741b34e429d86e9d xz-5.2.3.tar.gz"
-sha256sums="71928b357d0a09a12a4b4c5fafca8c31c19b0e7d3b8ebb19622e96f26dbf28cb xz-5.2.3.tar.gz"
-sha512sums="a5eb4f707cf31579d166a6f95dbac45cf7ea181036d1632b4f123a4072f502f8d57cd6e7d0588f0bf831a07b8fc4065d26589a25c399b95ddcf5f73435163da6 xz-5.2.3.tar.gz"
+sha512sums="a5b8f3c402ec3df5c1875a32081136606dd7701190d8b8091bae1bac36553ebe3480985c8069bf5d9e24f374ea64b1fe22614d3eebac1c10e5d609701bceca95 xz-5.2.3.tar.xz"