blob: 31bde3981797056590e481bfc888e0df40d09b19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
pkgname=aparapi
pkgver=1.0.0
pkgrel=2
pkgdesc="Syncleus's GPGPU API for data parallel Java. Uses OpenCL."
url="https://github.com/Syncleus/aparapi-jni"
arch=('i686' 'x86_64')
license=('Apache')
groups=('amdapp')
depends=('java-environment')
makedepends=('gzip')
provides=('aparapi')
install='aparapi.install'
source=( 'aparapi.sh')
md5sums=('94bfab19f10cde995aecd15ff42487a7')
source+=( 'aparapi.conf')
md5sums+=('a7e04cc30d00498ff733af771b721dca')
source+=(https://github.com/Syncleus/aparapi-jni/releases/download/v${pkgver}/libaparapi-${pkgver}-linux.tar.gz)
md5sums+=('cc28497f3befd355e4636c333ac6b9ab')
package() {
mkdir -p "$pkgdir"/{opt/AMDAPP/aparapi/lib,etc/profile.d,etc/ld.so.conf.d}
cd ${srcdir}
install -m755 aparapi.sh "$pkgdir/etc/profile.d/"
cd ${srcdir}
install -m644 aparapi.conf "$pkgdir/etc/ld.so.conf.d/"
cd libaparapi-${pkgver}
if [ "${CARCH}" = "i686" ]; then
install -m755 libaparapi_x86.so "$pkgdir/opt/AMDAPP/aparapi/lib"
elif [ "${CARCH}" = "x86_64" ]; then
install -m755 libaparapi_x86_64.so "$pkgdir/opt/AMDAPP/aparapi/lib"
fi
}
|