summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b96fb73181adbc7163679c404cf1e690edbdd062 (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
# Maintainer: Nils Schulte <aur@nilsschulte.de>

pkgname=waybind-git
_pkgname=waybind
pkgver=v0.1.1.r2.g2e976d7
pkgrel=1
pkgdesc='Simple Key rebinder'
arch=('x86_64')
url='https://github.com/arnarg/waybind'
license=('MIT')
makedepends=('git' 'go')
provides=('waybind')
conflicts=('waybind')
source=("$_pkgname::git+https://github.com/arnarg/waybind")
sha512sums=('SKIP')

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

build() {
    cd "$srcdir/$_pkgname"
    make PREFIX=/usr VERSION="$(pkgver)"
}

package() {
    cd "$srcdir/$_pkgname"
    mkdir -p "${pkgdir}/usr/bin/"
    mv waybind "${pkgdir}/usr/bin/waybind"
}