[arch-commits] Commit in kdegames-kajongg/kde-unstable (2 files)
Andrea Scarpino
andrea at archlinux.org
Fri Nov 16 23:55:52 UTC 2012
Date: Friday, November 16, 2012 @ 18:55:51
Author: andrea
Revision: 171279
KDE 4.10 beta1 - fixes
Added:
kdegames-kajongg/kde-unstable/kdegames-kajongg.install
Modified:
kdegames-kajongg/kde-unstable/PKGBUILD
--------------------------+
PKGBUILD | 12 +++++++++---
kdegames-kajongg.install | 11 +++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-11-16 23:55:48 UTC (rev 171278)
+++ PKGBUILD 2012-11-16 23:55:51 UTC (rev 171279)
@@ -6,11 +6,12 @@
pkgrel=1
pkgdesc="The ancient Chinese board game for 4 players"
url="http://kde.org/applications/games/kajongg/"
-arch=('i686' 'x86_64')
+arch=('any')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdegames')
-depends=('kdebase-runtime')
+depends=('kdebase-runtime' 'twisted')
makedepends=('cmake' 'automoc4')
+install=${pkgname}.install
source=("http://download.kde.org/unstable/${pkgver}/src/kajongg-${pkgver}.tar.xz")
sha1sums=('59212ba9027c1d4dca1cb21d7b38f023464454df')
@@ -19,11 +20,16 @@
cd build
cmake ../kajongg-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -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
}
Added: kdegames-kajongg.install
===================================================================
--- kdegames-kajongg.install (rev 0)
+++ kdegames-kajongg.install 2012-11-16 23:55:51 UTC (rev 171279)
@@ -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