summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8aad0c881e88a916332f6669b537dba42fe7b67 (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
32
33
34
35
# Maintainer: jmcb <joelsgp@protonmail.com>
pkgname='distro-grub-themes-arch'
pkgver='3.2'
pkgrel=2
pkgdesc="A GRUB2 theme for Arch Linux"
arch=('any')
url="https://github.com/AdisonCavani/distro-grub-themes"
license=('GPL3')
provides=('distro-grub-theme-arch'
		  'grub-theme-arch'
		  'grub-theme')
groups=()
depends=('grub')
optdepends=('grub-customizer: GUI tool to configure grub')

_theme_distro="arch-linux"
_tar_name="${_theme_distro}-${pkgver}.tar"

source=("${_tar_name}::https://github.com/AdisonCavani/distro-grub-themes/releases/download/v${pkgver}/${_theme_distro}.tar")
noextract=("${_tar_name}")
sha256sums=('e589bb946d6cd7bf6303142cf3aeeb872fef416fb36ff3e168a11bccfeae850b')


prepare() {
	mkdir -p ${_theme_distro}
	bsdtar --cd "${_theme_distro}" -xf "${_tar_name}"
}

# example:
# https://github.com/archlinux/svntogit-packages/blob/packages/breeze-grub/trunk/PKGBUILD
package() {
	_dest="${pkgdir}"/usr/share/grub/themes/
	install -d "${_dest}"
	cp -r ${_theme_distro} "${_dest}"
}