summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4af9499c009b4e035e1244613a5d8b979c8b9ebf (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
# Maintainer: Allddd <allddd (at) proton (dot) me>
pkgname=dracula-rofi-git
pkgver=r27.05618ac
pkgrel=1
pkgdesc='Dark theme for Rofi'
arch=('any')
url='https://draculatheme.com/rofi'
license=('MIT')
makedepends=('git')
optdepends=('rofi')
source=("${pkgname}::git+https://github.com/dracula/rofi.git")
sha256sums=('SKIP')
install=${pkgname}.install

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

package() {
	cd ${pkgname}
	list=$(find ./theme/ -type f -name '*.rasi')
	for conf in ${list}; do
		num=$(printf ${conf} | sed 's/[^0-9]*//g')
		install -Dm644 "${conf}" "${pkgdir}/usr/share/rofi/themes/dracula${num}.rasi"
	done
}