summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9620bbdc7e4040e563d568d7c7a7bb64c256447b (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
31
32
33
34
35
36
37
38
# Maintainer: Daniel Moch <daniel@danielmoch.com>
# Contributor: Drew DeVault <sir@cmpwn.com>
_pkgname=tootstream
pkgname=tootstream-git
pkgver=0.3.4.r3.gfef1e72
pkgrel=2
pkgdesc='Text interface for the Mastodon social network'
provides=('tootstream')
conflicts=('tootstream')
arch=('any')
url='https://github.com/magicalraccoon/tootstream'
license=('MIT')
depends=(
	'python-mastodon'
	'python-humanize'
	'python-click'
	'python-colored'
	'python-emoji'
	'python-http-ece'
)
makedepends=('python-distribute' 'git')
source=("git://github.com/magicalraccoon/${_pkgname}.git")
sha512sums=('SKIP')

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

build() {
	cd "${srcdir}/${_pkgname}"
	python ./setup.py build
}

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