[arch-commits] Commit in fwbuilder/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Mon Nov 22 10:14:21 UTC 2021
Date: Monday, November 22, 2021 @ 10:14:21
Author: foutrelis
Revision: 1054227
Fix build with C++17 standard
Modified:
fwbuilder/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-22 09:47:07 UTC (rev 1054226)
+++ PKGBUILD 2021-11-22 10:14:21 UTC (rev 1054227)
@@ -14,15 +14,24 @@
conflicts=('libfwbuilder')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
+ "$pkgname-c++17.patch::https://github.com/fwbuilder/fwbuilder/commit/ed4db20ec6ca.patch"
'fwbuilder.xml'
)
sha512sums=('d6504ddab17e80cb332f005b6bbb16c15a7b4735361733f0e0437cb94059a5c9039e563be6e0e8d328954db2416b2c0bdbb8afa36cd946f61e7c7edaee47453b'
+ 'ec3f157eeed6cb2fb9b0b333518cef63e48b409ed87784ae5839676a7f09d880ec70609c64a5c54ff064540c45162abfc0de82fc0845548560854cd1e2b22df9'
'a7b8847b3d053435290fd41fcfa534c368e10f781d990709302c2511065b451b5b9d341509efabccc241d92252cdff052a2dc04cbf18024dfe386c99d0a25505')
-build() {
+prepare() {
cd "$pkgname-$pkgver"
find -name "qmake.inc.in" -exec sed -e 's/\/usr\/include//g' -i {} \;
sed -i '/FLAGS=/i FLAGS=.' runqmake.sh
+
+ # https://github.com/fwbuilder/fwbuilder/pull/45
+ patch -Np1 -i ../$pkgname-c++17.patch
+}
+
+build() {
+ cd "$pkgname-$pkgver"
./autogen.sh --prefix=/usr
make
}
More information about the arch-commits
mailing list