diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-02 03:37:03 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-02 03:37:03 +0000 |
commit | 747fac818a9021f876837c839ce15c301b7e229f (patch) | |
tree | f50f6f3b835a9aaa7ef6dc95db88643235ae314d /community/nimrod/PKGBUILD | |
parent | 255df859dede38865f63ae0dd0633a4ea4fe9cac (diff) |
Fri May 2 03:33:02 UTC 2014
Diffstat (limited to 'community/nimrod/PKGBUILD')
-rw-r--r-- | community/nimrod/PKGBUILD | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/community/nimrod/PKGBUILD b/community/nimrod/PKGBUILD index 34459b89d..5fcba4933 100644 --- a/community/nimrod/PKGBUILD +++ b/community/nimrod/PKGBUILD @@ -1,44 +1,39 @@ -# $Id: PKGBUILD 108697 2014-04-01 13:44:04Z arodseth $ +# $Id: PKGBUILD 110486 2014-04-30 23:43:57Z 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=4 +pkgver=0.9.4 +pkgrel=1 pkgdesc='Imperative, 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") +makedepends=('git') options=('!emptydirs') -sha256sums=('4903ff46b90caa61194551f66fdff291b1ecba8bb4eec1611373cd34ecaf7090') +source=("$pkgname::git://github.com/Araq/${pkgname/n/N}.git") +md5sums=('SKIP') 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" + git clone git://github.com/nimrod-code/csources --depth=1 } build() { - cd "$pkgname" - + cd "$pkgname/csources" sh build.sh - ./bin/nimrod c -d:release koch - PATH="$PATH":./bin/nimrod ./koch boot -d:release -d:useGnuReadline + cd .. + ./bin/nimrod c koch + PATH="$PATH":./bin/nimrod ./koch boot -d:release } package() { - cd "$pkgname" - - install -d "$pkgdir/"{etc,usr/{bin,"lib/$pkgname",share/{"doc/$pkgname","$pkgname"}}} - sh install.sh /usr/bin - install -Dm644 copying.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 "$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "$pkgname/copying.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -d "$pkgdir/usr/lib/$pkgname" + cp -r "$pkgname/" "$pkgdir/usr/lib/" + rm -r "$pkgdir/usr/lib/$pkgname/"{bin,csources,.git} } # vim:set ts=2 sw=2 et: |