# Maintainer: Marco44 (Marc Cousin) pkgname=pg_qualstats-git _gitname=pg_qualstats pkgver=b749f80 pkgrel=1 pkgdesc="postgresql background worker to capture data" arch=('i686' 'x86_64' 'armv7h' 'aarch64') url="https://github.com/dalibo/pg_qualstats" license=('BSD') depends=('postgresql') builddepends=() makedepends=(git) options=(!emptydirs !libtool) source=('git://github.com/dalibo/pg_qualstats.git') md5sums=('SKIP') install='pg_qualstats-git.install' pkgver() { cd $_gitname tag=`git tag | grep REL | tail -1` commit=`git log --format="%h" -n 1` echo "$tag_$commit" } build() { local _gitdir=$srcdir/$_gitname cd $_gitdir git clean -dfx git reset --hard make } package() { cd $srcdir/$_gitname make DESTDIR=$pkgdir install }