# Maintainer: Loic Guegan <loic.guegan@mailbox.org>

pkgname=ochess
pkgver=0.1
pkgrel=0.1
pkgdesc='Open source chess database/games management.'
arch=(x86_64)
url='https://gitlab.com/manzerbredes/ochess'
license=(GPL)
depends=()
makedepends=(wxgtk3-dev gcc)
source=("ochess-master.tar.bz2")
sha256sums=('b9ca8efd769945b5cc55370a863d2f8f4bca82699c5f775c844a7b95a2829187')
options=(!buildflags)

build() {
        cd ochess-master
        mkdir -p build
        cd build
        cmake ../
        make
}

package() {

  mkdir -p $pkgdir/usr/bin/
  mkdir -p $pkgdir/usr/share/ochess/

  cd ochess-master/build/
  cp ochess $pkgdir/usr/bin/
  cp -r assets $pkgdir/usr/share/ochess/
}
