# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=clinfo
pkgver=3.0.23.01.25
pkgrel=1
pkgdesc="Simple OpenCL application that enumerates all available platform and device properties"
arch=(x86_64)
url="https://github.com/Oblomov/clinfo"
license=('custom:Public Domain')
depends=(opencl-icd-loader)
makedepends=(opencl-headers)
source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('6dcdada6c115873db78c7ffc62b9fc1ee7a2d08854a3bccea396df312e7331e3')

build() {
  cd ${pkgname}-${pkgver}
  make
}

package() {
  cd ${pkgname}-${pkgver}
  install -Dm755 clinfo -t "${pkgdir}"/usr/bin/
  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
  install -Dm644 man1/clinfo.1 -t "${pkgdir}"/usr/share/man/man1/
}
