[arch-commits] Commit in (4 files)

Antonio Rojas arojas at archlinux.org
Sat Mar 26 21:09:13 UTC 2016


    Date: Saturday, March 26, 2016 @ 22:09:12
  Author: arojas
Revision: 262596

Add KF5 version of kmahjongg

Added:
  kmahjongg/
  kmahjongg/kde-unstable/
  kmahjongg/kde-unstable/PKGBUILD
  kmahjongg/kde-unstable/kmahjongg.install

-------------------+
 PKGBUILD          |   39 +++++++++++++++++++++++++++++++++++++++
 kmahjongg.install |   11 +++++++++++
 2 files changed, 50 insertions(+)

Added: kmahjongg/kde-unstable/PKGBUILD
===================================================================
--- kmahjongg/kde-unstable/PKGBUILD	                        (rev 0)
+++ kmahjongg/kde-unstable/PKGBUILD	2016-03-26 21:09:12 UTC (rev 262596)
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 261475 2016-03-15 10:26:40Z arojas $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kmahjongg
+pkgver=16.03.80
+pkgrel=1
+pkgdesc="A tile matching game for one or two players"
+url="http://kde.org/applications/games/kmahjongg/"
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+groups=(kde-applications kdegames)
+depends=(libkmahjongg libkdegames hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools)
+conflicts=(kdegames-kmahjongg)
+replaces=(kdegames-kmahjongg)
+install=$pkgname.install
+source=("http://download.kde.org/unstable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+sha1sums=('0fca9be628364d403ca59270431aeb218fb42200')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Added: kmahjongg/kde-unstable/kmahjongg.install
===================================================================
--- kmahjongg/kde-unstable/kmahjongg.install	                        (rev 0)
+++ kmahjongg/kde-unstable/kmahjongg.install	2016-03-26 21:09:12 UTC (rev 262596)
@@ -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