summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a68c2892847627ce10304ab4e8b9e51d5d3a65e1 (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: Sebastian Reuße <seb@wirrsal.net>
pkgname=scroller-git
_gitname=scroller
pkgver=r19.7c7cb5a
pkgrel=1
pkgdesc="A utility for truncating text by rolling it like a news ticker"
arch=(any)
url=https://github.com/kbrgl/scroller
license=(custom)
depends=(python)
makedepends=(git)
provides=(scroller)
conflicts=(scroller)
source=(git+https://github.com/kbrgl/scroller)
md5sums=(SKIP)


pkgver() {
    cd "$_gitname"
    # No tagged commits. ヽ(´ー`)ノ
    commit=$(git rev-list --count master)
    hash=$(git rev-parse --short HEAD)
    echo "r$commit.$hash"
}

package() {
    cd "$srcdir/$_gitname"
    python setup.py install --root="$pkgdir/" --optimize=1
    install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}