PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
  2. # Contributor: Lukas Fleischer <lfleischer@archlinux.org>
  3. # Contributor: Jan de Groot <jgc@archlinux.org>
  4. pkgbase=adwaita-icon-theme
  5. pkgname=(adwaita-icon-theme adwaita-cursors)
  6. pkgver=43
  7. pkgrel=2
  8. pkgdesc="GNOME standard icons"
  9. url="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
  10. arch=(any)
  11. license=(LGPL3 CCPL:by-sa)
  12. depends=(hicolor-icon-theme gtk-update-icon-cache librsvg)
  13. makedepends=(git gtk3)
  14. _commit=3ea65342a846b2b29fe6feedcd13e2ecc5b5c2b2 # tags/43^0
  15. source=("git+https://gitlab.gnome.org/GNOME/adwaita-icon-theme.git#commit=$_commit")
  16. sha256sums=('SKIP')
  17. pkgver() {
  18. cd $pkgname
  19. git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
  20. }
  21. prepare() {
  22. cd $pkgname
  23. autoreconf -fvi
  24. }
  25. build() {
  26. cd $pkgname
  27. ./configure --prefix=/usr
  28. make
  29. }
  30. check() {
  31. cd $pkgname
  32. make check
  33. }
  34. package_adwaita-icon-theme() {
  35. depends+=(adwaita-cursors)
  36. make -C $pkgname DESTDIR="$pkgdir" install
  37. mkdir -p cursors/usr/share/icons/Adwaita
  38. mv {"$pkgdir",cursors}/usr/share/icons/Adwaita/cursors
  39. }
  40. package_adwaita-cursors() {
  41. pkgdesc="GNOME standard cursors"
  42. depends=()
  43. mv cursors/* "$pkgdir"
  44. }
  45. # vim:set sw=2 sts=-1 et: