PKGBUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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-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. git
  26. gtk3
  27. meson
  28. )
  29. _commit=709725baa9e17e8d0ca62eab7920162bfeda37b9 # tags/45.0^0
  30. source=("git+https://gitlab.gnome.org/GNOME/adwaita-icon-theme.git#commit=$_commit")
  31. b2sums=('SKIP')
  32. pkgver() {
  33. cd $pkgbase
  34. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  35. }
  36. prepare() {
  37. cd $pkgbase
  38. # rm unused and problematic .icon-theme.cache.
  39. git cherry-pick -n 32affe610606b3a550c2953993a72063eb2b7381
  40. }
  41. build() {
  42. arch-meson $pkgbase build
  43. meson compile -C build
  44. }
  45. check() {
  46. meson test -C build --print-errorlogs
  47. }
  48. package_adwaita-icon-theme() {
  49. depends+=(adwaita-cursors)
  50. meson install -C build --destdir "$pkgdir"
  51. mkdir -p cursors/usr/share/icons/Adwaita
  52. mv {"$pkgdir",cursors}/usr/share/icons/Adwaita/cursors
  53. }
  54. package_adwaita-cursors() {
  55. pkgdesc="GNOME standard cursors"
  56. depends=()
  57. mv cursors/* "$pkgdir"
  58. # deduplicate cursors
  59. hardlink -c "$pkgdir/usr"
  60. }
  61. # vim:set sw=2 sts=-1 et: