summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4c55817f159d97552653ba37c19db3c76d7589b (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
# Maintainer: Davide Depau <davide@depau.eu>

pkgname=ant-dracula-gtk-theme
pkgver=1.3.0
pkgrel=1
pkgdesc="Ant Dracula Theme for GTK 3.x"
arch=(any)
url=https://github.com/EliverLara/Ant-Dracula
depends=('gtk3')
conflicts=($pkgname ant-dracula-theme ant-dracula-theme-git)
replaces=($pkgname ant-dracula-theme ant-dracula-theme-git)
options=(!strip)

# Hash and Timestamp (taken from macos-icon-theme pkgbuild)
_p="var \(hash = '\(.*\)\|timetamp = '\(.*\)\)';"
read _s _t <<< $(echo -n $(curl -s $url | sed -n "s/$_p/\2\3/p"))

source=("https://github.com/EliverLara/Ant-Dracula/archive/v$pkgver.tar.gz")
sha256sums=('5de816ebdcdc5cccf02c8965bf7a38e0a9718a769e274505bcf3809d3ce6ece8')

package(){
	cd "$srcdir"
    mv "Ant-Dracula-$pkgver" "Ant-Dracula"
	find */ -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/themes/{}" \;
}