diff options
author | Ivan Shapovalov | 2016-07-01 03:09:09 +0300 |
---|---|---|
committer | Ivan Shapovalov | 2016-07-01 03:09:09 +0300 |
commit | b94002939ac3d7093be1d2837d1ea8b36ea2c8ff (patch) | |
tree | 2097edaed8324ab2cef2da969c46bf16fa1017db /PKGBUILD | |
parent | 8a889b16f1a7d6945f21cc10eca4a75bf9e5bd6d (diff) | |
download | aur-b94002939ac3d7093be1d2837d1ea8b36ea2c8ff.tar.gz |
Rename to -git package, bump version, fix pkgver.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -1,7 +1,8 @@ -# Maintainer: Zanny <lordzanny@gmail.com> +# Maintainer: Ivan Shapovalov <intelfx@intelfx.name> +# Contributor: Zanny <lordzanny@gmail.com> -pkgname=clinfo -pkgver=2.0.15.03.24 +pkgname=clinfo-git +pkgver=2.1.16.01.12.r2.g271b884 pkgrel=1 pkgdesc="Print all known information about all available OpenCL platforms and devices in the system" arch=(i686 x86_64) @@ -15,19 +16,19 @@ replaces=(clinfo) source=(git+https://github.com/oblomov/clinfo.git) md5sums=('SKIP') -pkgver() { - cd ${srcdir}/${pkgname} - echo $(git describe --tags | cut -f1 -d"-") +function pkgver() { + cd clinfo + git describe --long --tags | sed 's/-/.r/;s/-/./' } build() { - cd ${srcdir}/${pkgname} - make + cd clinfo + make } package() { - cd ${srcdir}/${pkgname} - install -D -m755 clinfo "${pkgdir}/usr/bin/clinfo" - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -D -m644 man/clinfo.1 "${pkgdir}/usr/share/man/man1/clinfo.1" -}
\ No newline at end of file + cd clinfo + install -D -m755 clinfo "${pkgdir}/usr/bin/clinfo" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m644 man/clinfo.1 "${pkgdir}/usr/share/man/man1/clinfo.1" +} |