diff options
Diffstat (limited to 'community/lrzip/APKBUILD')
-rw-r--r-- | community/lrzip/APKBUILD | 52 |
1 files changed, 44 insertions, 8 deletions
diff --git a/community/lrzip/APKBUILD b/community/lrzip/APKBUILD index 554e7398e65..a42addbea17 100644 --- a/community/lrzip/APKBUILD +++ b/community/lrzip/APKBUILD @@ -1,23 +1,52 @@ # Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com> # Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com> pkgname=lrzip -pkgver=0.641 -pkgrel=0 +pkgver=0.651 +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-dev $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 +# - CVE-2022-26291 +# 0.640-r0: +# - CVE-2021-27347 +# - CVE-2021-27345 +# - CVE-2020-25467 + 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 \ @@ -33,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=" -cb14dda15485faa24cb840dd94ecd4741bd47464770ae8b27f97b5c263d8a32e40ceb17b288f0f70426598ef2acf84b091593fc8cf7a0f2db0abde88d09a301f lrzip-0.641.tar.gz +97671c4705bc06dfd037e38f4384a5ffaf2e3508da217406ac43642b88eae16576818a378bce519812204fecefbd6552a75fc3e74af729ab7b11724b7a6d1998 lrzip-0.651.tar.gz " |