aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bf8139b0e9772f3a79b35314d8603ab991ec243 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: GiacoLenzo2109 <GiacoLenzo2109@gmail.com>
# Contributor: Philip Müller <philm[at]garuda[dog]org>
# Contributor: artoo <artoo@garuda.org>
# Contributor: anex <assassin.anex[@]gmail.com>
# Contributor: Stefano Capitani <stefano@garuda.org>
# Contributor: Matti Hyttinen <matti@garuda.org> 


pkgbase=grub-theme-croco
pkgname=('grub-theme-croco-live-common' 'grub-theme-croco-live' 'grub-theme-croco')
pkgver=r14.1cd9ac3
pkgrel=1

pkgdesc='croco Linux grub theme'
arch=('any')
url="https://gitlab.com/croco-os/themes-and-settings/grub-theme-croco"
license=('GPL')
makedepends=('git')
source=("grub-theme::git+$url.git")
sha256sums=('SKIP')

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

package_grub-theme-croco-live-common() {
    depends=('grub')

    cd grub-theme
    make PREFIX=/usr DESTDIR=${pkgdir} install_common
}
package_grub-theme-croco-live() {
    depends=('grub-theme-croco-live-common')

    cd grub-theme
    make PREFIX=/usr DESTDIR=${pkgdir} install_croco
}

package_grub-theme-croco() {
	depends=('grub')
	install=croco-theme.install
    
    cd grub-theme/croco-live
    sed -i -e 's,.*text = "Welcome to Croco".*,#text = "Welcome to Croco",' theme.txt #remove welcome message
    find . -type f -exec install -D -m644 {} ${pkgdir}/usr/share/grub/themes/croco/{} \;
}