blob: 0bd4e42baf6c870c3521f5645af5e3c99723ad37 (
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
|
# Maintainer: Bitals <me at bitals dot xyz>
pkgname='zsa-kontroll'
_repo="$(cut -d "-" -f 2 <<< ${pkgname})"
pkgdesc="Control your ZSA keyboard from the command line and scripts"
pkgver=1.0.3
pkgrel=2
url="https://github.com/zsa/${pkgname}"
source=("git+https://github.com/zsa/${_repo}#tag=${pkgver}")
makedepends=('rust' 'protobuf')
depends=('glibc' 'gcc-libs' 'zsa-keymapp')
arch=('x86_64')
license=('MIT')
sha512sums=('SKIP')
build() {
cd "${srcdir}"/${_repo}
cargo build --release
}
package() {
mkdir -p "${pkgdir}/usr/bin/" "${pkgdir}/usr/share/licenses/${pkgname}/"
install -m 755 "${srcdir}/${_repo}/target/release/${_repo}" "${pkgdir}/usr/bin/"
install -m 644 "${srcdir}/${_repo}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|