summaryrefslogblamecommitdiff
path: root/user/liblxqt/APKBUILD
blob: 24ff091bfc3f423d2dfb2dd2171a8664d7af9b7f (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=liblxqt
pkgver=0.15.1
pkgrel=0
pkgdesc="Core LXQt library"
url="https://lxqt.github.io/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev
	qt5-qttools-dev libxscrnsaver-dev libqtxdg-dev>=3.5.0
	kwindowsystem-dev polkit-qt-1-dev lxqt-build-tools>=0.7.0"
subpackages="$pkgname-dev"
source="https://github.com/lxqt/liblxqt/releases/download/$pkgver/liblxqt-$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
}

package() {
	make DESTDIR="$pkgdir" -C build install
}

sha512sums="a0eb00ca5b228ef32d1a3952d3cb4702273dda16c9e70cc75046bfe1f51e5a7849d5306cca9d616ff82bd91715d97d703c458d406ba9e2425aa3fd26f155493c  liblxqt-0.15.1.tar.xz"