summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7747d6c37825aff20edb55af2d9fd01001ae5b11 (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
# Maintainer: eugene hwang <hwang dot eug at gmail dot com>

pkgname=xpointerbarrier-git
_pkgname=xpointerbarrier
pkgver=r19.f4b2be1
pkgrel=1
pkgdesc="This program creates four pointer barriers around each XRandR screen, thus effectively jailing your mouse pointer to one physical screen."
arch=('x86_64')
url="https://github.com/hwangeug/rofi-gister"
license=('MIT')
depends=('libx11' 'libxfixes' 'libxrandr')
provides=('xpointerbarrier')
conflicts=('xpointerbarrier')
options=('!buildflags')
source=("git+https://www.uninformativ.de/git/xpointerbarrier.git")
sha256sums=('SKIP')

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

build() {
    cd "${srcdir}/${_pkgname}"
    make
}

package() {
    install -Dm755 "${srcdir}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}