1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-11 03:25:00 -05:00
arch-ppa/src/rusty-keys/PKGBUILD

39 lines
1.6 KiB
Bash
Raw Normal View History

2017-09-22 01:53:51 -04:00
# Maintainer: moparisthebest <admin dot archlinux AT moparisthebest dot com>
pkgname=rusty-keys
2017-11-08 22:33:57 -05:00
pkgver=0.0.2
pkgrel=1
2017-09-22 01:53:51 -04:00
pkgdesc="uinput level keyboard mapper for linux"
url="https://code.moparisthebest.com/moparisthebest/rusty-keys"
makedepends=('cargo' 'systemd')
depends=('libsystemd')
2017-11-08 22:33:57 -05:00
arch=('i686' 'x86_64' 'armv7h' 'armv6h')
2017-09-22 01:53:51 -04:00
license=('AGPL')
2017-09-24 00:07:25 -04:00
backup=('etc/rusty-keys/keymap.toml')
2017-09-22 01:53:51 -04:00
source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download"
2017-11-08 22:33:57 -05:00
"$pkgname-$pkgver.tar.gz.asc::https://code.moparisthebest.com/attachments/95cecd64-fb0a-466b-995b-a1ca38cfca36"
2017-09-22 01:53:51 -04:00
'rusty-keys@.service'
rusty-keys.target
)
validpgpkeys=('81F1C22DD41109D4A9C0A7B5B070F8D97D1A0BBA') # moparisthebest <admin AT moparisthebest.com>
2017-11-08 22:33:57 -05:00
sha256sums=('53cb47fc17c69430d5f8d2230e712a1178f14d8542d21bda4b0d8bd022019804'
'35f4f6cce400de07ded6bc30b2f8d05dfb8cf9068af8e1e6c9a3862f46ea7bc0'
'277193fd54d47d994d2db21102409c1aa18f11064e9f4798bd97ade63cbe2c46'
2017-09-22 01:53:51 -04:00
'70afa48c38901dd7de377f8ab4432806adeb944bd171df02091da617ed138862'
)
build() {
cd "$pkgname-$pkgver"
cargo build --release
}
package() {
install -Dm644 'rusty-keys@.service' "${pkgdir}/usr/lib/systemd/system/rusty-keys@.service"
install -Dm644 rusty-keys.target "${pkgdir}/usr/lib/systemd/system/rusty-keys.target"
cd "$pkgname-$pkgver"
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"
}