summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a40e7f984e6dab8f1610fb9c157672e58e7da68 (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
39
40
41
42
43
# Maintainer:  Dani Rodríguez <dani@danirod.es>
# Contributor: dreieck
# Contributor: Daniel Moch <daniel@danielmoch.com>
# Contributor: Drew DeVault <sir@cmpwn.com>
_pkgname=tootstream
pkgname=tootstream-git
pkgver=0.4.0.r11.gf01781f
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-pytimeparse
         python-setuptools)
makedepends=(git)
source=("git+https://github.com/magicalraccoon/tootstream")
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
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}