# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

pkgname=filemq
pkgver=v1.0a.r180.g8940f34
pkgrel=1
pkgdesc="Chunked, flow-controlled, restartable, cancellable, async, multicast file transfer ØMQ protocol"
url="https://github.com/zeromq/filemq"
license=('GPL3' 'LGPL3')
depends=('zeromq' 'czmq')
makedepends=('git')
arch=('i686' 'x86_64')

source=("git+https://github.com/zeromq/filemq#branch=master")
sha256sums=('SKIP')

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

prepare() {
    cd "${srcdir}/${pkgname}"

    ./autogen.sh
}

build() {
    cd "${srcdir}/${pkgname}"
    ./configure --prefix=/usr
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    make prefix=${pkgdir}/usr install
}
