summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed9f0bcc5391e578efa87943f02e6e3d01854ed9 (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
# Maintainer: Sergio Tridente <tioduke (at) gmail (dot) com>

_pkgname=feed2toot
pkgname=python-feed2toot-git
pkgver=0.7.r0.g5af950e
pkgrel=1
pkgdesc="Feed2toot automatically parses rss feeds, identifies new posts and posts them on the Mastodon social network."
arch=('any')
url="https://gitlab.com/chaica/feed2toot"
license=('GPL3')
depends=('python-feedparser' 'python-mastodon')
makedepends=('python-setuptools')
source=("git+https://gitlab.com/chaica/feed2toot.git")
md5sums=('SKIP')
_gitname=$_pkgname


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

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