aports/community/lxqt-notificationd/APKBUILD

43 lines
1.3 KiB
Text

maintainer="Antoni Aloy <aaloytorrens@gmail.com>"
# Contributor: Zachary Lee Andrews <zcrayfish@gmail.com>
pkgname=lxqt-notificationd
pkgver=2.2.0
pkgrel=0
pkgdesc="LXQt notification daemon"
url="https://github.com/lxqt/lxqt-notificationd"
arch="all !armhf" # armhf blocked by liblxqt and kwindowsystem
license="LGPL-2.0-or-later"
makedepends="
cmake samurai lxqt-build-tools liblxqt-dev
qt6-qttools-dev kwindowsystem-dev
layer-shell-qt-dev perl
"
options="!check" # No testsuite
subpackages="$pkgname-lang"
source="https://github.com/lxqt/lxqt-notificationd/releases/download/$pkgver/lxqt-notificationd-$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/lxqt/translations/$pkgname
}
sha512sums="
b6da6bbab563b3cb1a174713b2a8a6c08f719a21b4e1e45796b8c16d8ac7a2fd5cccde64a7a986ed1b3f4b4058b50b3bb57da3bdde3fe8cee7b3d9324a634e2f lxqt-notificationd-2.2.0.tar.xz
"