summaryrefslogblamecommitdiff
path: root/user/lxqt-policykit/APKBUILD
blob: 778c97744c5e2bc22f02dbd54173f7d3e0371986 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                           
             
        
                                  




                     
                                                                                                                                                  

              
                                                                                                       








                                                                                          
                                  







                                                     
                                     



            
                            



                                          
                            


                                      
                                                                                                                                                                           
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=lxqt-policykit
pkgver=0.13.0
pkgrel=0
pkgdesc="PolicyKit agent for LXQT"
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev=""
makedepends="cmake extra-cmake-modules liblxqt-dev>=0.12.0 lxqt-build-tools>=0.5.0 qt5-qttools-dev kwindowsystem-dev polkit-qt-1-dev $depends_dev"
install=""
subpackages=""
source="https://github.com/lxqt/lxqt-policykit/releases/download/$pkgver/lxqt-policykit-$pkgver.tar.xz"
builddir="$srcdir/lxqt-policykit-$pkgver"
# no useful tests
options="!check"

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=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS} ..
	make
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="c02525ed60c3882b9fc431630a750937425f8ff296fa82112a2e88cb9d5b96767e2a8ff514daeee5d6dded96536cbb4520bc7bccb6c8fbe4e405168435f9f22e  lxqt-policykit-0.13.0.tar.xz"