PKGBUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Maintainer: Fabian Bornschein <fabiscafe-at-mailbox-dot-org>
  2. # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
  3. # Contributor: Lukas Fleischer <lfleischer@archlinux.org>
  4. # Contributor: Jan de Groot <jgc@archlinux.org>
  5. pkgbase=adwaita-icon-theme
  6. pkgname=(
  7. adwaita-icon-theme
  8. adwaita-fake-cursors
  9. )
  10. pkgver=45.0
  11. pkgrel=1
  12. pkgdesc="GNOME standard icons"
  13. url="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
  14. arch=(any)
  15. license=(
  16. CCPL:by-sa
  17. LGPL3
  18. )
  19. depends=(
  20. hicolor-icon-theme
  21. gtk-update-icon-cache
  22. librsvg
  23. )
  24. makedepends=(
  25. xorg-xcursorgen
  26. git
  27. gtk3
  28. meson
  29. )
  30. _commit=709725baa9e17e8d0ca62eab7920162bfeda37b9 # tags/45.0^0
  31. source=("git+https://gitlab.gnome.org/GNOME/adwaita-icon-theme.git#commit=$_commit"
  32. "git+https://git.noahvogt.com/noah/transparent-xcursor.git")
  33. b2sums=('SKIP' 'SKIP')
  34. pkgver() {
  35. cd $pkgbase
  36. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  37. }
  38. prepare() {
  39. cd $pkgbase
  40. # rm unused and problematic .icon-theme.cache.
  41. git cherry-pick -n 32affe610606b3a550c2953993a72063eb2b7381
  42. }
  43. build() {
  44. arch-meson $pkgbase build
  45. meson compile -C build
  46. }
  47. check() {
  48. meson test -C build --print-errorlogs
  49. }
  50. package_adwaita-icon-theme() {
  51. depends+=(adwaita-cursors)
  52. meson install -C build --destdir "$pkgdir"
  53. mkdir -p cursors/usr/share/icons/Adwaita
  54. mv {"$pkgdir",cursors}/usr/share/icons/Adwaita/cursors
  55. }
  56. package_adwaita-fake-cursors() {
  57. pkgdesc="GNOME standard cursors"
  58. depends=()
  59. provides=(adwaita-cursors)
  60. conflicts=(adwaita-cursors)
  61. cd "$srcdir"/transparent-xcursor
  62. for f in "$srcdir"/cursors/usr/share/icons/Adwaita/cursors/*; do
  63. xcursorgen transparent.cfg "$f"
  64. done
  65. cd "$srcdir"
  66. mv cursors/* "$pkgdir"
  67. # deduplicate cursors
  68. hardlink -c "$pkgdir/usr"
  69. }
  70. # vim:set sw=2 sts=-1 et: