[arch-commits] Commit in (5 files)

Antonio Rojas arojas at archlinux.org
Fri Dec 19 20:22:15 UTC 2014


    Date: Friday, December 19, 2014 @ 21:22:15
  Author: arojas
Revision: 124123

Add knights (73 votes)

Added:
  knights/
  knights/repos/
  knights/trunk/
  knights/trunk/PKGBUILD
  knights/trunk/knights.install

-----------------+
 PKGBUILD        |   32 ++++++++++++++++++++++++++++++++
 knights.install |   11 +++++++++++
 2 files changed, 43 insertions(+)

Added: knights/trunk/PKGBUILD
===================================================================
--- knights/trunk/PKGBUILD	                        (rev 0)
+++ knights/trunk/PKGBUILD	2014-12-19 20:22:15 UTC (rev 124123)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=knights
+pkgver=2.5.0
+pkgrel=2
+pkgdesc="Chess board for KDE with XBoard protocol support"
+arch=('i686' 'x86_64')
+url="http://kde-apps.org/content/show.php/Knights?content=122046"
+license=('GPL')
+depends=('libkdegames' 'kdebase-runtime')
+optdepends=('gnuchess: for playing against the computer')
+makedepends=('cmake' 'automoc4')
+install=${pkgname}.install
+source=("http://dl.dropbox.com/u/2888238/Knights/$pkgname-$pkgver.tar.bz2")
+md5sums=('58237998aeee8b6414f6e6f92d070395')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+	-DCMAKE_INSTALL_PREFIX=/usr \
+	-DCMAKE_BUILD_TYPE=Release
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Added: knights/trunk/knights.install
===================================================================
--- knights/trunk/knights.install	                        (rev 0)
+++ knights/trunk/knights.install	2014-12-19 20:22:15 UTC (rev 124123)
@@ -0,0 +1,11 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}



More information about the arch-commits mailing list