aboutsummaryrefslogblamecommitdiffstats
path: root/qtchess/PKGBUILD
blob: 82f6da15528d246be03506e2025e63a297fff2e0 (plain) (tree)
1
2
3
4
5
6
7
8
                                                                               
                                                                  

               
                 
        
                                                
                                            




                                              

                                                                                                              

 
            
                                  





                                                      


        
            


                                             
 
# Maintainer: Mattias Andrée <`base64 -d`(bWF0dGlhcy5hbmRyZWU)@protonmail.com>
# Contributor: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 

pkgname=qtchess
pkgver=2021.03.15
pkgrel=2
pkgdesc='Online chess game client written in Qt'
url='https://textbrowser.github.io/qtchess/'
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=(qtchess-${pkgver}.tar.gz::"https://github.com/textbrowser/qtchess/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('b67e182beca7d203dd07b995a6d4cae752dc42ed76439694e1befe5d6bd5f2be')


prepare () {
    cd "$srcdir/qtchess-${pkgver}"
    sed '/-Werror/d' < qtchess.pro > qtchess.pro.fixed
}

build () {
    cd "$srcdir/qtchess-${pkgver}"
    qmake-qt5 -o Makefile qtchess.pro.fixed
    make
}

package () {
    cd "$srcdir/qtchess-${pkgver}"
    mkdir -p -- "${pkgdir}/usr/bin/"
    cp -- QtChess "${pkgdir}/usr/bin/qtchess"
}