summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d2f5344eb3fcde606be4bd059f66cbf7e2526cf (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
# Maintainer: ssfdust <ssfdust@gmail.com>

pkgname=refind-theme-darkmini-git
_pkgname=darkmini
pkgver=r20.0bef03e
pkgrel=1
pkgdesc="Dark theme for rEFInd"
arch=('any')
url="https://github.com/LightAir/darkmini"
license=('none')
depends=('refind')
makedepends=('git')
source=("${pkgname}::git+https://github.com/LightAir/darkmini.git")
sha256sums=('SKIP')

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

package() {
    efidir=$(find /boot -type d -name "EFI")
    efidir=${efidir:-/boot/EFI}

    mkdir -p "${pkgdir}/${efidir}/refind/themes"
    cp -r "${srcdir}/${pkgname}/" "${pkgdir}/${efidir}/refind/themes/${_pkgname}"

    echo 'Remember to add "include themes/'${_pkgname}'/theme.conf" to your refind.conf file'
}