summaryrefslogblamecommitdiff
path: root/user/ksirk/APKBUILD
blob: 33107710b0e9f1c63f64b1781bb80f3a73934462 (plain) (tree)
1
2
3
4


                                                  
              











                                                                      
                                                                                         

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ksirk
pkgver=22.04.2
pkgrel=0
pkgdesc="Strategy game from KDE"
url="https://www.kde.org/applications/games/ksirk/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev
	kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev
	kcrash-dev kdoctools-dev ki18n-dev kiconthemes-dev kio-dev
	knewstuff-dev kwallet-dev kwidgetsaddons-dev kxmlgui-dev
	libkdegames-dev phonon-dev qca-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/ksirk-$pkgver.tar.xz"

build() {
	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() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="37b9c828710ffe6b95b8336a2ff4a86f6b6cab31c443cfa07af73ce89affed1666c8622369167260bc9b1bce9b266e6fcc6f4231ec3d7044af572c2d8bdf0335  ksirk-22.04.2.tar.xz"