Guest User

Untitled

a guest
Dec 28th, 2017
421
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From 07ca29de2a4fb6b04df8803fa77f61066a4a257b Mon Sep 17 00:00:00 2001
  2. From: Tilman Blumenbach <tilman+git@ax86.net>
  3. Date: Thu, 28 Dec 2017 16:12:09 +0100
  4. Subject: [PATCH] Build cursors from source.
  5.  
  6. opendesktop.org generates temporary download URLs, so we cannot easily
  7. download the binary package provided by upstream anymore.
  8. ---
  9. PKGBUILD | 29 ++++++++++++++++++++++-------
  10.  1 file changed, 22 insertions(+), 7 deletions(-)
  11.  
  12. diff --git a/PKGBUILD b/PKGBUILD
  13. index 67723c5..4fb5e6e 100644
  14. --- a/PKGBUILD
  15. +++ b/PKGBUILD
  16. @@ -1,19 +1,34 @@
  17.  # Maintainer: Davorin Učakar <davorin.ucakar@gmail.com>
  18. +# Contributor: Tilman Blumenbach <tilman+aur@ax86.net>
  19.  
  20.  pkgname=xcursor-openzone
  21.  pkgver=1.2.6
  22. -pkgrel=1
  23. +pkgrel=2
  24.  pkgdesc="OpenZone X11 cursor theme"
  25.  url='https://www.opendesktop.org/p/999999/'
  26.  arch=('any')
  27. +makedepends=('icon-slicer')
  28.  license=('custom:xcursor-openzone')
  29. -source=('https://dl.opendesktop.org/api/files/downloadfile/id/1514377984/s/9f5df49ae77e446a49c724de84f97fb3/t/1514381703/OpenZone-1.2.6.tar.xz')
  30. -md5sums=('45913005bad7180d001642cc0452354a')
  31. +source=("repo::git+https://github.com/ducakar/openzone-cursors.git#tag=v${pkgver:?}")
  32. +sha384sums=('SKIP')
  33. +
  34. +build() {
  35. +  cd repo
  36. +  make
  37. +}
  38.  
  39.  package() {
  40. -  install -D -d -m755 ${pkgdir}/usr/share/icons
  41. -  for theme in Black Black_Slim White White_Slim Ice Ice_Slim Fire Fire_Slim; do
  42. -    tar xf ${srcdir}/openzone-cursors/OpenZone_${theme}-${pkgver}.tar.xz -C ${pkgdir}/usr/share/icons
  43. +  cd repo
  44. +
  45. +  # The "build" step created a number of tarballs, each containing a variant of this cursor
  46. +  # theme.
  47. +  mkdir -p "${pkgdir:?}/usr/share/icons"
  48. +  for archive in OpenZone_*.tar.*; do
  49. +    tar xf "${archive:?}" -C "${pkgdir:?}/usr/share/icons"
  50.    done
  51. -  install -D -m644 ${srcdir}/openzone-cursors/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
  52. +
  53. +  # Install the license:
  54. +  install -D -m644 COPYING "${pkgdir:?}/usr/share/licenses/${pkgname:?}/COPYING"
  55.  }
  56. +
  57. +# vim: ts=2 sw=2 et
  58. --
  59. 2.15.1
RAW Paste Data