diff --git a/main/gesture/APKBUILD b/main/gesture/APKBUILD index 760150ddb..92d5c224d 100644 --- a/main/gesture/APKBUILD +++ b/main/gesture/APKBUILD @@ -1,15 +1,15 @@ # Maintainer: Craig Comstock pkgname=gesture pkgver=0.7 -pkgrel=0 +pkgrel=1 pkgdesc="handwriting algorithm with implementation for linux touchscreens injecting keys into a tty" url="https://gitlab.com/unrznbl/gesture" arch="all" license="GPL-3.0-only" makedepends="linux-headers" -install="$pkgname.post-install $pkgname.pre-deinstall" options="!check" source="https://gitlab.com/unrznbl/gesture/-/archive/v$pkgver/gesture-v$pkgver.tar.gz" +subpackages="$pkgname-openrc" builddir="$srcdir/gesture-v$pkgver" build() { @@ -20,6 +20,12 @@ package() { make DESTDIR="$pkgdir" install } +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install $subpkgname.pre-deinstall" + mkdir -p "$subpkgdir" +} + sha512sums=" f05eae4dded079eed6fd7b362485bec6400f18f4e9cf2a42ee80a378d0f9de7d85b8afc5671a349f5dee85ea92b1281415158ae85abd160668ad13aa8e3a46a1 gesture-v0.7.tar.gz " diff --git a/main/gesture/gesture.post-install b/main/gesture/gesture-openrc.post-install similarity index 100% rename from main/gesture/gesture.post-install rename to main/gesture/gesture-openrc.post-install diff --git a/main/gesture/gesture.pre-deinstall b/main/gesture/gesture-openrc.pre-deinstall similarity index 100% rename from main/gesture/gesture.pre-deinstall rename to main/gesture/gesture-openrc.pre-deinstall