summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cefdbc7087a3330835200afd2c11c4ddcb896095 (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: Ehsan Ghorbannezad <ehsangn@protonmail.ch>
_pkgname='xkblayout-subscribe'
pkgname="${_pkgname}-git"
pkgver=r1.bc13b72
pkgrel=1
pkgdesc='Subscribe to X keyboard layout events. useful for updating statusbars.'
arch=('x86_64')
url='https://github.com/soystemd/xkblayout-subscribe'
license=('GPL')
depends=('libpulse')
makedepends=('git' 'pkgconf')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+${url}.git")
md5sums=('SKIP')

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

build() {
    cd "$_pkgname"
    make
}

package() {
    cd "${_pkgname}"
    make PREFIX=/usr DESTDIR="$pkgdir" install
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}