summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f959c3fa16001a480f10a86069a7766b5a644f1 (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://www.uninformativ.de/git/xpointerbarrier"
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}"
}