PKGBUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. _upstream_pkgbase=adwaita-icon-theme
  6. pkgbase="$_upstream_pkgbase-fake-cursors"
  7. pkgname=(
  8. adwaita-icon-theme
  9. adwaita-fake-cursors
  10. )
  11. pkgver=46.0
  12. pkgrel=1
  13. pkgdesc="GNOME standard icons - patched to make mouse cursors invincible"
  14. url="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
  15. arch=(any)
  16. license=(
  17. CC-BY-SA-3.0
  18. LGPL-3.0-only
  19. )
  20. depends=(
  21. hicolor-icon-theme
  22. gtk-update-icon-cache
  23. librsvg
  24. )
  25. makedepends=(
  26. xorg-xcursorgen
  27. git
  28. gtk3
  29. meson
  30. )
  31. _commit=7d2510820199ff7f233511a00895043f3843dbcd # tags/46.0^0
  32. source=("git+https://gitlab.gnome.org/GNOME/adwaita-icon-theme.git#commit=$_commit"
  33. "git+https://git.noahvogt.com/noah/transparent-xcursor.git")
  34. b2sums=('SKIP' 'SKIP')
  35. pkgver() {
  36. cd $_upstream_pkgbase
  37. git describe --tags | sed -r 's/\.([a-z])/\1/;s/([a-z])\./\1/;s/[^-]*-g/r&/;s/-/+/g'
  38. }
  39. prepare() {
  40. cd $_upstream_pkgbase
  41. }
  42. build() {
  43. arch-meson $_upstream_pkgbase build
  44. meson compile -C build
  45. }
  46. check() {
  47. meson test -C build --print-errorlogs
  48. }
  49. package_adwaita-icon-theme() {
  50. depends+=(adwaita-cursors)
  51. meson install -C build --destdir "$pkgdir"
  52. mkdir -p cursors/usr/share/icons/Adwaita
  53. mv {"$pkgdir",cursors}/usr/share/icons/Adwaita/cursors
  54. }
  55. package_adwaita-fake-cursors() {
  56. pkgdesc="GNOME standard cursors - patched to make mouse cursors invincible"
  57. depends=()
  58. provides=(adwaita-cursors)
  59. conflicts=(adwaita-cursors)
  60. # generate transparent cursor icons
  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. # replace standard cursors with the generated one's
  66. cd "$srcdir"
  67. mv cursors/* "$pkgdir"
  68. # deduplicate cursors
  69. hardlink -c "$pkgdir/usr"
  70. }
  71. # vim:set sw=2 sts=-1 et: