2018-09-29 17:17:35 +00:00
|
|
|
# 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
|
2023-03-12 17:58:59 +00:00
|
|
|
pkgrel=6
|
2021-05-12 13:56:20 +00:00
|
|
|
arch=(x86_64)
|
2018-09-29 17:17:35 +00:00
|
|
|
pkgdesc='OpenCL binding for Erlang'
|
|
|
|
url='https://github.com/tonyrog/cl'
|
2021-05-12 13:56:20 +00:00
|
|
|
license=(MIT)
|
|
|
|
replaces=(cl)
|
|
|
|
depends=(erlang opencl-icd-loader)
|
|
|
|
makedepends=(git opencl-headers rebar)
|
|
|
|
source=("git+$url#commit=f0a5631fdcf4e1c56e6bf1568c6c2c8fff0d66df") # tag: cl-1.2.4
|
|
|
|
b2sums=(SKIP)
|
2018-09-29 17:17:35 +00:00
|
|
|
|
|
|
|
prepare() {
|
2021-05-12 13:56:20 +00:00
|
|
|
cd cl
|
2018-09-29 17:17:35 +00:00
|
|
|
sed -i -e 's/ -m32//' -e 's/ -m64//' c_src/Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-05-12 13:56:20 +00:00
|
|
|
cd cl
|
2022-01-30 15:55:36 +00:00
|
|
|
CFLAGS+=' -D_FORTIFY_SOURCE=2 -fPIE'
|
2018-09-29 17:17:35 +00:00
|
|
|
rebar compile
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-05-12 13:56:20 +00:00
|
|
|
cd cl
|
2018-09-29 17:17:35 +00:00
|
|
|
install -d "$pkgdir/usr/lib/erlang/lib/cl-$pkgver"
|
2021-05-12 13:56:20 +00:00
|
|
|
cp -r * "$pkgdir/usr/lib/erlang/lib/cl-$pkgver/"
|
2018-09-29 17:17:35 +00:00
|
|
|
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|