summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD35
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f4b15fc6369
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = rusty-keys-git
+ pkgdesc = uinput level keyboard mapper for linux
+ pkgver = 0.0.2.r11.g99cf9c4
+ pkgrel = 1
+ url = https://code.moparisthebest.com/moparisthebest/rusty-keys
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ arch = armv6h
+ license = AGPL
+ makedepends = cargo
+ makedepends = systemd
+ makedepends = git
+ depends = libsystemd
+ provides = rusty-keys=0.0.2.r11.g99cf9c4
+ conflicts = rusty-keys
+ backup = etc/rusty-keys/keymap.toml
+ source = rusty-keys-git::git+https://code.moparisthebest.com/moparisthebest/rusty-keys.git
+ validpgpkeys = 81F1C22DD41109D4A9C0A7B5B070F8D97D1A0BBA
+ sha256sums = SKIP
+
+pkgname = rusty-keys-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab9fa53edf1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: moparisthebest <admin dot archlinux AT moparisthebest dot com>
+
+pkgname=rusty-keys-git
+pkgver=0.0.2.r11.g99cf9c4
+pkgrel=1
+pkgdesc="uinput level keyboard mapper for linux"
+url="https://code.moparisthebest.com/moparisthebest/rusty-keys"
+makedepends=('cargo' 'systemd' 'git')
+depends=('libsystemd')
+arch=('i686' 'x86_64' 'armv7h' 'armv6h')
+license=('AGPL')
+backup=('etc/rusty-keys/keymap.toml')
+source=("$pkgname::git+https://code.moparisthebest.com/moparisthebest/rusty-keys.git")
+validpgpkeys=('81F1C22DD41109D4A9C0A7B5B070F8D97D1A0BBA') # moparisthebest <admin AT moparisthebest.com>
+sha256sums=(SKIP)
+conflicts=(rusty-keys)
+provides=(rusty-keys=$pkgver)
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ cargo build --release
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm644 systemd/rusty-keys.service "${pkgdir}/usr/lib/systemd/system/rusty-keys.service"
+ install -Dm755 target/release/rusty-keys "$pkgdir/usr/bin/rusty-keys"
+ install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+ install -Dm644 keymap.toml "${pkgdir}/etc/rusty-keys/keymap.toml"
+}