Skip to content
Snippets Groups Projects
APKBUILD 1.07 KiB
Newer Older
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=lxqt-about
pkgver=0.16.0
pkgrel=0
pkgdesc="Information provider about LXQt and the system"
url="https://github.com/lxqt/lxqt-about"
arch="all !armhf" # armhf blocked by liblxqt and kwindowsystem
arch="$arch !mips64" # mips64 blocked by liblxqt
license="LGPL-2.0-or-later"
makedepends="
	cmake lxqt-build-tools liblxqt-dev
	kwindowsystem-dev qt5-qttools-dev
	"
options="!check" # No testsuite
source="https://github.com/lxqt/lxqt-about/releases/download/$pkgver/lxqt-about-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-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="fc7f7aa747f45fa2c3fc26e0c5de6595e3e011a3af8740a5c07a6d18b34a201c245b13dfe17167b578e84536334078a8925b4bb750461fa49923bcb88b4bf6a4  lxqt-about-0.16.0.tar.xz"