summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4478975f6e0f030c52e43567a0e03f7f603d019a (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
# Maintainer: sasvari
pkg="pubs"
pkgname="$pkg-git"
pkgver=0.8.3.r24.gd11f443
pkgrel=1
pkgdesc="Your bibliography on the command line"
arch=(any)
url="https://github.com/pubs/pubs"
license=('LGPL-3.0')
depends=("python" "python-configobj" "python-bibtexparser" "python-beautifulsoup4" "python-yaml" "python-feedparser" "python-dateutil" "python-requests")
makedepends=("git")
provides=("pubs")
source=("git+https://github.com/pubs/pubs.git")

pkgver() {
	cd "$srcdir/$pkg"
	git describe --tags | sed 's/^v//; s/-/.r/; s/-/./'
	#git rev-parse --short HEAD
	#git log -1 --format=%cd.%h --date=short|tr -d -
	#cat $srcdir/$pkg/pubs/version.py | awk '{ print $3 }'
}

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

package() {
	cd "$srcdir/$pkg"
	python setup.py install --root="$pkgdir/" --prefix="/usr"
}
md5sums=('SKIP')