summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 168b342415659b896698c521e11283c360211491 (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
# Maintainer: Daniel Milde <daniel at milde dot cz>

pkgname=fastrpc-git
_gitname=fastrpc
pkgver=python8.0.1
pkgrel=1
pkgdesc="FastRPC library"
url="https://github.com/seznam/fastrpc"
arch=('any')
license=('GPL')
provides=('fastrpc')
depends=('python' 'libxml2')
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'
}

build() {
  cd "$srcdir/$_gitname"
  libtoolize --force
  aclocal
  automake --force-missing --add-missing
  autoconf
  ./configure --prefix=/usr
  make || return 1
}

package() {
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir" install
}