36 lines
1.1 KiB
Plaintext

# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Contributor: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=lxqt-build-tools
pkgver=0.12.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="
6c8f0d8f04a2ba06c1cff935580a88312f18f87b5da99e53f46c053b842f179bf474b3637ddcb0e9a0007f1d03b9e7cfd92a6552e53082ce34348fcfb6436add lxqt-build-tools-0.12.0.tar.xz
"