diff options
Diffstat (limited to 'community/nimrod')
-rw-r--r-- | community/nimrod/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community/nimrod/PKGBUILD b/community/nimrod/PKGBUILD new file mode 100644 index 000000000..25b5c4913 --- /dev/null +++ b/community/nimrod/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 96341 2013-08-25 20:41:23Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Dominik Picheta <morfeusz8@gmail.com> +# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> + +pkgname=nimrod +pkgver=0.9.2 +pkgrel=3 +pkgdesc='Imparative, multi-paradigm, compiled programming language' +arch=('x86_64' 'i686') +url='http://nimrod-code.org/' +license=('MIT') +makedepends=('setconf') +source=("http://nimrod-code.org/download/${pkgname}_$pkgver.zip") +options=('!emptydirs') +sha256sums=('4903ff46b90caa61194551f66fdff291b1ecba8bb4eec1611373cd34ecaf7090') + +prepare() { + cd "$pkgname" + + setconf install.sh bindir "$pkgdir/usr/bin" + setconf install.sh configdir "$pkgdir/etc" + setconf install.sh libdir "$pkgdir/usr/lib/$pkgname" + setconf install.sh docdir "$pkgdir/usr/share/doc/$pkgname" + setconf install.sh datadir "$pkgdir/usr/share/$pkgname" +} + +build() { + cd "$pkgname" + + sh build.sh + ./bin/nimrod c -d:release koch + PATH="$PATH":./bin/nimrod ./koch boot -d:release -d:useGnuReadline +} + +package() { + cd "$pkgname" + + install -d "$pkgdir/usr/bin" + install -d "$pkgdir/etc" + install -d "$pkgdir/usr/lib/$pkgname" + install -d "$pkgdir/usr/share/doc/$pkgname" + install -d "$pkgdir/usr/share/$pkgname" + sh install.sh /usr/bin + install -Dm644 copying.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |