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

Dan Printzell wild at archlinux.org
Sun Sep 10 19:31:47 UTC 2017


    Date: Sunday, September 10, 2017 @ 19:31:45
  Author: wild
Revision: 256804

archrelease: copy trunk to community-x86_64

Added:
  dub/repos/community-x86_64/
  dub/repos/community-x86_64/PKGBUILD
    (from rev 256803, dub/trunk/PKGBUILD)

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

Copied: dub/repos/community-x86_64/PKGBUILD (from rev 256803, dub/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-09-10 19:31:45 UTC (rev 256804)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Dan Printzell <arch at vild.io>
+# Contributor: Mihails Strasuns <public at dicebot.lv>
+# Contributor: Moritz Maxeiner <moritz at ucworks.org>
+
+pkgname=('dub')
+pkgver=1.5.0
+pkgrel=2
+pkgdesc="Developer package manager for D programming language"
+arch=('i686' 'x86_64')
+url="https://github.com/D-Programming-Language/dub"
+license=('MIT')
+groups=('dlang')
+makedepends=('dmd')
+depends=('libphobos' 'curl')
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/dlang/dub/archive/v$pkgver.tar.gz")
+sha512sums=('cc23c177a2fff94119e8abc0b9d3812027badd98c4d30903e75c348318ae790b98fb435540860b9beb6923fe0a4d70b80f572cda343b4b5a0f513755b484baf2')
+
+build() {
+	DC=dmd
+	cd "$pkgname-$pkgver"
+
+	echo Generating version file...
+	echo "module dub.version_;" > source/dub/version_.d
+	echo "enum dubVersion = \"$pkgver\";" >> source/dub/version_.d
+
+	$DC -ofbin/dub -w -O -g -version=DubUseCurl -Isource -L-lcurl @build-files.txt
+}
+
+package() {
+	# binaries
+	install -Dm755 "$pkgname-$pkgver/bin/dub" "$pkgdir/usr/bin/dub"
+
+	# license
+	install -Dm644 "$pkgname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+	# bash completion
+	install -Dm644 "$pkgname-$pkgver/scripts/bash-completion/dub.bash" "$pkgdir/usr/share/bash-completion/completions/dub"
+}



More information about the arch-commits mailing list