# Maintainer: fzerorubigd pkgname='jcal-git' _gitname=jcal #The real value will be calculated by pkgver() function pkgver=0.4.1.r3.g4a9a37a pkgrel=1 pkgdesc="Jalali calendar is a small and portable free software library to manipulate date and time in Jalali calendar system" url="http://www.nongnu.org/jcal/" arch=('any') license=('GPL3') provides=('jcal') depends=() makedepends=('git') source=('git+https://github.com/persiancal/jcal.git') md5sums=('SKIP') pkgver() { cd "${srcdir}/${_gitname}" git describe --tags | sed 's/^v//; s/-/.r/; s/-/./' } build() { cd "${srcdir}/${_gitname}/sources" ./autogen.sh ./configure --prefix=/usr make } package() { cd "${srcdir}/${_gitname}/sources" make DESTDIR=$pkgdir install }