summaryrefslogblamecommitdiff
path: root/user/lxqt-build-tools/APKBUILD
blob: 0661496476456a83eb293b887987e0e61cf242ed (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-build-tools
pkgver=0.5.0
pkgrel=1
pkgdesc="Toolchain for building and packaging LXQt"
url="https://lxqt.org"
arch="noarch"
# no tests to run; this package just provides a common base for scaffolding.
options="!check"
license="BSD-3-Clause"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev"
source="lxqt-build-tools-$pkgver.tar.gz::https://github.com/lxde/lxqt-build-tools/archive/$pkgver.tar.gz"

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=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} ..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="199d8999d6b9738f1985a96ac3177f021802ab8896450c248bf6e545162a237ddb26949a09588925423a0609fc89d06f729b428030290b3259b8b8c505c71139  lxqt-build-tools-0.5.0.tar.gz"