mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
added community/erlang-cl
This commit is contained in:
parent
a51bf3192f
commit
92a8fc6738
1 changed files with 40 additions and 0 deletions
40
community/erlang-cl/PKGBUILD
Normal file
40
community/erlang-cl/PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
||||
# Contributor: kappa <kappacurve@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - strip -m32 and -m64 flags from makefile
|
||||
|
||||
pkgname=erlang-cl
|
||||
pkgver=1.2.4
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
pkgdesc='OpenCL binding for Erlang'
|
||||
url='https://github.com/tonyrog/cl'
|
||||
license=('MIT')
|
||||
depends=('erlang' 'opencl-icd-loader')
|
||||
replaces=('cl')
|
||||
makedepends=('git' 'opencl-headers' 'rebar')
|
||||
source=("$pkgname::git+https://github.com/tonyrog/cl.git#tag=cl-$pkgver")
|
||||
md5sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
|
||||
sed -i -e 's/ -m32//' -e 's/ -m64//' c_src/Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
|
||||
rebar compile
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
|
||||
install -d "$pkgdir/usr/lib/erlang/lib/cl-$pkgver"
|
||||
cp -r * "$pkgdir/usr/lib/erlang/lib/cl-$pkgver"
|
||||
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et:
|
Loading…
Reference in a new issue