# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>

pkgname=gdmd-git
_commit=dc0ad9f
pkgver=42
pkgrel=1
pkgdesc="DMD-like wrapper for GDC"
arch=('any')
url="https://github.com/D-Programming-GDC/gdmd"
license=('GPL')
provides=('gdmd')
conflicts=('gdmd')
depends=('perl')
makedepends=('git')
source=("git+https://github.com/D-Programming-GDC/GDMD.git?commit=$_commit")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/GDMD"
  printf "%s" "$(git rev-list --count $_commit)"
}

package() {
  cd "$srcdir/GDMD"
  mkdir -p "$pkgdir"/usr/{bin,share/man/man1}
  make install prefix=/usr DESTDIR="$pkgdir"
}
