diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-19 10:10:33 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-19 10:10:33 -0300 |
commit | 9e30cea6b8a2e90fd8958ca1f773e3a382179763 (patch) | |
tree | 7ce1eda16c69a04998d595f3bfcccf9a65489327 /community/erlang-cl/PKGBUILD | |
parent | 503317d2f4cb14793d90cca90822975c41e8c0a1 (diff) | |
parent | 858daf289b238f4aa3190656635fc354ddd2bce9 (diff) |
Merge branch 'master' of gparabola:abslibre-mips64el
Conflicts:
social/sobby/PKGBUILD
~fauno/kyotocabinet/PKGBUILD
~fauno/kyototycoon/PKGBUILD
Diffstat (limited to 'community/erlang-cl/PKGBUILD')
-rw-r--r-- | community/erlang-cl/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/erlang-cl/PKGBUILD b/community/erlang-cl/PKGBUILD new file mode 100644 index 000000000..b1d4c62c1 --- /dev/null +++ b/community/erlang-cl/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 61589 2012-01-03 23:37:49Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: kappa <kappacurve@gmail.com> + +pkgname=erlang-cl +pkgver=1.0 +pkgrel=1 +arch=('x86_64' 'i686') +pkgdesc='OpenCL binding for Erlang' +url="http://github.com/tonyrog/cl" +license=('custom:unknown') +depends=('erlang' 'libcl' 'bash') +replaces=('cl') +makedepends=('opencl-headers') +source=("$pkgname-$pkgver.tar.gz::https://nodeload.github.com/tonyrog/cl/tar.gz/master") +sha256sums=('e2cb407489ebe1d8e8f287283eb5c715d559ce95255f6bbcac137cb84c500be6') +_dirname='cl-master' +if [ "$CARCH" = "x86_64" ] +then + _wordsize=64 +else + _wordsize=32 +fi + +build() { + cd "$srcdir/$_dirname/c_src" + + make configure + ./configure --with-wordsize=$_wordsize --prefix=/usr + make all$_wordsize + rm config.* +} + +package() { + cd "$srcdir/$_dirname" + + mkdir -p "$pkgdir/usr/lib/erlang/lib/cl-$pkgver" + cp -r * "$pkgdir/usr/lib/erlang/lib/cl-$pkgver" +} + +# vim:set ts=2 sw=2 et: |