diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/dstep | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/dstep')
-rw-r--r-- | community/dstep/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/dstep/PKGBUILD b/community/dstep/PKGBUILD new file mode 100644 index 000000000..cc1e93ea4 --- /dev/null +++ b/community/dstep/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Dicebot <public@dicebot.lv> +pkgname=dstep +pkgver=0.1.0 +pkgrel=1 +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' 'dmd' 'libphobos-devel' 'dtools') +source=( + "git+https://github.com/jacob-carlborg/dstep.git#tag=v$pkgver" + "tango::git+https://github.com/SiegeLord/Tango-D2.git" + "http://www.boost.org/LICENSE_1_0.txt" +) +sha1sums=( + 'SKIP' + 'SKIP' + '3cba29011be2b9d59f6204d6fa0a386b1b2dbd90' +) + +build () +{ + cd $srcdir/tango + ARCH=$CARCH make -f build/Makefile + + cd $srcdir/dstep + git submodule update --init --recursive + rdmd --build-only -debug -gc -ofbin/dstep -Idstack/mambo -Idstack -I$srcdir/tango -L-L$srcdir/tango -I/usr/include/dlang -L-lclang -L-ltango-dmd 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 +} |