summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dc4e9d7ebd0bc3f70a2f627a736661f2f122e47 (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
# Maintainer: Sigmund Vestergaard <sigmundv at gmail dot com>
pkgname=python2-eve-git
pkgver=0.5.r176.g53107c9
pkgrel=1
pkgdesc="An open source Python REST API framework designed for human beings."
arch=('any')
url="http://python-eve.org/"
license=('BSD')
makedepends=('git' 'python2-setuptools')
conflicts=('python2-eve')
provides=('python2-eve')
options=(!emptydirs)
source=("git+https://github.com/nicolaiarocci/eve.git")
_repname=eve
sha256sums=('SKIP')

pkgver() {
  cd "$_repname"
  # cutting off 'v' prefix that presents in the git tag
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$_repname"
  python2 setup.py install --root="$pkgdir/" --optimize=1
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: