summaryrefslogblamecommitdiff
path: root/user/lxqt-qtplugin/APKBUILD
blob: 64e463cbf2a69d59e6b95ca26a65c65975da2a2b (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                           
             
        
                                                      



                     
                                                                                                                           

              
                                                                                                     






                                                                                          
                                  







                                                     
                                     



            
                            



                                          
                            


                                      
                                                                                                                                                                          
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=lxqt-qtplugin
pkgver=0.13.0
pkgrel=0
pkgdesc="Qt plugin for platform integration with LXQt"
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules lxqt-build-tools>=0.5.0 libdbusmenu-qt-dev liblxqt-dev libfm-qt-dev qt5-qttools-dev"
install=""
subpackages=""
source="https://github.com/lxqt/lxqt-qtplugin/releases/download/$pkgver/lxqt-qtplugin-$pkgver.tar.xz"
builddir="$srcdir/lxqt-qtplugin-$pkgver"

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="22f059accdca8216b80af8773eab462c779c489575aa7802e82bb95da4f22a9a0d5a1234b2da4cb39c5050a6e9ded3c2b977068cc37af356ecb09e364633c7d6  lxqt-qtplugin-0.13.0.tar.xz"