[arch-commits] Commit in kdegames-kajongg/repos (3 files)

Felix Yan fyan at archlinux.org
Wed Feb 4 06:53:48 UTC 2015


    Date: Wednesday, February 4, 2015 @ 07:53:47
  Author: fyan
Revision: 230536

archrelease: copy trunk to testing-any

Added:
  kdegames-kajongg/repos/testing-any/
  kdegames-kajongg/repos/testing-any/PKGBUILD
    (from rev 230535, kdegames-kajongg/trunk/PKGBUILD)
  kdegames-kajongg/repos/testing-any/kdegames-kajongg.install
    (from rev 230535, kdegames-kajongg/trunk/kdegames-kajongg.install)

--------------------------+
 PKGBUILD                 |   41 +++++++++++++++++++++++++++++++++++++++++
 kdegames-kajongg.install |   11 +++++++++++
 2 files changed, 52 insertions(+)

Copied: kdegames-kajongg/repos/testing-any/PKGBUILD (from rev 230535, kdegames-kajongg/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2015-02-04 06:53:47 UTC (rev 230536)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdegames-kajongg
+pkgver=14.12.2
+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' 'kdegames')
+depends=('kdebase-runtime' 'python2-twisted' 'kdebindings-python2' 'libkmahjongg')
+makedepends=('cmake' 'automoc4')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kajongg-${pkgver}.tar.xz")
+sha1sums=('2bb8b39d2a640783788f07057dff8f949996b7a7')
+
+prepare() {
+  mkdir 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
+}

Copied: kdegames-kajongg/repos/testing-any/kdegames-kajongg.install (from rev 230535, kdegames-kajongg/trunk/kdegames-kajongg.install)
===================================================================
--- testing-any/kdegames-kajongg.install	                        (rev 0)
+++ testing-any/kdegames-kajongg.install	2015-02-04 06:53:47 UTC (rev 230536)
@@ -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