summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb0b5d12e6775c0366b415a701da247fe8ba0e29 (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: Adrián Pérez de Castro <adrian@perezdecastro.org>
pkgname='vertex-icons-git'
pkgdesc='A Gnome icon theme to match the Vertex Gtk theme'
pkgver=r16.f27e47e
pkgrel=2
url='https://github.com/horst3180/Vertex-Icons/'
depends=('moka-icon-theme-git' 'faba-mono-icons-git')
arch=('any')
license='GPL'
source=("${pkgname}::git://github.com/horst3180/Vertex-Icons.git")
install="${pkgname}.install"
sha512sums=('SKIP')

pkgver () {
	cd "${pkgname}"
	( set -o pipefail
	  git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
	  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

package () {
	cd "${pkgname}"
	install -dm755 "${pkgdir}/usr/share/icons/Vertex-Icons"
	for i in * ; do
		if [[ -d ${i} ]] ; then
			echo "Installing: ${i}..."
			cp -r "${i}" "${pkgdir}/usr/share/icons/Vertex-Icons"
		fi
	done
	install -Dm644 index.theme \
		"${pkgdir}/usr/share/icons/Vertex-Icons/index.theme"
}