Date: Sunday, September 10, 2017 @ 19:52:22
  Author: wild
Revision: 256808

Imported dfmt from AUR

Added:
  dfmt/
  dfmt/repos/
  dfmt/trunk/
  dfmt/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Added: dfmt/trunk/PKGBUILD
===================================================================
--- dfmt/trunk/PKGBUILD                         (rev 0)
+++ dfmt/trunk/PKGBUILD 2017-09-10 19:52:22 UTC (rev 256808)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dan Printzell <a...@vild.io>
+
+pkgname=('dfmt')
+pkgver=0.5.0
+pkgrel=3
+_pkgcommit=fef85e388a41add75020675ab33ed7e55c3efe85
+pkgdesc="Dfmt is a formatter for D source code "
+arch=('i686' 'x86_64')
+url="https://github.com/dlang-community/dfmt";
+license=("BSL")
+groups=('dlang')
+makedepends=('dmd' 'git')
+depends=('libphobos')
+
+source=(
+       "git+https://github.com/dlang-community/dfmt#commit=$_pkgcommit";
+       "git+https://github.com/dlang-community/libdparse";
+)
+sha256sums=(
+       'SKIP'
+       'SKIP'
+)
+
+prepare() {
+       cd "$srcdir/dfmt"
+
+       git submodule init
+       git config submodule.libdparse.url "$srcdir/libdparse"
+       git submodule update
+}
+
+build() {
+       cd "$srcdir/dfmt"
+       make
+}
+
+package() {
+       # binaries
+       install -Dm755 "$srcdir/dfmt/bin/dfmt" "$pkgdir/usr/bin/dfmt"
+
+       # license
+       install -Dm644 "$srcdir/dfmt/LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Reply via email to