Skip to content
Snippets Groups Projects
Verified Commit ddd7708c authored by Robin Candau's avatar Robin Candau
Browse files

upgpkg: 4.15-2: Add a patch to strip gzip timestamps for reproducible builds

parent 514f1591
No related branches found
Tags 1.24.12-1
No related merge requests found
pkgbase = highlight
pkgver = 4.15
pkgrel = 1
pkgrel = 2
url = http://www.andre-simon.de/doku/highlight/highlight.html
arch = x86_64
license = GPL
......@@ -9,11 +9,14 @@ pkgbase = highlight
makedepends = boost
source = http://www.andre-simon.de/zip/highlight-4.15.tar.bz2
source = http://www.andre-simon.de/zip/highlight-4.15.tar.bz2.asc
source = strip_gzip_timestamps.patch
validpgpkeys = B8C55574187F49180EDC763750FE0279D805A7C7
md5sums = fd16041ffc8945ef6c4c07dbf83c541c
md5sums = SKIP
md5sums = 1c816ade54c811d22531c6ce5699c769
sha256sums = 68b3f8178c5c9d4b0a03f6948635cef1c8d06244f6b438eebf3a190c588337e9
sha256sums = SKIP
sha256sums = 8ebc7cfb1a43417ec19c3346b69817b68ac6de9caf4fd46bdeef2b2831900caf
pkgname = highlight
pkgdesc = Fast and flexible source code highlighter (CLI version)
......
......@@ -3,16 +3,19 @@
pkgbase=highlight
pkgname=(highlight highlight-gui)
pkgver=4.15
pkgrel=1
pkgrel=2
url="http://www.andre-simon.de/doku/highlight/highlight.html"
license=('GPL')
arch=('x86_64')
makedepends=(qt5-base lua boost)
source=(http://www.andre-simon.de/zip/$pkgname-$pkgver.tar.bz2{,.asc})
source=(http://www.andre-simon.de/zip/$pkgname-$pkgver.tar.bz2{,.asc}
strip_gzip_timestamps.patch)
md5sums=('fd16041ffc8945ef6c4c07dbf83c541c'
'SKIP')
'SKIP'
'1c816ade54c811d22531c6ce5699c769')
sha256sums=('68b3f8178c5c9d4b0a03f6948635cef1c8d06244f6b438eebf3a190c588337e9'
'SKIP')
'SKIP'
'8ebc7cfb1a43417ec19c3346b69817b68ac6de9caf4fd46bdeef2b2831900caf')
validpgpkeys=(B8C55574187F49180EDC763750FE0279D805A7C7)
prepare() {
......@@ -21,6 +24,10 @@ prepare() {
sed -i 's/QMAKE=qmake/QMAKE=qmake-qt5/' src/makefile
sed -i 's/QMAKE_CC = clang/QMAKE_CC = gcc/' src/gui-qt/highlight.pro
sed -i 's/QMAKE_CXX = clang++/QMAKE_CXX = g++/' src/gui-qt/highlight.pro
# Patch to strip gzip timestamps for reproducible build
patch -Np1 -i "${srcdir}/strip_gzip_timestamps.patch"
}
build() {
......
diff --git a/makefile b/makefile
index 4a4ae35..8a2842c 100644
--- a/makefile
+++ b/makefile
@@ -57,7 +57,7 @@ desktop_apps = ${data_dir}applications/
desktop_icons = ${data_dir}icons/hicolor/256x256/apps/
# Commands:
-GZIP=gzip -9f
+GZIP=gzip -9fn
INSTALL_DATA=install -m644
INSTALL_PROGRAM=install -m755
MKDIR=mkdir -p -m 755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment