summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71a261ddc5d56308489dfebff963571414cb532c (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
# Contributor: Omar Alkersh <oalkersh at protonmail dot com>

pkgname=shortcut-mapper-git
pkgver=0.1.2.r0.g7da8094
pkgrel=1
pkgdesc='creates "key string" binding to execute commands'
arch=(x86_64)
url="https://github.com/OZoneGuy/shortcut-mapper.git"
license=('GPL-3.0-or-later')
depends=(xorg-server)
makedepends=(git cmake)
source=("git+$url")
md5sums=('SKIP')

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

build() {
  cmake -B build -S shortcut-mapper -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
  install -dm755 "$pkgdir/usr/"
  mv -v "$pkgdir"/{bin,usr}/
}