diff options
author | psykose <alice@ayaya.dev> | 2022-07-24 01:32:35 +0000 |
---|---|---|
committer | alice <alice@ayaya.dev> | 2022-07-24 01:38:32 +0000 |
commit | d28106681f10ee807b89bc8323051716de4e28ab (patch) | |
tree | 4caa0f3a3d2ea7e7aeae2219b96863c6c7cb4f38 | |
parent | ca42b45aaf174105452561fc1297fff518e80c11 (diff) |
community/lrzip: improve
- add nasm
- improve optimisation
- split away bash wrappers
-rw-r--r-- | community/lrzip/APKBUILD | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/community/lrzip/APKBUILD b/community/lrzip/APKBUILD index faa83241385..a42addbea17 100644 --- a/community/lrzip/APKBUILD +++ b/community/lrzip/APKBUILD @@ -2,16 +2,32 @@ # Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com> pkgname=lrzip pkgver=0.651 -pkgrel=0 +pkgrel=1 pkgdesc="compression utility that excels at compressing large files" url="https://github.com/ckolivas/lrzip" arch="all" -license="GPL-2.0" -depends="bash" -makedepends="autoconf automake libtool zlib-dev bzip2-dev lzo-dev lz4-dev" -subpackages="$pkgname-doc" +license="GPL-2.0-or-later" +makedepends=" + autoconf + automake + bzip2-dev + libtool + lz4-dev + lzo-dev + zlib-dev + " +subpackages="$pkgname-doc $pkgname-extra-scripts:extra" source="$pkgname-$pkgver.tar.gz::https://github.com/ckolivas/lrzip/archive/v$pkgver.tar.gz" +case "$CARCH" in +x86*) + # not feature detected, so add it here only + makedepends="$makedepends nasm" + ;; +*) + ;; +esac + # secfixes: # 0.650-r0: # - CVE-2022-28044 @@ -23,10 +39,14 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ckolivas/lrzip/archive/v$pkg prepare() { default_prepare - ./autogen.sh + NOCONFIGURE=1 ./autogen.sh } build() { + # compression utility; also doesn't make it any bigger + CFLAGS="$CFLAGS -O2 -flto" \ + CXXFLAGS="$CXXFLAGS -O2 -flto" \ + LDFLAGS="$LDFLAGS -flto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -42,6 +62,13 @@ package() { make install DESTDIR="$pkgdir" } +extra() { + pkgdesc="$pkgdesc (bash scripts)" + depends="bash $pkgname=$pkgver-r$pkgrel" + + amove usr/bin/lrztar usr/bin/lrzuntar +} + sha512sums=" 97671c4705bc06dfd037e38f4384a5ffaf2e3508da217406ac43642b88eae16576818a378bce519812204fecefbd6552a75fc3e74af729ab7b11724b7a6d1998 lrzip-0.651.tar.gz " |