summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65857d018853f24ae55805e84308fa50ed0b33a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Radu Potop <radu at wooptoo dot com>

pkgname=adwaita-icon-theme-41
basename=adwaita-icon-theme
pkgver=41.0
pkgrel=3
pkgdesc="GNOME standard icons, version 41"
url="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
arch=(any)
license=(LGPL3 CCPL:by-sa)
depends=(hicolor-icon-theme gtk-update-icon-cache librsvg)
makedepends=(git gtk3)
provides=(adwaita-icon-theme)
_commit=8670d0eb2414c1ac16d927da5d1a22142ba5e346  # tags/41.0^0
source=("git+https://gitlab.gnome.org/GNOME/adwaita-icon-theme.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $basename
  git describe --tags | sed 's/\.rc/rc/;s/-/+/g'
}

prepare() {
  cd $basename
  autoreconf -fvi
}
  
build() {
  cd $basename
  ./configure --prefix=/usr
  make
}

check() {
  cd $basename
  make check
}

package() {
  cd $basename
  make DESTDIR="$pkgdir" install
  mv -v "${pkgdir}/usr/share/pkgconfig/adwaita-icon-theme.pc" "${pkgdir}/usr/share/pkgconfig/adwaita-icon-theme-41.pc"
  mv -v "${pkgdir}/usr/share/icons/Adwaita" "${pkgdir}/usr/share/icons/Adwaita41"
  sed -i 's/^Name=Adwaita$/Name=Adwaita41/' "${pkgdir}/usr/share/icons/Adwaita41/index.theme"
}