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

                                                           
                  

            
        
                                
                             
          
                                  

                   
                                                               



                                                                           
                                                         
                          
                                                                                               

         









                                                                                          

                                          


         
                                                       


           
                                               

 
                                                                                                                                                                      
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=lxqt-panel
pkgver=1.3.0
_lxqt=0.13.0
pkgrel=0
pkgdesc="Panel for LXQt desktop"
url="https://lxqt.github.io/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules lxqt-build-tools>=$_lxqt
	kguiaddons-dev libdbusmenu-qt-dev kwindowsystem-dev solid-dev
	menu-cache-dev lxmenu-data liblxqt-dev>=${pkgver%.*}.0 alsa-lib-dev
	pulseaudio-dev lxqt-globalkeys-dev>=${pkgver%.*}.0 lm_sensors-dev
	libstatgrab-dev libsysstat-dev qt5-qttools-dev libxkbcommon-dev
	xcb-util-image-dev libxcomposite-dev libxtst-dev"
subpackages="$pkgname-doc"
source="https://github.com/lxqt/lxqt-panel/releases/download/$pkgver/lxqt-panel-$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
}

sha512sums="1bf66db90e4fbd1ec38688b3a27c9dc5ab2e0a71ace74555580c379e9e12211ded61d01fa46484e8a600bb9b30cb3203ec38697ade0a9cb81cb2cd8043af8b97  lxqt-panel-1.3.0.tar.xz"