summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 228d882d766fe71a071d64b592a615ba100c99dd (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: jem <jem ΑΤ seethis DΟΤ link>
pkgname=keyplusd-git
_gitname=keyplus
pkgver=v0.2.0.beta.r407.g37c9804
pkgrel=3
epoch=
pkgdesc="keyboard remapping tool that emulates keyplus firmware"
arch=('i686' 'x86_64')
url="https://github.com/ahtn/keyplus/tree/master/ports/linux"
license=('MIT')
groups=()
depends=('keyplus-git' 'systemd' 'libevdev')
makedepends=('git' 'make' 'gcc' 'python')
checkdepends=()
optdepends=()
provides=('keyplusd')
conflicts=('keyplusd')
replaces=()
backup=()
options=()
install=
changelog=
source=(
    'git+https://github.com/ahtn/keyplus.git'
)
md5sums=(
    'SKIP'
)
noextract=()
validpgpkeys=()

pkgver() {
    cd $_gitname
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd $_gitname
    cd ports/linux
    make PREFIX=/usr
}

package() {
    cd $_gitname
    cd ports/linux
    make DESTDIR="$pkgdir/" PREFIX=/usr install
    install -Dm 644 ../../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}