summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d402902e389e398c1b0284e377ccaada02f2912 (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
# Maintainer: Wang Ruochen <arch@ruo-chen.wang>
pkgname=interception-caps2esc-nocaps-git
_pkgname=interception-caps2esc
pkgver=0.1.3.r4.g339f645
pkgrel=2
pkgdesc='A fork of interception-caps2esc which does not emit Caps Lock when ESC is pressed'
arch=('x86_64')
license=('MIT')
url="https://github.com/weirane/caps2esc"
depends=(interception-tools)
makedepends=(cmake)
conflicts=(caps2esc interception-caps2esc interception-caps2esc-delay-git)
replaces=(interception-caps2esc)
source=("$pkgname::git+$url"
        "udevmon.yaml")
md5sums=(SKIP 936dbdac1bdba4a68bcaf948f5f5326f)

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed -e 's/^v//' -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g'
}

build() {
    cd "$srcdir/$pkgname"
    cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
    cmake --build build
}

package() {
    cd "$srcdir/$pkgname/build"
    make DESTDIR="$pkgdir/" install
    install -D -m0644 "$srcdir/udevmon.yaml" "$pkgdir/usr/share/doc/$_pkgname/udevmon.example.yaml"
}