# Tanım: OpenCL binding for Erlang
# URL: http://github.com/tonyrog/cl
# Paketçi: milisarge
# Gerekler: opencl-headers rebar3 erlang ocl-icd
# Grup: 

isim=erlang-cl
surum=1.2.3
devir=1
kaynak=(https://github.com/tonyrog/cl/archive/cl-1.2.3.tar.gz::erlang-cl-$surum.tar.gz)

derle() {
  cd "cl-cl-$surum"
  rebar3 compile
  mkdir -p "$PKG/usr/lib/erlang/lib/cl-$surum"
  cp -r * "$PKG/usr/lib/erlang/lib/cl-$surum"
  install -Dm644 COPYRIGHT "$PKG/usr/share/licenses/$isim/LICENSE"
}
