[arch-commits] Commit in lrzip/trunk (PKGBUILD)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Thu May 26 19:24:41 UTC 2022
Date: Thursday, May 26, 2022 @ 19:24:41
Author: artafinde
Revision: 1210679
Relevant github issue https://github.com/ckolivas/lrzip/issues/91
Modified:
lrzip/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-26 19:24:31 UTC (rev 1210678)
+++ PKGBUILD 2022-05-26 19:24:41 UTC (rev 1210679)
@@ -4,7 +4,7 @@
pkgname=lrzip
pkgver=0.651
-pkgrel=1
+pkgrel=2
pkgdesc='Multi-threaded compression with rzip/lzma, lzo, and zpaq'
url='https://github.com/ckolivas/lrzip'
license=('GPL')
@@ -11,11 +11,18 @@
arch=('x86_64')
depends=('lzo')
makedepends=('git')
-source=("git+https://github.com/ckolivas/lrzip#tag=v$pkgver")
-sha256sums=('SKIP')
+source=("git+https://github.com/ckolivas/lrzip#tag=v${pkgver}"
+ "${pkgname}-${pkgver}-CVE-2018-5786.patch::https://github.com/ckolivas/lrzip/commit/3495188cd8f2215a9feea201f3e05c1341ed95fb.patch")
+sha256sums=('SKIP'
+ '8573ff8dd049c91cd0e6d754683e889ae439119cb9e738241dedd369c280a6fc')
+prepare() {
+ cd "${pkgname}"
+ patch -Np1 < "../${pkgname}-${pkgver}-CVE-2018-5786.patch"
+}
+
build() {
- cd "$pkgname"
+ cd "${pkgname}"
CFLAGS="$CFLAGS -fomit-frame-pointer"
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
@@ -25,11 +32,11 @@
}
check() {
- make -C "$pkgname" -k check
+ make -C "${pkgname}" -k check
}
package() {
- make -C "$pkgname" DESTDIR="$pkgdir" install-strip
+ make -C "${pkgname}" DESTDIR="${pkgdir}" install-strip
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list