aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 179096e663f66166e44d68c8d6f3b996e8a1f766 (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
# Maintainer: Raphael Scholer <rscholer@gmx.de>

pkgname=elementary-xfce-icons-git
pkgver=git
pkgrel=1
pkgdesc='Elementary icon-theme with improved Xfce support'
arch=('any')
url='https://github.com/shimmerproject/elementary-xfce'
license=('GPL2')
makedepends=('git')
depends=('gtk-update-icon-cache')
conflicts=('elementary-xfce-icons')
install=elementary-xfce-icons-git.install
source=("$pkgname::git+https://github.com/shimmerproject/elementary-xfce")
md5sums=('SKIP')

pkgver() {
	cd $pkgname
	echo "$(git describe --always |sed 's#-#_#g;s#v##')"
}

package() {
	mkdir -p "${pkgdir}/usr/share/icons"

	cd $pkgname
	find ./ -type d -name "elementary-xfce*" -execdir cp -r {} "${pkgdir}/usr/share/icons/" \;

	cd "${pkgdir}/usr/share/icons"
	find ./ -type f \( \
						-name "AUTHORS" \
						-o -name "CONTRIBUTORS" \
						-o -name "LICENSE" \
					\) \
		-delete
}