updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / coprthr / PKGBUILD
blob7f2cebebd2164707b2e54b13f8766af3a87ea9ed
1 # Maintainer: YL3DY <yl3gdy at archlinux dot us>
3 pkgname=coprthr
4 pkgver=1.2.0
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 url="http://www.browndeertechnology.com/coprthr.htm"
8 license=('LGPL')
9 depends=('opencl-headers' 'libcl')
10 provides=('libstdcl')
11 source=("https://github.com/browndeer/${pkgname}/tarball/v${pkgver}-rc1")
12 md5sums=('deeeee35ab582a532c303056a52b8f05')
14 pkgdesc="The CO-PRocessing THReads (COPRTHR) SDK provides several OpenCL-related libraries and tools."
16 build() {
17   cd $srcdir/browndeer-${pkgname}-bac0c8a
19   ./configure --prefix=/usr \
20               --disable-libocl 
21    make MAKE=make
24 package() {
25   cd $srcdir/browndeer-${pkgname}-bac0c8a/
26   make MAKE=make prefix="$pkgdir/usr/" install
28   cd $pkgdir
29   mkdir -p usr/share/$pkgname
31   mv usr/install-message.txt usr/share/$pkgname
32   rm -r usr/include/CL
34   # tidy docs and examples
35   mv usr/doc/ usr/share/$pkgname/
36   mv usr/examples/ usr/share/$pkgname/
37   mv usr/test/ usr/share/$pkgname/
39   # align test makefile
40   sed 's/gmake/make/g' usr/share/$pkgname/test/Makefile > tmp
41   mv tmp usr/share/$pkgname/test/Makefile
42   sed 's/gmake/make/g' usr/share/$pkgname/test/Makefile.in > tmp
43   mv tmp usr/share/$pkgname/test/Makefile.in