aboutsummaryrefslogtreecommitdiffstats
path: root/testing/adwaita-qt/APKBUILD
blob: 2fa7b08d883a551e5db2594d04c93391dbd0fd79 (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
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=adwaita-qt
pkgver=1.2.1
pkgrel=0
pkgdesc="style to bend Qt applications to look like they belong into GNOME Shell"
url="https://github.com/FedoraQt/adwaita-qt"
arch="all"
license="GPL-2.0-only AND LGPL-2.1-only"
makedepends="cmake qt5-qtbase-dev qt5-qtx11extras-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/FedoraQt/adwaita-qt/archive/$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests

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=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DUSE_QT4=Off \
		$CMAKE_CROSSOPTS .
	make
}

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

sha512sums="a4482d9ae8e9f1ae4f6baa411d68f5f7b2ccafd157635c5e142723414f28bd0a5b3331d3ba16e17404159d410fff029b779447e8832d69c020a1fa1d40d926da  adwaita-qt-1.2.1.tar.gz"