diff options
author | Ruben Van Boxem | 2015-07-09 10:31:38 +0200 |
---|---|---|
committer | Ruben Van Boxem | 2015-07-09 10:31:38 +0200 |
commit | 49393b042cfffcd812f973072ccd38cabbd890e2 (patch) | |
tree | 93a7dcf31087f2d5034f20455ee2b45ba359df18 | |
download | aur-49393b042cfffcd812f973072ccd38cabbd890e2.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8d6ab76b8147 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = clfft + pkgdesc = A software library containing FFT functions written in OpenCL + pkgver = 2.4 + pkgrel = 2 + url = https://github.com/clMathLibraries/clFFT + arch = i686 + arch = x86_64 + license = APACHE + checkdepends = fftw + checkdepends = gtest + makedepends = opencl-headers + makedepends = cmake + depends = libcl + source = https://github.com/clMathLibraries/clFFT/archive/v2.4.tar.gz + md5sums = 32f1c5e18d0827550a96ac5f0d369120 + sha512sums = 3450f3ee962e1722c765e962178c57df0bf298508603ac5b4ec12bd6396dc10279136d5b91383b9da56d95cebd0e552bf78e2c01ccaeb8cd43ed947b7d536209 + +pkgname = clfft + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..649e4b3d1d0c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: rubenvb <vanboxem.ruben@gmail.com> +# Contributor: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com> + +pkgname=clfft +pkgver=2.4 +pkgrel=2 +pkgdesc="A software library containing FFT functions written in OpenCL" +arch=("i686" "x86_64") +url="https://github.com/clMathLibraries/clFFT" +license=('APACHE') +depends=('libcl') +makedepends=('opencl-headers' 'cmake') +checkdepends=('fftw' 'gtest') + +source=("https://github.com/clMathLibraries/clFFT/archive/v${pkgver}.tar.gz") +md5sums=('32f1c5e18d0827550a96ac5f0d369120') +sha512sums=('3450f3ee962e1722c765e962178c57df0bf298508603ac5b4ec12bd6396dc10279136d5b91383b9da56d95cebd0e552bf78e2c01ccaeb8cd43ed947b7d536209') + +if [ "$CARCH" == "x86_64" ]; then +_bits=64 +elif [ "$CARCH" == "i686" ]; then +_bits=32 +fi + +build() { + mkdir -p "${srcdir}/build" + cd "${srcdir}/build" + echo `pwd` + cmake -DCMAKE_BUILD_TYPE=Release "../clFFT-${pkgver}/src" + make +} + +check() { + cd "${srcdir}/build" + make check +} + +package() { + cd "${srcdir}/build" + make install DESTDIR=${pkgdir}/usr + rm -rf "${pkgdir}/usr/bin" + mv "${pkgdir}/usr/lib${_bits}" "${pkgdir}/usr/lib" + rm "${pkgdir}/usr/lib/libStatTimer.so" +} |