aboutsummaryrefslogtreecommitdiffstats
path: root/community/kvantum/APKBUILD
blob: ec5e0ecb910942e69c017987b77147acf953e17f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=kvantum
pkgver=0.20.0
pkgrel=0
pkgdesc="SVG-based theme engine for Qt5"
options="!check" # No testsuite
url="https://github.com/tsujan/Kvantum"
arch="all !armhf" # Limited by kwindowsystem-dev
license="GPL-2.0-or-later"
depends="hicolor-icon-theme"
makedepends="cmake qt5-qtbase-dev qt5-qtsvg-dev qt5-qtx11extras-dev libx11-dev
	libxext-dev kwindowsystem-dev qt5-qttools-dev samurai"
source="$pkgname-$pkgver.tar.gz::https://github.com/tsujan/Kvantum/archive/V$pkgver/kvantum-$pkgver.tar.gz"
builddir="$srcdir/Kvantum-$pkgver/Kvantum"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DENABLE_QT4=OFF \
		$CMAKE_CROSSOPTS .
	ninja
}

package() {
	DESTDIR="$pkgdir" ninja install
	rm -rf "$pkgdir"/usr/share/kde4
}

sha512sums="
698e047ab75448756f3a37e16c72c55bac8333386c14bd859061fdcb6d16aca746b0ca08bb7f4b84dcbbd19e157764b0ca987a44d8cdfb8e2e5df28b34b310d9  kvantum-0.20.0.tar.gz
"