[arch-commits] Commit in kdegames-kajongg (trunk trunk trunk/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Aug 21 03:03:02 UTC 2016


    Date: Sunday, August 21, 2016 @ 03:03:02
  Author: felixonmars
Revision: 274300

upgpkg: kdegames-kajongg 16.08.0-1

Upstream release

Added:
  kdegames-kajongg/trunk/
  kdegames-kajongg/trunk/PKGBUILD
Deleted:
  kdegames-kajongg/trunk/

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Added: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD	                        (rev 0)
+++ trunk/PKGBUILD	2016-08-21 03:03:02 UTC (rev 274300)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdegames-kajongg
+pkgver=16.08.0
+pkgrel=1
+pkgdesc="The ancient Chinese board game for 4 players"
+url="http://kde.org/applications/games/kajongg/"
+arch=('any')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdegames')
+depends=('kdebase-runtime' 'python2-twisted' 'kdebindings-python2' 'libkmahjongg')
+makedepends=('cmake' 'automoc4')
+optdepends=('vorbis-tools: for playing sounds')
+conflicts=('libkmahjongg4')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kajongg-${pkgver}.tar.xz")
+sha1sums=('00d68efb29ee4929baf6bffe924545d3ba168f5b')
+
+prepare() {
+  mkdir -p build
+
+  cd kajongg-${pkgver}
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    src/{deferredutil,kajongg,kajonggserver,server}.py
+}
+
+build() {
+  cd build
+  cmake ../kajongg-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DKDE4_BUILD_TESTS=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+    -DINSTALL_KAJONGG=TRUE
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+# Use tilesets from KF5 libkhmahjongg
+  ln -s /usr/share/kmahjongglib "$pkgdir"/usr/share/apps/kmahjongglib
+}


Property changes on: kdegames-kajongg/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list