Date: Saturday, May 16, 2020 @ 20:53:24
  Author: felixonmars
Revision: 384842

archrelease: copy trunk to staging-x86_64

Added:
  ocl-icd/repos/staging-x86_64/
  ocl-icd/repos/staging-x86_64/PKGBUILD
    (from rev 384841, ocl-icd/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: ocl-icd/repos/staging-x86_64/PKGBUILD (from rev 384841, 
ocl-icd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2020-05-16 20:53:24 UTC (rev 384842)
@@ -0,0 +1,46 @@
+# Maintainer: Laurent Carlier <[email protected]>
+# Contributor: Lukas Jirkovsky <[email protected]>
+
+pkgname=ocl-icd
+pkgver=2.2.12
+pkgrel=4
+pkgdesc="OpenCL ICD Bindings"
+arch=('x86_64')
+url="https://github.com/OCL-dev/ocl-icd";
+license=('BSD')
+depends=('glibc')
+makedepends=('ruby' 'mesa' 'xmlto' 'asciidoc' 'opencl-headers>=2.1')
+checkdepends=()
+provides=('opencl-icd-loader')
+conflicts=('libcl')
+replaces=('libcl')
+optdepends=('opencl-driver: packaged opencl driver')
+source=(https://github.com/OCL-dev/${pkgname}/archive/v${pkgver}.tar.gz)
+sha256sums=('17500e5788304eef5b52dbe784cec197bdae64e05eecf38317840d2d05484272')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  autoreconf -fiv
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  CFLAGS+=' -fcommon' # 
https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make -k check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install
+
+  install -m755 -d "$pkgdir/usr/share/licenses/ocl-icd"
+  install -m644 "$srcdir/$pkgname-$pkgver/COPYING" 
"${pkgdir}/usr/share/licenses/ocl-icd/"
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to