summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64e43716990b3a7ca5db1b0be1046a36d0f7ef4a (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-selection-pipe-git
_gitname=x-selection-pipe
pkgver=0.1.0.0.r4.g8ddd639
pkgrel=1
pkgdesc="A simple clipboard-monitor intended as a data source in shell pipelines"
arch=(any)
url=https://github.com/eigengrau/x-selection-pipe
license=(GPL)
depends=(python-gobject gtk3)
makedepends=(git)
provides=(x-selection-pipe)
conflicts=(x-selection-pipe)
source=(git+https://github.com/eigengrau/x-selection-pipe)
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
}