Skip to content

Commit

Permalink
archrelease: copy trunk to extra-x86_64
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-packages/svn@383696 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
jelly committed May 15, 2020
1 parent f48fb12 commit 829fc44
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
9 changes: 6 additions & 3 deletions a2ps/repos/extra-x86_64/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=a2ps
pkgver=4.14
pkgrel=9
pkgrel=10
pkgdesc="An Any to PostScript filter"
arch=('x86_64')
url="https://www.gnu.org/software/a2ps/"
Expand All @@ -17,7 +17,8 @@ source=(https://ftp.gnu.org/gnu/a2ps/${pkgname}-${pkgver}.tar.gz{,.sig}
a2ps-4.13-security.patch
CVE-2014-0466.patch
CVE-2015-8107.patch
a2ps-texinfo67.patch)
a2ps-texinfo67.patch
adhere-source-date-epoch.patch)
sha1sums=('365abbbe4b7128bf70dad16d06e23c5701874852'
'SKIP'
'8783952d3410d8d59ed953e1db45e2ef1a0b8f65'
Expand All @@ -29,7 +30,8 @@ sha1sums=('365abbbe4b7128bf70dad16d06e23c5701874852'
'93a4db17edfaa99e3498c7d952c560dab49dbe42'
'0a04f4c145d3aef8f3c7537eb00cb4040c7209c9'
'08c51a9361eaefe76af61b70392fa5ac1c4356c7'
'f54b6b319a5c134e0ee9be8dc9c8f80a65dc98d6')
'f54b6b319a5c134e0ee9be8dc9c8f80a65dc98d6'
'd53042daa93db3969fbb5564c4f93ddc91ef6334')
validpgpkeys=('6EB39358D8328FE3CDC903A8CB6FA340E7075A54')

prepare() {
Expand All @@ -48,6 +50,7 @@ prepare() {
patch -p1 -i "${srcdir}/CVE-2014-0466.patch"
patch -p1 -i "${srcdir}/CVE-2015-8107.patch"
patch -p1 -i "${srcdir}/a2ps-texinfo67.patch"
patch -p1 -i "${srcdir}/adhere-source-date-epoch.patch"
}

build() {
Expand Down
22 changes: 22 additions & 0 deletions a2ps/repos/extra-x86_64/adhere-source-date-epoch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff -aur a2ps-4.14.old/etc/Makefile.am a2ps-4.14/etc/Makefile.am
--- a2ps-4.14.old/etc/Makefile.am 2020-05-15 16:22:46.236954254 +0200
+++ a2ps-4.14/etc/Makefile.am 2020-05-15 16:58:42.382348094 +0200
@@ -44,5 +44,5 @@

# Building a time stamp to know the version.
README: README.in Makefile
- sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
+ sed "s!@date@!$(shell date --utc --date="${SOURCE_DATE_EPOCH:-$(date +%s)}")!g;s!@version@!$(VERSION)!g" \
$(srcdir)/README.in > README
diff -aur a2ps-4.14.old/etc/Makefile.in a2ps-4.14/etc/Makefile.in
--- a2ps-4.14.old/etc/Makefile.in 2020-05-15 16:22:46.236954254 +0200
+++ a2ps-4.14/etc/Makefile.in 2020-05-15 16:59:00.132720058 +0200
@@ -486,7 +486,7 @@

# Building a time stamp to know the version.
README: README.in Makefile
- sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
+ sed "s!@date@!$(shell date --utc --date="${SOURCE_DATE_EPOCH:-$(date +%s)}")!g;s!@version@!$(VERSION)!g" \
$(srcdir)/README.in > README
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

0 comments on commit 829fc44

Please sign in to comment.