# Maintainer: Antoni Aloy pkgname=qterminal pkgver=1.3.0 pkgrel=0 pkgdesc="Lightweight Qt-based terminal emulator" url="https://github.com/lxqt/qterminal" arch="all" license="LGPL-2.0-or-later" makedepends=" cmake samurai lxqt-build-tools qt5-qttools-dev qt5-qtx11extras-dev qtermwidget-dev " options="!check" # No testsuite subpackages="$pkgname-lang" source="https://github.com/lxqt/qterminal/releases/download/$pkgver/qterminal-$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 } lang() { install_if="lang $pkgname=$pkgver-r$pkgrel" amove usr/share/$pkgname/translations } sha512sums=" f8cf2183da7af7869433b6057e20fba46be5cce30b75bdafb6cc0a5474e39fb1f2f8831f6841ca78f8b367f718ed2ee5a312a75850bc8192a37f20a6c5767a8d qterminal-1.3.0.tar.xz "