diff options
Diffstat (limited to 'community/lxqt-build-tools/APKBUILD')
-rw-r--r-- | community/lxqt-build-tools/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/lxqt-build-tools/APKBUILD b/community/lxqt-build-tools/APKBUILD new file mode 100644 index 00000000000..8419ae2b71a --- /dev/null +++ b/community/lxqt-build-tools/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Antoni Aloy <aaloytorrens@gmail.com> +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Contributor: Antoni Aloy <aaloytorrens@gmail.com> +pkgname=lxqt-build-tools +pkgver=0.13.0 +pkgrel=0 +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 samurai qt5-qtbase-dev glib-dev" +source="https://github.com/lxde/lxqt-build-tools/releases/download/$pkgver/lxqt-build-tools-$pkgver.tar.xz + " + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + $CMAKE_CROSSOPTS . + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --build build --target install +} + +sha512sums=" +ffb300159d6bbbdbe9d43d261a5028342f24057c943cf8dab5093d53b72bf5700de8f545914d454993e949d64aba77e3d01cbe68e8a4b4f6ca9f9f9693de3e0b lxqt-build-tools-0.13.0.tar.xz +" |