summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc9560697625409eafc7038bc0c15846bba481d2 (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
# Maintainer: Raphael Scholer <rascholer@gmail.com>
_pkgname='elementary-xfce'
pkgname="${_pkgname}-icons-git"
pkgver=0.10.r2.g9ff56ee0
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")
options=(!strip)
source=("git+${url}")
sha256sums=('SKIP')

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

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

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

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