summaryrefslogtreecommitdiff
path: root/user/qtxdg-tools/APKBUILD
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2022-12-12 06:08:59 +0000
committerZach van Rijn <me@zv.io>2023-02-08 17:06:23 +0000
commitf5bc13688ab1cb3354177ae88409d0dd3c155507 (patch)
tree94912fda3f2fc4e125d035e1dbdb7d27a62ced6e /user/qtxdg-tools/APKBUILD
parent75d71edfbe99de4ae80f0472e424705137424c9f (diff)
downloadpackages-f5bc13688ab1cb3354177ae88409d0dd3c155507.tar.gz
packages-f5bc13688ab1cb3354177ae88409d0dd3c155507.tar.bz2
packages-f5bc13688ab1cb3354177ae88409d0dd3c155507.tar.xz
packages-f5bc13688ab1cb3354177ae88409d0dd3c155507.zip
user/qtxdg-tools: new package
Diffstat (limited to 'user/qtxdg-tools/APKBUILD')
-rw-r--r--user/qtxdg-tools/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/qtxdg-tools/APKBUILD b/user/qtxdg-tools/APKBUILD
new file mode 100644
index 000000000..71b98ca37
--- /dev/null
+++ b/user/qtxdg-tools/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=qtxdg-tools
+pkgver=3.10.0
+_lxqt=0.12.0
+pkgrel=0
+pkgdesc="Userland utilities for LXQt"
+url="https://lxqt-project.org/"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+makedepends="cmake lxqt-build-tools>=$_lxqt libqtxdg-dev"
+source="https://github.com/lxqt/qtxdg-tools/releases/download/$pkgver/qtxdg-tools-$pkgver.tar.xz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ mkdir build && cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ ..
+ make
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d5cdc14ceadf6b2ed7adaa7de383b9930d57d06a6c5294920764b403bcedfdb837de4a01e70f65f2957e18a9e866659406b88e35903376fb26b91f8620b95a55 qtxdg-tools-3.10.0.tar.xz"