aboutsummaryrefslogtreecommitdiffstats
path: root/community/mce/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mce/APKBUILD')
-rw-r--r--community/mce/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/community/mce/APKBUILD b/community/mce/APKBUILD
new file mode 100644
index 0000000000..832e4c9ba4
--- /dev/null
+++ b/community/mce/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=mce
+pkgver=0_git20200916
+pkgrel=0
+_commit="4b7cb5348b3edafb6712c97a2be5f34f8401c68f"
+pkgdesc="mce with support for tap-to-wake and tilt-to-wake "
+url="https://github.com/AsteroidOS/mce"
+arch="all"
+license="LGPL-2.1-only"
+makedepends="
+ bsd-compat-headers
+ dbus-dev
+ dbus-glib-dev
+ doxygen
+ elogind-dev
+ glib-dev
+ graphviz
+ libdsme-dev
+ libiphb-dev
+ libngf-dev
+ "
+subpackages="$pkgname-doc $pkgname-openrc"
+source="https://github.com/AsteroidOS/mce/archive/$_commit/mce-$_commit.tar.gz
+ mce.initd
+ mce.confd
+ fix-build.patch
+ "
+options="!check" # Build failures
+builddir="$srcdir/$pkgname-$_commit"
+
+build() {
+ make
+ make doc
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+
+ install -Dm755 "$srcdir"/mce.initd "$pkgdir"/etc/init.d/mce
+ install -Dm644 "$srcdir"/mce.confd "$pkgdir"/etc/conf.d/mce
+
+ # We don't ship systemd
+ rm -r "$pkgdir"/lib/systemd
+}
+
+sha512sums="58a7ebb29d6aef494cfce56d9a2dee294fb8d393dcd458e7aada79267ca10a68d771b94aae3db15f32e44d1dd27d16c21013e7ca0e798c629fa5912a92cefc64 mce-4b7cb5348b3edafb6712c97a2be5f34f8401c68f.tar.gz
+b07d40a66fd9206b1e34164a0229b05456cbe268b4004045c8fda34742c40528c56c5f1cf81cbc4ba3662c20fcbcff4a8f8e00fc8fbb2ff7bb92e7ab125dd55b mce.initd
+b841282b96110ec59a7aa539db0737327b09549d55c78dc4b2c3b28b4a6ad1facf015b3175cb6d3a38f13e47aa6314ef3dc1514a4e60dd653a97409ec54ba706 mce.confd
+758a84642f866eea2b7e8e51ea054b472f1ab2c511b1d9ff9061bf3b4eb29fa2455fc6ce3d9896d8c6d1b160e911f49952b4ef43a090888b63b165ee9eb15504 fix-build.patch"