aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lxqt-build-tools/APKBUILD
blob: 824bd765e85b82e12262ea77e862c1b2ee37f39b (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=lxqt-build-tools
pkgver=0.6.0
pkgrel=1
pkgdesc="Various packaging tools and scripts for LXQt applications"
url="https://lxqt.org/"
options="!check" # No testsuite
arch="noarch"
license="BSD-3-Clause"
makedepends="cmake qt5-qtbase-dev glib-dev"
source="https://github.com/lxde/lxqt-build-tools/releases/download/$pkgver/lxqt-build-tools-$pkgver.tar.xz"

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

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

sha512sums="f95c47d40f26defa8bc4e13a0449428945c282cb5e2201610e9529bfd5154a438ee9dcc4f556bd76efe13b97533bbed2f49ab5c100225907781093094a692227  lxqt-build-tools-0.6.0.tar.xz"