community/erlang-cl to 1.2.4-3

This commit is contained in:
Kevin Mihelich 2021-05-12 13:56:20 +00:00
parent 86d6be4835
commit 0fe614f1dc

View file

@ -6,35 +6,30 @@
pkgname=erlang-cl pkgname=erlang-cl
pkgver=1.2.4 pkgver=1.2.4
pkgrel=2 pkgrel=3
arch=('x86_64') arch=(x86_64)
pkgdesc='OpenCL binding for Erlang' pkgdesc='OpenCL binding for Erlang'
url='https://github.com/tonyrog/cl' url='https://github.com/tonyrog/cl'
license=('MIT') license=(MIT)
depends=('erlang' 'opencl-icd-loader') replaces=(cl)
replaces=('cl') depends=(erlang opencl-icd-loader)
makedepends=('git' 'opencl-headers' 'rebar') makedepends=(git opencl-headers rebar)
source=("$pkgname::git+https://github.com/tonyrog/cl.git#tag=cl-$pkgver") source=("git+$url#commit=f0a5631fdcf4e1c56e6bf1568c6c2c8fff0d66df") # tag: cl-1.2.4
md5sums=('SKIP') b2sums=(SKIP)
prepare() { prepare() {
cd "$pkgname" cd cl
sed -i -e 's/ -m32//' -e 's/ -m64//' c_src/Makefile sed -i -e 's/ -m32//' -e 's/ -m64//' c_src/Makefile
} }
build() { build() {
cd "$pkgname" cd cl
rebar compile rebar compile
} }
package() { package() {
cd "$pkgname" cd cl
install -d "$pkgdir/usr/lib/erlang/lib/cl-$pkgver" install -d "$pkgdir/usr/lib/erlang/lib/cl-$pkgver"
cp -r * "$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" install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
} }
# vim: ts=2 sw=2 et: