# Maintainer: Keating Reid pkgname=libmowgli-2-git pkgver=v2.1.3.r42.g8be3be8 pkgrel=1 pkgdesc="A class library containing performance and usability oriented extensions to C." arch=('i686' 'x86_64') url="https://github.com/atheme/libmowgli-2" license=('ISC') depends=('openssl') makedepends=('git') provides=('libmowgli=2.1.3') conflicts=("libmowgli") source=("${pkgname}::git+https://github.com/atheme/libmowgli-2.git") sha1sums=('SKIP') pkgver() { cd $pkgname # git rev-parse --short HEAD # cutting off 'foo-' prefix that presents in the git tag git describe --long | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${srcdir}/${pkgname}" ./configure --prefix=/usr make } package() { cd "${srcdir}/${pkgname}" make DESTDIR="${pkgdir}" install install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" }