diff options
author | Mattias Andrée <maandree@kth.se> | 2021-07-10 22:55:37 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-07-10 22:55:37 +0200 |
commit | ba0e050f3a114539b193f4239e6840e8af0c98b8 (patch) | |
tree | 9ed78abac42b1f973c2f71fa4c9cc8f332bdb2b7 /qtchess | |
parent | Update qtchess (diff) | |
download | aur-packages-ba0e050f3a114539b193f4239e6840e8af0c98b8.tar.gz aur-packages-ba0e050f3a114539b193f4239e6840e8af0c98b8.tar.bz2 aur-packages-ba0e050f3a114539b193f4239e6840e8af0c98b8.tar.xz |
Fix qtchess
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | qtchess/PKGBUILD | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/qtchess/PKGBUILD b/qtchess/PKGBUILD index e098a0d..d67c7cc 100644 --- a/qtchess/PKGBUILD +++ b/qtchess/PKGBUILD @@ -1,8 +1,9 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +# Contributor: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> pkgname=qtchess pkgver=2021.03.15 -pkgrel=1 +pkgrel=2 pkgdesc='Online chess game client written in Qt' url='https://textbrowser.github.io/qtchess/' arch=('i686' 'x86_64') @@ -14,17 +15,18 @@ source=(qtchess-${pkgver}.tar.gz::"https://github.com/textbrowser/qtchess/archiv sha256sums=('b67e182beca7d203dd07b995a6d4cae752dc42ed76439694e1befe5d6bd5f2be') -build() -{ +prepare () { cd "$srcdir/qtchess-${pkgver}" - qmake-qt5 -o Makefile qtchess.pro - make - sed -i s_'-Werror'__g Makefile # stack protector is not proctecting small arrays + sed '/-Werror/d' < qtchess.pro > qtchess.pro.fixed +} + +build () { + cd "$srcdir/qtchess-${pkgver}" + qmake-qt5 -o Makefile qtchess.pro.fixed make } -package() -{ +package () { cd "$srcdir/qtchess-${pkgver}" mkdir -p -- "${pkgdir}/usr/bin/" cp -- QtChess "${pkgdir}/usr/bin/qtchess" |