aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergiy Stupar <owner@sestolab.pp.ua>2023-05-22 21:23:07 +0000
committerpsykose <alice@ayaya.dev>2023-05-22 23:23:14 +0200
commit396fb7323cd2b8329a8b5d24e3bb407b904a79e9 (patch)
treef84602d20ab2e1f04c93c4e09edbd8af51a200b2
parentb09ee601cecea0561d6a7369955a70b4a990ccb8 (diff)
testing/pokoy: new aport
-rw-r--r--testing/pokoy/APKBUILD28
-rw-r--r--testing/pokoy/broken-makefile.patch15
2 files changed, 43 insertions, 0 deletions
diff --git a/testing/pokoy/APKBUILD b/testing/pokoy/APKBUILD
new file mode 100644
index 00000000000..1dff8b359f5
--- /dev/null
+++ b/testing/pokoy/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
+# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
+pkgname=pokoy
+pkgver=0.2.5
+pkgrel=0
+pkgdesc="Lightweight daemon that helps prevent RSI and other computer related stress"
+url="https://github.com/ttygde/pokoy"
+arch="all"
+license="GPL-2.0-only"
+makedepends="libxcb-dev xcb-util-wm-dev xcb-util-keysyms-dev"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ttygde/pokoy/archive/v$pkgver.tar.gz
+ broken-makefile.patch
+ "
+options="!check" # No tests
+
+build() {
+ make PREFIX=/usr STRIP=
+}
+
+package() {
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
+
+sha512sums="
+cd7505f0fc88c51f9a74e19aae3aed0e20a408b70ead93f04043a886c448099b4d56443c8a0404746b3b4ee4ba6b4c7d442793a7f24b93b1f3b06d8c149692ca pokoy-0.2.5.tar.gz
+c0973a7300fb77b45b597272bec9d182573a3b8a3eb16f1b4e70c838a1b59bbdc7041a10742bfee03d6191f068dd7bc16fbc046d94b7cce2e62c9736f760d039 broken-makefile.patch
+"
diff --git a/testing/pokoy/broken-makefile.patch b/testing/pokoy/broken-makefile.patch
new file mode 100644
index 00000000000..8eade4450cf
--- /dev/null
+++ b/testing/pokoy/broken-makefile.patch
@@ -0,0 +1,15 @@
+diff --git a/Makefile b/Makefile
+index 60f6519..b0c0793 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,8 +1,8 @@
+ VERSION = 0.2.5
+ CC ?= gcc
+ STRIP ?= strip
+-CFLAGS = -std=c99 -D_DEFAULT_SOURCE -O2
+-LDFLAGS = -lxcb -lxcb-keysyms -lxcb-icccm -lxcb-screensaver
++CFLAGS := -std=c99 -D_DEFAULT_SOURCE -O2 $(CFLAGS)
++LDFLAGS := -lxcb -lxcb-keysyms -lxcb-icccm -lxcb-screensaver $(LDFLAGS)
+
+ SRCR = pokoy.c
+ OBJS = ${SRCR:.c=.o}