APKBUILD 1.12 KB
Newer Older
1 2 3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=compton-conf
4 5
pkgver=0.14.1
pkgrel=0
6 7
pkgdesc="GUI configuration tool for compton X composite manager"
url="https://github.com/lxde/compton-conf"
8
options="!check" # No testsuite
9
arch="all"
10 11 12
license="LGPL-2.1-or-later"
depends_dev="libconfig-dev qt5-qtbase-dev qt5-qttools-dev lxqt-build-tools"
makedepends="cmake $depends_dev"
13 14 15
source="compton-conf-$pkgver.tar.gz::https://github.com/lxde/compton-conf/archive/$pkgver.tar.gz"

build() {
16 17
	mkdir build && cd build

18 19 20 21
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux \
			-DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
22
	cmake .. \
23 24 25 26 27 28 29 30 31 32 33 34
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} \
		-DPULL_TRANSLATIONS=False
	make
}

package() {
35
	make -C build DESTDIR="$pkgdir" install
36 37
}

38
sha512sums="e40810c44076e9f06970c4645e2f72fadbf7912485f1815d02593ae7a5db4987054f263a73252ba1c99de7b9812decd92021bc5758f211325e494912535c51f7  compton-conf-0.14.1.tar.gz"