LVI. Kdegames-Kajongg (KDE4.14)
Uwaga, przed zbudowaniem tej paczki, budujemy paczkę libkmahjongg z pkt LVII.
PKGBUILD
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kdegames-kajongg
pkgver=14.12.0
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' 'python2-twisted' 'kdebindings-python2' 'libkmahjongg')
makedepends=('cmake' 'automoc4')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/kajongg-${pkgver}.tar.xz")
sha1sums=('dce075f81445d2deb75e1fb9789c43ead799675d')
prepare() {
mkdir 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
}
kdegames-kajongg.install
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
LVII. libkmahjongg (KDE4.14)
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=libkmahjongg
pkgver=14.12.0
pkgrel=1
pkgdesc="Common code, backgrounds and tile sets for games using Mahjongg tiles"
url="https://projects.kde.org/projects/kde/kdegames/libmahjongg"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
depends=('kdelibs')
makedepends=('cmake' 'automoc4')
replaces=('kdegames-libkmahjongg')
conflicts=('kdegames-libkmahjongg')
source=("http://download.kde.org/stable/applications/${pkgver}/src/${pkgname}-${pkgver}.tar.xz")
sha1sums=('8a065a50d2d8d51fafa5e6df9365fa854e3f59e4')
prepare() {
mkdir build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}