summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd6e89db12b3f7be0273ce195970b92a717c065b (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: Greg Land <landjgregory@gmail.com>
pkgname=alacritty-theme-autocomplete-git
pkgrel=1
pkgdesc="Just simple scripts to handle alacritty color schemes."
pkgver=r1.c68ed3e
arch=('any')
url="https://github.com/GregoryLand/alacritty-theme-autocomplete"
license=('MIT')
makedepends=('git')
depends=('alacritty-theme-git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=(!debug)
source=('alacritty-theme-autocomplete::git+https://github.com/GregoryLand/alacritty-theme-autocomplete#branch=master')
noextract=()
sha256sums=('SKIP')

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

package() {
        cd "$srcdir/${pkgname%-git}"
        install -Dm 555 alacritty-theme "$pkgdir/usr/bin/alacritty-theme"
        install -Dm 444 alacritty-themes.bash "$pkgdir/etc/bash_completion.d/alacritty-themes.bash"
}