diff options
Diffstat (limited to 'extra/kdegames-kpatience')
-rw-r--r-- | extra/kdegames-kpatience/PKGBUILD | 31 | ||||
-rw-r--r-- | extra/kdegames-kpatience/kdegames-kpatience.install | 13 |
2 files changed, 44 insertions, 0 deletions
diff --git a/extra/kdegames-kpatience/PKGBUILD b/extra/kdegames-kpatience/PKGBUILD new file mode 100644 index 000000000..b9933c7c3 --- /dev/null +++ b/extra/kdegames-kpatience/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 177713 2013-02-08 08:57:32Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> + +pkgname=kdegames-kpatience +pkgver=4.10.0 +pkgrel=1 +pkgdesc="Offers a selection of solitaire card games" +url="http://kde.org/applications/games/kpat/" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kde' 'kdegames') +depends=('kdebase-runtime' 'libkdegames') +makedepends=('cmake' 'automoc4') +install=${pkgname}.install +source=("http://download.kde.org/stable/${pkgver}/src/kpat-${pkgver}.tar.xz") +sha1sums=('a77aed1c84363e76fc8aab49125b62f4b0d657b1') + +build() { + mkdir build + cd build + cmake ../kpat-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE4_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd build + make DESTDIR="${pkgdir}" install +} diff --git a/extra/kdegames-kpatience/kdegames-kpatience.install b/extra/kdegames-kpatience/kdegames-kpatience.install new file mode 100644 index 000000000..279b8f38d --- /dev/null +++ b/extra/kdegames-kpatience/kdegames-kpatience.install @@ -0,0 +1,13 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |