summaryrefslogblamecommitdiff
path: root/user/compton-conf/APKBUILD
blob: 1ed0e33c2688a10f663e5e514b2c15388c64f634 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
            


                                                             
          
                                  

                   

                                                                     
              
                                                                                                   





                                                                                          
                                  







                                               
                                     



            
                            


                                      
                                                                                                                                                                        
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=compton-conf
pkgver=0.4.0
pkgrel=1
pkgdesc="GUI configuration tool for the Compton X compositor"
url="https://lxqt.org"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qttools-dev
	libconfig-dev liblxqt-dev lxqt-build-tools"
subpackages=""
source="https://github.com/lxqt/compton-conf/releases/download/$pkgver/compton-conf-$pkgver.tar.xz"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	mkdir -p build && cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS} ..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="7d56cac1d1f749f22b5da35618fce261f66dc57e4378d8fb5203072b82542b775d89b6b91abf053650dc2a738d7310291c9dc6ecbe17fca9e6bc4868c93488c0  compton-conf-0.4.0.tar.xz"