summaryrefslogblamecommitdiff
path: root/user/lxqt-session/APKBUILD
blob: 2da78a003a5de0692ff3c8782ddecc836ba7873f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                         
                    

                 
        
                                               
                      
          
                                  

                       
                                                                               
                                                                      

                                                                                                   

         









                                                                                          

                                          


         
                                                       


           
                                               

                                              

 
                                                                                                                                                                         
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=lxqt-session
pkgver=0.15.0
_lxqt_build=0.7.0
pkgrel=0
pkgdesc="Session management utilities for LXQt"
url="https://lxqt.org"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends="xdg-user-dirs"
makedepends="cmake extra-cmake-modules lxqt-build-tools>=$_lxqt_build eudev-dev
	liblxqt-dev>=${pkgver%.*}.0 qt5-qttools-dev kwindowsystem-dev"
subpackages="$pkgname-doc"
source="https://github.com/lxde/lxqt-session/releases/download/$pkgver/lxqt-session-$pkgver.tar.xz"

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=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} -Bbuild
	make -C build
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
}

package() {
	make DESTDIR="$pkgdir" -C build install
	rm "$pkgdir"/usr/bin/startlxqt
	rm "$pkgdir"/usr/share/man/man1/start*
}

sha512sums="96ef9e58ca25303ac0213f1cb5faee5efddb61ac3705484ac55b39db56c9302ff646e317dbc753b213a5e2ea38818b247244a2be5219fbe6db9e419b8c638591  lxqt-session-0.15.0.tar.xz"