summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew O'Neill2020-07-23 01:21:11 -0400
committerAndrew O'Neill2020-07-23 01:21:11 -0400
commit66258387a099da72f7758495fb0e3c93e16068e7 (patch)
tree199bc6601268c965274fb301f155fbb706f3ea6c
parent93bb87bbb8f803dca96ef83c339735ee64e3d801 (diff)
downloadaur-66258387a099da72f7758495fb0e3c93e16068e7.tar.gz
Apply GCC 10 workaround
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 10 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c138541493d..d42eb733eb2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = fim
pkgdesc = FIM (Fbi IMproved) is a highly customizable and scriptable image viewer.
pkgver = 0.6
- pkgrel = 2
+ pkgrel = 3
url = https://www.nongnu.org/fbi-improved/
install = fim.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 2b70091128f..b9a1bcce222 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=fim
_pkgname='trunk'
pkgver=0.6
-pkgrel=2
+pkgrel=3
pkgdesc='FIM (Fbi IMproved) is a highly customizable and scriptable image viewer.'
arch=('i686' 'x86_64')
conflicts=('fim-svn')
@@ -24,6 +24,14 @@ source=("https://download.savannah.gnu.org/releases/fbi-improved/${pkgname}-${pk
sha256sums=('f77f45d38cbd2ddb5a21ce48b6ecb44e7ddcf77d00635d7c7dbe74ea083b8b88'
'8c647abb30baced37aaef6544b66ed2f8709b7ad6636d761f948d85c3071c536')
+prepare() {
+ cd "${pkgname}-${pkgver}-${_pkgname}"
+
+ sed -i -e 's/#define FIM_WANT_BACKGROUND_LOAD.*//' src/fim.h
+ sed -i -e 's/void exit/FIM_NORETURN void exit/' src/CommandConsole.h
+ sed -i -e 's/°//g' src/fim.cpp
+}
+
build() {
cd "${pkgname}-${pkgver}-${_pkgname}"