summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDicebot2015-09-19 16:15:21 +0300
committerDicebot2015-09-19 16:15:21 +0300
commit172d35268ecbb429098102a72b22615f93c31a72 (patch)
treef639afe9bd022bbb19e63fc20a980d0854bf7aba
downloadaur-172d35268ecbb429098102a72b22615f93c31a72.tar.gz
Move dstep from [community]
Updating it is impossible because of upstream build issues and keeping old version is not acceptable anymore
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD44
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..50c7a937a41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = dstep
+ pkgdesc = Automatic C header to D module translator
+ pkgver = 0.1.0
+ pkgrel = 2
+ url = https://github.com/jacob-carlborg/dstep
+ arch = i686
+ arch = x86_64
+ groups = dlang
+ license = custom
+ makedepends = git
+ makedepends = d-compiler
+ makedepends = d-stdlib
+ makedepends = dtools
+ depends = clang
+ source = git+https://github.com/jacob-carlborg/dstep.git#tag=v0.1.0
+ source = tango::git+https://github.com/SiegeLord/Tango-D2.git
+ source = git+https://github.com/Dicebot/Arch-PKGBUILDs.git
+ source = http://www.boost.org/LICENSE_1_0.txt
+ sha1sums = SKIP
+ sha1sums = SKIP
+ sha1sums = SKIP
+ sha1sums = 3cba29011be2b9d59f6204d6fa0a386b1b2dbd90
+
+pkgname = dstep
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3319f99ee0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Dicebot <public@dicebot.lv>
+pkgname=dstep
+pkgver=0.1.0
+pkgrel=2
+pkgdesc="Automatic C header to D module translator"
+arch=('i686' 'x86_64')
+groups=('dlang')
+url="https://github.com/jacob-carlborg/dstep"
+license=('custom')
+depends=('clang')
+makedepends=('git' 'd-compiler' 'd-stdlib' 'dtools')
+source=(
+ "git+https://github.com/jacob-carlborg/dstep.git#tag=v$pkgver"
+ "tango::git+https://github.com/SiegeLord/Tango-D2.git"
+ "git+https://github.com/Dicebot/Arch-PKGBUILDs.git"
+ "http://www.boost.org/LICENSE_1_0.txt"
+)
+sha1sums=(
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ '3cba29011be2b9d59f6204d6fa0a386b1b2dbd90'
+)
+
+build ()
+{
+ DMD=`$srcdir/Arch-PKGBUILDs/d-compiler.sh`
+
+ cd $srcdir/tango
+ make -f build/Makefile DC=$DMD ARCH=$CARCH COMPILER=$(basedir $DMD)
+ mv libtango-* libtango.a
+
+ cd $srcdir/dstep
+ git submodule update --init --recursive
+ rdmd --compiler=$DMD --build-only -debug -gc -ofbin/dstep -Idstack/mambo -Idstack -I$srcdir/tango -L-L$srcdir/tango -I/usr/include/dlang -L-lclang -L-ltango dstep/driver/DStep.d
+}
+
+package ()
+{
+ mkdir -p $pkgdir/usr/bin
+ install -m755 $srcdir/dstep/bin/dstep $pkgdir/usr/bin/dstep
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname
+ install -m644 $srcdir/LICENSE_1_0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+}