[arch-commits] Commit in dfmt/repos (community-x86_64 community-x86_64/PKGBUILD)
Dan Printzell
wild at archlinux.org
Sun Sep 10 19:56:04 UTC 2017
Date: Sunday, September 10, 2017 @ 19:56:03
Author: wild
Revision: 256810
archrelease: copy trunk to community-x86_64
Added:
dfmt/repos/community-x86_64/
dfmt/repos/community-x86_64/PKGBUILD
(from rev 256809, dfmt/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: dfmt/repos/community-x86_64/PKGBUILD (from rev 256809, dfmt/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-09-10 19:56:03 UTC (rev 256810)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dan Printzell <arch at vild.io>
+
+pkgname=('dfmt')
+pkgver=0.5.0
+pkgrel=4
+_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"
+}
More information about the arch-commits
mailing list