[arch-commits] Commit in knights/repos (extra-x86_64 extra-x86_64/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Nov 16 07:46:29 UTC 2018
Date: Friday, November 16, 2018 @ 07:46:28
Author: arojas
Revision: 339762
archrelease: copy trunk to extra-x86_64
Added:
knights/repos/extra-x86_64/
knights/repos/extra-x86_64/PKGBUILD
(from rev 339761, knights/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: knights/repos/extra-x86_64/PKGBUILD (from rev 339761, knights/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2018-11-16 07:46:28 UTC (rev 339762)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=knights
+pkgver=2.5.0+160+g4d1d989
+pkgrel=1
+pkgdesc="Chess board by KDE with XBoard protocol support"
+arch=(x86_64)
+url="https://www.kde.org/applications/games/knights/"
+license=(GPL)
+depends=(libkdegames kplotting plasma-framework hicolor-icon-theme)
+optdepends=('gnuchess: for playing against the computer')
+makedepends=(extra-cmake-modules kdoctools git)
+_commit=4d1d989114a054cc05d7015870865e69aba08ef8 # master
+source=("git://git.kde.org/knights.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed -e 's/-/+/g' -e 's/v//'
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../$pkgname \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list