summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ed3d748e3aa2c353062e4680c106c2b98b7ec80 (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
# Maintainer: steeltitanium <steeltitanium1 at gmail dot com>
# Contributor: steeltitanium <steeltitanium1 at gmail dot com>

_name=delta-icon-theme
pkgname=${_name}-git
pkgver=r85.3fa71b7
pkgrel=1
pkgdesc="Matted out icon pack for Linux."
arch=('any')
license=('CC-BY-NC-SA-4.0')
url="https://delta-icons.github.io/"
depends=('gtk-update-icon-cache' 'hicolor-icon-theme')
makedepends=('git')
provides=("${_name}")
conflicts=("${_name}")
source=("delta-icons-linux::git+https://github.com/Delta-Icons/linux.git"
	"license.txt")
sha256sums=('SKIP'
            '38762e3777f4ec00a6f769062a7c3f704fb78ce08303ecff88558da4c49cf9ea')
pkgver() {
	cd "$srcdir/delta-icons-linux"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
	install -dm 755 "$pkgdir"/usr/share/icons
	install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${_name}/license.txt"
	cp -dr --no-preserve='ownership' "delta-icons-linux/Delta" "$pkgdir"/usr/share/icons/
}