summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78bdac56cc33a435529f58dd0c8c64feb254bf06 (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: Daniel Milde <daniel at milde dot cz>

pkgname=python-fastrpc-git
_gitname=fastrpc
pkgver=v8.0.8.r3.g24413dd
pkgrel=1
pkgdesc="Python FastRPC library"
url="https://github.com/seznam/fastrpc"
arch=('any')
license=('GPL')
depends=('python' 'fastrpc-git')
makedepends=('python-setuptools' 'python-debian')
source=("git://github.com/seznam/$_gitname.git")
sha256sums=('SKIP')

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

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

  cd "$srcdir/$_gitname/netcat"
  install -D -m755 fastrpc-netcat3 "$pkgdir/usr/bin/fastrpc-netcat3"
  install -D -m755 fastrpc-netcat "$pkgdir/usr/bin/fastrpc-netcat"
}