summaryrefslogtreecommitdiff
path: root/community/erlang-cl
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-16 01:35:29 -0800
committerroot <root@rshg054.dnsready.net>2012-11-16 01:35:29 -0800
commit73cd7952c96190212616ca90d5afe1ce5cb2c9ce (patch)
tree274972d0d967441e136af716dd87f3cee0cee7f2 /community/erlang-cl
parent130aa30d45bf33a5ce926be8697a0e0c077cdc22 (diff)
Fri Nov 16 01:34:04 PST 2012
Diffstat (limited to 'community/erlang-cl')
-rw-r--r--community/erlang-cl/PKGBUILD41
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: