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

Antonio Rojas arojas at archlinux.org
Mon Sep 14 21:27:35 UTC 2015


    Date: Monday, September 14, 2015 @ 23:27:35
  Author: arojas
Revision: 246133

archrelease: copy trunk to testing-any

Added:
  kdegames-kajongg/repos/testing-any/
  kdegames-kajongg/repos/testing-any/PKGBUILD
    (from rev 246132, kdegames-kajongg/trunk/PKGBUILD)
  kdegames-kajongg/repos/testing-any/kdegames-kajongg.install
    (from rev 246132, 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 246132, kdegames-kajongg/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2015-09-14 21:27:35 UTC (rev 246133)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdegames-kajongg
+pkgver=15.08.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-applications' 'kdegames')
+depends=('kdebase-runtime' 'python2-twisted' 'kdebindings-python2' 'libkmahjongg4')
+makedepends=('cmake' 'automoc4')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kajongg-${pkgver}.tar.xz")
+sha1sums=('073515808ca41dfba0d1b432dbd4079499ca1760')
+
+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
+}

Copied: kdegames-kajongg/repos/testing-any/kdegames-kajongg.install (from rev 246132, kdegames-kajongg/trunk/kdegames-kajongg.install)
===================================================================
--- testing-any/kdegames-kajongg.install	                        (rev 0)
+++ testing-any/kdegames-kajongg.install	2015-09-14 21:27:35 UTC (rev 246133)
@@ -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