summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8777b103d4642fd68e4c076f581b9d000a8a7d1a (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
# Maintainer: Raphael Scholer <rascholer@gmail.com>
_pkgname=elementary-xfce
pkgname=${_pkgname}-icons-git
pkgver=0.8.r0.g72cf0cd6
pkgrel=1
pkgdesc='Elementary icon-theme with improved Xfce support'
arch=('any')
url="https://github.com/shimmerproject/${_pkgname}"
license=('GPL2')
makedepends=('git')
depends=('adwaita-icon-theme')
conflicts=("${_pkgname}-icons")
provides=("${_pkgname}-icons")
options=(!strip)
source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  install -m 755 -d "${pkgdir}/usr/share/icons"

  cd "${_pkgname}"
  cp -r elementary-xfce{,-dark{,er,est}} "${pkgdir}/usr/share/icons/"

  # Remove unneeded files
  cd "${pkgdir}/usr/share/icons"
  rm elementary-xfce{,-dark{,er,est}}/{AUTHORS,CONTRIBUTORS,LICENSE}
}
# vim:set ts=2 sw=2 et: