summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad1b9bf5f13676d5cae631391af6307058383919 (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
# Maintainer: Mazhar Hussain <realmazharhussain@gmail.com>
pkgname=gnomish-icons-git
pkgver=r25.27a06b4
pkgrel=1
pkgdesc="Alternate versions of icons that look ugly on GNOME"
arch=(any)
url="https://github.com/realmazharhussain/gnomish-icons"
license=('custom')
depends=(adwaita-icon-theme)
provides=(gnomish-icons)
conflicts=(gnomish-icons)
source=("$pkgname"::"git+$url")
md5sums=(SKIP)

pkgver() {
  cd "$srcdir/$pkgname"
  echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd "$srcdir/$pkgname"

  DESTDIR="$pkgdir" ./install.sh /usr/share/icons

  mkdir -p "$pkgdir"/usr/share/licenses/"$pkgname"
  cp -rt "$pkgdir"/usr/share/licenses/"$pkgname"/ licenses LICENSE.md Credits.md
  ln -st "$pkgdir"/usr/share/licenses/"$pkgname"/ /usr/share/icons/Gnomish/{regular,symbolic}
}