summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d40cee21029269fb8d8eaa3c29b50960584c035 (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
# Maintainer: mads256h <mads256h(at)gmail(dot)com>
# Contributor: Alireza Ayinmehr <alireza.darksun@gmail.com>
# Contributor: wenLiangcan <boxeed at gmail dot com>
# Contributor: se7enday(87635645#qq.com)
# I'm going to sleep. I'll work on it tomorrow.
pkgname=grub2-theme-vimix-git
pkgver=2019.10.01.r1.g9b431ca
pkgrel=1
pkgdesc="Grub2 theme Vimix"
url='https://github.com/vinceliuice/grub2-themes/'
arch=('any')
license=('GPLv3')
depends=('grub')
makedepends=('git' 'sed')
install=${pkgname}.install
source=("${pkgname}"::"git+https://github.com/vinceliuice/grub2-themes.git")
conflicts=('grub2-theme-vimix')
md5sums=('SKIP')
_theme="Vimix"

pkgver() {
    cd "${srcdir}/${pkgname}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "${srcdir}/${pkgname}/common"
    for file in *; do
        install -Dm644 "${file}" "${pkgdir}/boot/grub/themes/${_theme}/${file}"
    done

    cd "${srcdir}/${pkgname}"
    install -Dm644 "backgrounds/1080p/background-${_theme,,}.jpg" "${pkgdir}/boot/grub/themes/${_theme}/background.jpg"

    install -dm644 "assets/assets-white/icons" "${pkgdir}/boot/grub/themes/${_theme}/icons"

    cd "${srcdir}/${pkgname}/assets/assets-white/select"
    for file in *.png; do
        install -m644 "${file}" "${pkgdir}/boot/grub/themes/${_theme}/${file}"
    done
}