summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33e15de5b0d997ca591280559ac4546a5f4217ae (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
# Maintainer: joetw <call dot imera42 at googlemail dot com>
# Contributor: Greg Fitzgerald <greg at gregf dot org>

pkgname=xcape-git
pkgver=1.1.r9.gf3802fc
pkgrel=2
epoch=1
pkgdesc="Use modifier pressed/released solo as another key/chord, e.g. CapsLock > Escape"
arch=('i686' 'x86_64')
url="https://github.com/alols/xcape"
license=('GPL3')
depends=('libxtst')
makedepends=('git')
provides=('xcape')
conflicts=('xcape')
source=("git+${url}")
sha256sums=('SKIP')

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

build() {
  cd xcape
  make
}

package() {
  cd xcape
  make DESTDIR="$pkgdir/" MANDIR="/share/man/man1" install
  install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"

  find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}

# vim:set ft=PKGBUILD ts=2 sw=2 et: