summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorskwerlman2020-11-09 08:34:45 -0500
committerskwerlman2020-11-09 08:34:45 -0500
commite2cce2aaa5ab0b4b218fedc6895c10b4640344c8 (patch)
treef2f0488ca10745bf1d7827826110dd6043be47e2
parentf6070c8d90d00a8cabbaf1635385e9ce191aab78 (diff)
downloadaur-e2cce2aaa5ab0b4b218fedc6895c10b4640344c8.tar.gz
fix depends, add check()
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e3b563bebb4..68221bf0549 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,13 +6,15 @@
pkgname=cockatrice-client-git
pkgver=2.7.5
-pkgrel=1
+pkgrel=2
pkgdesc='Open-source multiplatform supported program for playing tabletop card games over a network.'
arch=('i686' 'x86_64')
url='https://cockatrice.github.io/'
license=('GPL2')
depends=('protobuf' 'qt5-svg' 'qt5-tools' 'qt5-multimedia' 'qt5-websockets')
-makedepends=('cmake' 'git')
+makedepends=('cmake' 'git' 'zlib')
+checkdepends=('gtest' 'valgrind')
+optdepends=('zlib: Support compressed MTGJSON')
provides=('cockatrice-client')
conflicts=('cockatrice-client')
source=("git+https://github.com/Cockatrice/Cockatrice")
@@ -23,10 +25,15 @@ build() {
test -d build && rm -rf build
mkdir build
cd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DWITH_ORACLE=1 -DWITH_CLIENT=1 -DWITH_DBCONVERTER=1 -DWITH_SERVER=0 ..
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DWITH_ORACLE=1 -DWITH_CLIENT=1 -DWITH_DBCONVERTER=1 -DWITH_SERVER=0 -DTEST=1 ..
make
}
+check() {
+ cd "$srcdir/Cockatrice/build"
+ make test
+}
+
package() {
cd "$srcdir/Cockatrice/build"
make DESTDIR="$pkgdir/" install