[arch-commits] Commit in dfmt/repos/community-x86_64 (PKGBUILD PKGBUILD)

Dan Printzell wild at archlinux.org
Sat Jan 5 14:52:17 UTC 2019


    Date: Saturday, January 5, 2019 @ 14:52:17
  Author: wild
Revision: 420679

archrelease: copy trunk to community-x86_64

Added:
  dfmt/repos/community-x86_64/PKGBUILD
    (from rev 420678, dfmt/trunk/PKGBUILD)
Deleted:
  dfmt/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  107 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 55 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-05 14:52:06 UTC (rev 420678)
+++ PKGBUILD	2019-01-05 14:52:17 UTC (rev 420679)
@@ -1,52 +0,0 @@
-# Maintainer: Dan Printzell <arch at vild.io>
-
-pkgname=('dfmt')
-pkgver=0.8.3
-pkgrel=1
-_pkgcommit=92d5e1ac8cef71be6538d4b8dc262970cf762f0a
-pkgdesc="Dfmt is a formatter for D source code"
-arch=('x86_64')
-url="https://github.com/dlang-community/dfmt"
-license=("custom")
-groups=('dlang')
-makedepends=('dmd' 'git')
-depends=('libphobos')
-
-source=(
-	"git+https://github.com/dlang-community/dfmt#commit=$_pkgcommit"
-	"git+https://github.com/dlang-community/libdparse"
-	"git+https://github.com/sociomantic-tsunami/makd"
-	"git+https://github.com/sociomantic-tsunami/beaver"
-	"git+https://github.com/dlang-community/stdx-allocator"
-)
-sha256sums=(
-	'SKIP'
-	'SKIP'
-	'SKIP'
-	'SKIP'
-	'SKIP'
-)
-
-prepare() {
-	cd "$srcdir/dfmt"
-
-	git submodule init
-	git config submodule.libdparse.url "$srcdir/libdparse"
-	git config submodule.makd.url "$srcdir/makd"
-	git config submodule.beaver.url "$srcdir/beaver"
-	git config submodule.stdx-allocator.url "$srcdir/stdx-allocator"
-	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"
-}

Copied: dfmt/repos/community-x86_64/PKGBUILD (from rev 420678, dfmt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-01-05 14:52:17 UTC (rev 420679)
@@ -0,0 +1,55 @@
+# Maintainer: Dan Printzell <arch at vild.io>
+
+pkgname=('dfmt')
+pkgver=0.9.0
+pkgrel=1
+_pkgcommit=c3537a5d51c0d94389a5cb82dfa623726426e767
+pkgdesc="Dfmt is a formatter for D source code"
+arch=('x86_64')
+url="https://github.com/dlang-community/dfmt"
+license=("custom")
+groups=('dlang')
+makedepends=('ldc' 'git')
+depends=('liblphobos')
+
+source=(
+	"git+https://github.com/dlang-community/dfmt#commit=$_pkgcommit"
+	"git+https://github.com/dlang-community/libdparse"
+	"git+https://github.com/sociomantic-tsunami/makd"
+	"git+https://github.com/sociomantic-tsunami/beaver"
+	"git+https://github.com/dlang-community/stdx-allocator"
+)
+sha256sums=(
+	'SKIP'
+	'SKIP'
+	'SKIP'
+	'SKIP'
+	'SKIP'
+)
+
+prepare() {
+	cd "$srcdir/dfmt"
+
+	git submodule init
+	git config submodule.libdparse.url "$srcdir/libdparse"
+	git config submodule.makd.url "$srcdir/makd"
+	git config submodule.beaver.url "$srcdir/beaver"
+	git config submodule.stdx-allocator.url "$srcdir/stdx-allocator"
+	git submodule update
+
+	_extraFlags="-O5 -flto=full -linker=gold -link-defaultlib-shared=false -L=\"$LDFLAGS\""
+	sed -i "/LDC_FLAGS \:=/ a override LDC_FLAGS += $_extraFlags" makefile
+}
+
+build() {
+	cd "$srcdir/dfmt"
+	make ldc
+}
+
+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