summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ffe3c5a258f0047b014f30ac8b60a4c8e458856 (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
# Maintainer: Stein Gunnar Bakkeby <bakkeby@gmail.com>
pkgname="encircle"
pkgver="1.1"
pkgrel=1
pkgdesc="A Xinerama X cursor monitor wrapper"
url="https://github.com/bakkeby/encircle"
arch=("any")
license=('MIT')
depends=('libxinerama' 'libxi')
makedepends=('make')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bakkeby/encircle/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('7997dd45565401ef0b76c2c5a22dbc193a4a35aca94e05329588c28c518686e0')

build() {
    cd "$srcdir/${pkgname}-${pkgver}"
    make
}

package() {
    cd "$srcdir/${pkgname}-${pkgver}"
    #make PREFIX=/usr DESTDIR="$pkgdir" install
    install -Dm755 encircle "$pkgdir/usr/bin/encircle"
    install -Dm644 encircle.1 "$pkgdir/usr/share/man/man1/encircle.1"
    sed -i "s/VERSION/${pkgver}/g" "$pkgdir/usr/share/man/man1/encircle.1"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}