summaryrefslogblamecommitdiff
path: root/user/lxqt-panel/APKBUILD
blob: 74ee38bc060219d4a71fc418d1610f1cf1c96b4d (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.4.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="lxqt-menu-data"
makedepends="cmake extra-cmake-modules lxqt-build-tools>=$_lxqt
	kguiaddons-dev libdbusmenu-qt-dev kwindowsystem-dev solid-dev
	menu-cache-dev 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
	revert-kwindowsystem-bump.patch"

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="87d5c89cfc4f5253dbb4048da89a531a99f664fd424eebb535a688934bdb63856edf07276a5ccba826a4658228801ed4cc036aea6664e67c57599990d7e4b997  lxqt-panel-1.4.0.tar.xz
da7ff18e64da3e90e1909f41ae58f0a6f52ca6947ff394fe4c6a68a8d8f1223fdce2fd7b665c89cdaa442053776d2e1c503fab1be5d43f22dacbc338ea78aaf7  revert-kwindowsystem-bump.patch"