Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/gdmd-git/PKGBUILD
blob: 653ec498c70972771cc0d3dbcd5b45ef8ecd0064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
# https://aur.archlinux.org/packages/gdmd-git

pkgname=gdmd-git
pkgver=r31.1a4bcb2
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' 'gcc-d')
makedepends=('git')
source=("git+https://github.com/D-Programming-GDC/GDMD.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/GDMD"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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