aboutsummaryrefslogtreecommitdiffstats
path: root/qtchess/PKGBUILD
blob: b5f27c139b6155527b1c657978c1fc36341cfe87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>

pkgname=qtchess
pkgver=3.18
pkgrel=1
pkgdesc='Online chess game client written in Qt'
url='http://qtchess.sourceforge.net/'
arch=('i686' 'x86_64')
license=('custom:3-clause BSD')
# (license notice included in qtchess_main.cc)
depends=('qt5-base' 'libgl')
makedepends=('qt5-base' 'libgl' 'qt5-tools')
source=("http://downloads.sourceforge.net/project/qtchess/Version%20${pkgver}/QtChess.d.tar.gz")
sha256sums=('9a935720018418190c1933013cc47d390fe1f22aa052d308077f561e9a62e84a')


build()
{
    cd "$srcdir/qtchess.d"
    qmake-qt5 -o Makefile qtchess.pro
    sed -i s_'-Werror'__g Makefile # stack protector is not proctecting small arrays
    make
}

package()
{
    cd "$srcdir/qtchess.d"
    install -Dm755  QtChess -- "${pkgdir}/usr/bin/qtchess"
}