summaryrefslogblamecommitdiff
path: root/user/katomic/APKBUILD
blob: 5cb5bc3fc86f6e41adc4e550039b4031f4598926 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                            
                      



                                                                               
                                        
                                                                                           

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=katomic
pkgver=19.12.2
pkgrel=0
pkgdesc="Fun, educational game involving molecular geometry"
url="https://games.kde.org/game.php?game=katomic"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev kcoreaddons-dev ki18n-dev
	kconfig-dev kcrash-dev kwidgetsaddons-dev kxmlgui-dev knewstuff-dev
	kdoctools-dev kdbusaddons-dev libkdegames-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/katomic-$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="6ade67b594ef3444c4a936e51dae93c4d0d2828f52b8704eb51c0af4dab784b9820a575bc30c99caff94c8e55e8de2326dbb8d1ff62d4ee88da48b11e3ef78fc  katomic-19.12.2.tar.xz"