blob: 3d35b0215ab1d7cbcbcb7474d93c1f132b1ed831 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libkmahjongg
pkgver=18.04.1
pkgrel=0
pkgdesc="Library with Mah Jongg logic"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
depends=""
depends_dev="qt5-qtbase-dev kcoreaddons-dev kconfig-dev kconfigwidgets-dev
kcompletion-dev kwidgetsaddons-dev ki18n-dev qt5-qtsvg-dev"
makedepends="$depends_dev cmake extra-cmake-modules"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://download.kde.org/stable/applications/$pkgver/src/libkmahjongg-$pkgver.tar.xz"
builddir="$srcdir/libkmahjongg-$pkgver"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS}
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="4926ef9b958fa3543dbf050534a0ed21fcfd25f16c9b7b15fa04b132fb0f7a4ee2ad2aec752b82ea6220a05cb545cfdb25512b11f1afeba31a77eefd8162220f libkmahjongg-18.04.1.tar.xz"
|