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

Andrea Scarpino andrea at nymeria.archlinux.org
Tue May 7 12:37:59 EDT 2013


    Date: Tuesday, May 7, 2013 @ 18:37:59
  Author: andrea
Revision: 184681

archrelease: copy trunk to testing-any

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

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

Copied: kdegames-kajongg/repos/testing-any/PKGBUILD (from rev 184680, kdegames-kajongg/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2013-05-07 16:37:59 UTC (rev 184681)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdegames-kajongg
+pkgver=4.10.3
+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' 'twisted' 'kdebindings-python2')
+makedepends=('cmake' 'automoc4')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/${pkgver}/src/kajongg-${pkgver}.tar.xz")
+sha1sums=('88944b76d63e1e5e2337c9aa92d2811c88a69024')
+
+build() {
+  mkdir build
+  cd build
+  cmake ../kajongg-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DKDE4_BUILD_TESTS=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python2
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  # Fix the python shebang
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/apps/kajongg/{deferredutil,kajongg,kajonggserver,server}.py
+}

Copied: kdegames-kajongg/repos/testing-any/kdegames-kajongg.install (from rev 184680, kdegames-kajongg/trunk/kdegames-kajongg.install)
===================================================================
--- testing-any/kdegames-kajongg.install	                        (rev 0)
+++ testing-any/kdegames-kajongg.install	2013-05-07 16:37:59 UTC (rev 184681)
@@ -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