summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a1e1bb27ef984fd9ead63812887752d001be921 (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: Mark Tompkins

pkgname=arch-silence-grub-theme-git
_gitname="arch-silence"
pkgver=r5.9fda3bf
pkgrel=1
pkgdesc="Arch Silence - GRUB2 theme - GIT version"
arch=('any')
license=('GPL')
depends=()
optdepends=()
install="${pkgname}.install"
url="https://github.com/fghibellini/arch-silence"
source=('git+https://github.com/fghibellini/arch-silence.git')
makedepends=('git')
md5sums=('SKIP')
conflicts=("arch-silence-grub-theme")

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

package() {
  mkdir -p "${pkgdir}/boot/grub/themes/${_gitname}"
  cp -TR "${srcdir}/${_gitname}/theme" "${pkgdir}/boot/grub/themes/${_gitname}"
}