summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2017-10-15 03:16:54 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2017-10-15 03:16:54 +0000
commitbed3aec02919654e77db49c2dcbb2fa89353f5ea (patch)
tree4e1b3a35fe7aa11817f59f56016769aa61f23a1f
parentf0765536da35ba365d0122219a6382007c78ff47 (diff)
parent6b7ca702847a2975734a9dfe0a7fadb055d6c624 (diff)
downloadpackages-bed3aec02919654e77db49c2dcbb2fa89353f5ea.tar.gz
packages-bed3aec02919654e77db49c2dcbb2fa89353f5ea.tar.bz2
packages-bed3aec02919654e77db49c2dcbb2fa89353f5ea.tar.xz
packages-bed3aec02919654e77db49c2dcbb2fa89353f5ea.zip
Merge branch 'qps' into 'master'
user/qps: new package See merge request !4
-rw-r--r--user/qps/APKBUILD48
-rw-r--r--user/qps/qps-1.10.17-compile-fixes.patch13
2 files changed, 61 insertions, 0 deletions
diff --git a/user/qps/APKBUILD b/user/qps/APKBUILD
new file mode 100644
index 000000000..b9f3f2e7b
--- /dev/null
+++ b/user/qps/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=qps
+pkgver=1.10.17
+pkgrel=0
+pkgdesc="Qt-based task manager"
+url="https://github.com/QtDesktop"
+arch="all"
+license="GPL-2.0+"
+depends=""
+depends_dev=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev qt5-qttools-dev libxrender-dev $depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://github.com/QtDesktop/qps/releases/download/$pkgver/qps-$pkgver.tar.xz
+ qps-1.10.17-compile-fixes.patch"
+builddir="$srcdir/qps-$pkgver"
+# no tests provided
+options="!check"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ 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 "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="81d4ef9cdd732edc6dd060998f10124663d26ec8250fc1de62eb020624111eb3ba595058bd74d5cee1bde84326f26579ab40c4ed7ef58f0aa44baca96921cfb5 qps-1.10.17.tar.xz
+32c154f1d3c9e74dda3eabfd2e3b9e9f3c1d77f808dfacc9dd05c904066832d92d361ca56ef9d784d945fad60cf67d6c909cbb730a0ffed1fea3bf44c3aad5a2 qps-1.10.17-compile-fixes.patch"
diff --git a/user/qps/qps-1.10.17-compile-fixes.patch b/user/qps/qps-1.10.17-compile-fixes.patch
new file mode 100644
index 000000000..ef53bee06
--- /dev/null
+++ b/user/qps/qps-1.10.17-compile-fixes.patch
@@ -0,0 +1,13 @@
+diff -Nurd qps-1.10.17/src/proc.h qps-1.10.17.new/src/proc.h
+--- qps-1.10.17/src/proc.h 2017-09-21 22:00:11.000000000 +0000
++++ qps-1.10.17.new/src/proc.h 2017-10-13 08:36:04.303661277 +0000
+@@ -25,6 +25,9 @@
+
+ #include "config.h"
+
++#include <sys/stat.h>
++#include <sys/time.h>
++
+ #ifdef SOLARIS
+ #include <kstat.h> // kstat_ctl_t
+ #endif