blob: bd6e7466d1090766360c41e823eb85ecd7d21eb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
pkgname="kbct-git"
_gitname=kbct
pkgver=0.1.0.r48.e0e1139
pkgrel=1
pkgdesc="Keyboard keycode mapping utility for Linux supporting layered configuration"
arch=('x86_64')
url="https://github.com/samvel1024/kbct"
license=('None')
depends=()
makedepends=('git' 'cargo' 'rust')
provides=('kbct')
source=("git+$url" 'kbct.service' 'config.yml')
backup=('etc/kbct/config.yml')
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$_gitname"
echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$_gitname"
cargo build --release
}
package() {
cd "$_gitname"
install -D -m755 ./target/release/kbct "$pkgdir/usr/bin/kbct"
install -D -m644 "$srcdir/kbct.service" "$pkgdir/etc/systemd/system/kbct.service"
}
|