diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-16 22:03:54 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-16 22:03:54 +0100 |
commit | d503056ff0810f0e9a4d7430dd9a99ef666240d9 (patch) | |
tree | ce61331f893f95b1d3ae90eb3ea8e00adf2aa546 /community/erlang-cl/PKGBUILD | |
parent | 0f2c3b17c081339b0c78fc54aa64a13a6b7e7c6e (diff) | |
parent | 99c34471cedb5de3afae4e33c48239abbe1410c7 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/gtk-engine-unico/PKGBUILD
community/libfm/PKGBUILD
community/lxlauncher/PKGBUILD
community/lxpanel/PKGBUILD
community/ncmpcpp/PKGBUILD
community/sshguard/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: |