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

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Tue Jan 14 07:43:08 UTC 2014


    Date: Tuesday, January 14, 2014 @ 08:43:08
  Author: svenstaro
Revision: 203819

archrelease: copy trunk to testing-any

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

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

Copied: kdegames-kajongg/repos/testing-any/PKGBUILD (from rev 203818, kdegames-kajongg/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2014-01-14 07:43:08 UTC (rev 203819)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdegames-kajongg
+pkgver=4.12.1
+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=('656dc03d3726c080e382e8e15123a3233c3538cd')
+
+prepare() {
+  mkdir build
+
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    kajongg-${pkgver}/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
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}

Copied: kdegames-kajongg/repos/testing-any/kdegames-kajongg.install (from rev 203818, kdegames-kajongg/trunk/kdegames-kajongg.install)
===================================================================
--- testing-any/kdegames-kajongg.install	                        (rev 0)
+++ testing-any/kdegames-kajongg.install	2014-01-14 07:43:08 UTC (rev 203819)
@@ -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