summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdb64d1b021ce2f2a386ee6caf4e51ce259f0da2 (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
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=dracula-xresources
pkgname=$_pkgname-git
pkgver=r10.8de1197
pkgrel=1
pkgdesc="Dark theme for X11 applications"
arch=('any')
url="https://draculatheme.com/xresources"
license=('MIT')
groups=('dracula-theme')
makedepends=('git')
optdepends=('xorg-xrdb')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://github.com/dracula/xresources.git")
b2sums=('SKIP')

pkgver() {
	cd $_pkgname
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd $_pkgname
	# shellcheck disable=SC2154
	install -Dm644 Xresources "$pkgdir"/etc/X11/xinit/.Xresources.d/dracula
	install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}