diff options
Diffstat (limited to 'community/lrzip/APKBUILD')
-rw-r--r-- | community/lrzip/APKBUILD | 54 |
1 files changed, 46 insertions, 8 deletions
diff --git a/community/lrzip/APKBUILD b/community/lrzip/APKBUILD index 60a186b7e9a..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.640 -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,4 +62,13 @@ package() { make install DESTDIR="$pkgdir" } -sha512sums="efcf7d5cbb7c2a2a117ec815f87edf37e5500f2294a16aaa16cfe10b3db77e3cc2eb4118def4936da03323ca3ee961000e98f49ca0c18eec6ba935eac412cc8b lrzip-0.640.tar.gz" +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 +" |