summaryrefslogtreecommitdiff
path: root/user/lxqt-build-tools/APKBUILD
blob: b54e88ab3b434e1307dc268db1a7a4c0faa3d433 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=lxqt-build-tools
pkgver=0.4.0
pkgrel=0
pkgdesc="Toolchain for building & packaging LXQt."
url="http://lxqt.org"
arch="noarch"
license="BSD-3-Clause"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev"
install=""
subpackages=""
source="lxqt-build-tools-$pkgver.tar.gz::https://github.com/lxde/lxqt-build-tools/archive/$pkgver.tar.gz"
builddir="$srcdir/lxqt-build-tools-$pkgver"
# no tests to run; this package just provides a common base for scaffolding.
options="!check"

build() {
	cd "$builddir"
	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=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

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

sha512sums="4169080fb3c2ed986ec30d24106f5b61df081c7531ff259b3667497526f6cde4140cc3a09509220da5207e9383b8ac4b865c8f32380d19a9dc5d12d0ac15e381  lxqt-build-tools-0.4.0.tar.gz"