summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3fb014d2014cffb2ac293da778fd5b4b426b2fc (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 2023-2024: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Maintainer 2024-: cyqsimon <28627918+cyqsimon@users.noreply.github.com>

pkgname="alacritty-theme-git"
_pkgname="${pkgname%-git}"
epoch=1
pkgver=r219.5f906a4
pkgrel=1
pkgdesc="Collection of Alacritty color schemes."
arch=('any')
url="https://github.com/alacritty/${_pkgname}"
license=('Apache-2.0')
depends=("alacritty")
makedepends=("git")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
b2sums=('SKIP')

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

package() {
  cd "${srcdir}/${_pkgname}"
  _output="${pkgdir}/usr/share/alacritty"
  install -Ddm 755 "${_output}"
  cp -r "themes" "${_output}"
}