summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b8cd0f08e2f14191a50ca24e9291d94a1f12d92 (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
31
# Maintainer: Jeremy Asuncion <jeremyasuncion808@gmail.com>
  
pkgname=refind-theme-regular-git
pkgver=r67.11300ef
pkgrel=1
pkgdesc="A simplistic clean and minimal theme for rEFInd"
arch=(any)
url="https://github.com/bobafetthotmail/refind-theme-regular"
license=(AGPL3 custom:OFL 'custom:Ubuntu Font License 1.0')
depends=(refind)
makedepends=(git)
backup=(boot/EFI/refind/themes/refind-theme-regular/theme.conf)
source=(git+$url)
md5sums=(SKIP)

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

package() {
   # Specify path to the refind directory
  _refind_home="$pkgdir/boot/EFI/refind/themes"

  install -D "$srcdir/${pkgname%-git}/theme.conf" "$_refind_home/${pkgname%-git}/theme.conf"
  cp -r "$srcdir/${pkgname%-git}/fonts" "$_refind_home/${pkgname%-git}"
  cp -r "$srcdir/${pkgname%-git}/icons" "$_refind_home/${pkgname%-git}"

  warning 'Theme location was changed from "refind-theme-regular/theme.conf" to "themes/refind-theme-regular/theme.conf", please update your include'
  warning 'To enable the theme add "include themes/refind-theme-regular/theme.conf" at the end of refind.conf, and comment out or delete any other themes you might have installed.'
}