# $Id: PKGBUILD 115823 2014-07-17 10:01:01Z mtorromeo $ # Maintainer: Massimiliano Torromeo # Contributor: Lev Lybin # Contributor: Vadym Abramchuk # Contributor: John Gerritse pkgname=gearmand pkgver=1.1.12 pkgrel=2 pkgdesc="Distributed job queue server." arch=('i686' 'x86_64') depends=('libevent' 'boost-libs' 'libmariadbclient' 'postgresql-libs' 'sqlite' 'hiredis') makedepends=('boost' 'gperf' 'python-sphinx') conflicts=('gearman') replaces=('gearman') provides=("gearman=$pkgver") url="http://gearman.org/" license=('CUSTOM') install=$pkgname.install backup=('etc/gearmand.conf') source=(https://launchpad.net/$pkgname/1.2/$pkgver/+download/$pkgname-$pkgver.tar.gz gearmand.service gearmand.conf) build() { cd "$srcdir/$pkgname-$pkgver" export LDFLAGS="$LDFLAGS -lboost_system" ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --localstatedir=/run \ --disable-static \ --enable-ssl make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" cd "$srcdir" install -Dm644 gearmand.service "$pkgdir/usr/lib/systemd/system/gearmand.service" install -Dm644 gearmand.conf "$pkgdir/etc/gearmand.conf" } sha256sums=('973d7a3523141a84c7b757c6f243febbc89a3631e919b532c056c814d8738acb' 'dee38ad4e614969047253b8c4996b8cdf33c981b0df215b6627356fd4cbafa33' '6c14fdcd94105338e13bdd59dbed4f9b77430a517b2c125ac2e6d3bc43bdf506')