summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7e4ddf2db63b55bc3eacbfe84ae1e2d34ad1451 (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
# Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=x-highlight-region-git
_gitname=x-highlight-region
pkgver=0.1.0.0.r2.gd6e3221
pkgrel=1
pkgdesc="Dims everything but a selected region of the screen."
arch=(any)
url=https://github.com/eigengrau/x-highlight-region
license=(GPL)
depends=(python-gobject python3-keybinder gtk3 python-cairo)
makedepends=(git)
provides=(x-highlight-region)
conflicts=(x-highlight-region)
source=(git+https://github.com/eigengrau/x-highlight-region)
md5sums=(SKIP)


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

package() {
    cd "$srcdir/$_gitname"
    python setup.py install --root="$pkgdir/" --optimize=1
}