summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9fdd86eec64586ec29aef33937677dee1634228 (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
# Maintainer: Tin Lai <oscar@tinyiu.com>
pkgname=xps-home-end-keymappings-git
_pkgname=xps-home-end-keymappings
pkgver=r27.32cfc20
pkgrel=1
pkgdesc="xps-home-end-keymappings: make xps's amazing keymapping works in other keyboard"
arch=('x86_64')
license=('GPL3')
url="https://github.com/soraxas/xps-home-end-keymappings"
depends=('libevdev')
makedepends=('gcc')
source=("$_pkgname::git+https://github.com/soraxas/xps-home-end-keymappings.git")
md5sums=("SKIP")

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_pkgname/src"
    make
}

package() {
    cd "$srcdir/$_pkgname"
    mkdir -p "${pkgdir}/usr/bin"
    install -m 755 "src/xps-keymapping" "${pkgdir}/usr/bin"

    mkdir -p "${pkgdir}/usr/lib/systemd/system"
    install -m 644 "src/xps-keymapping.service" "${pkgdir}/usr/lib/systemd/system"
}