summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7afc3928ee6c098586b142d309d76908cc27793 (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
# Maintainer: wenLiangcan <boxeed at gmail dot com>
# Contributor: se7enday(87635645#qq.com)

pkgname=grub2-theme-vimix-legacy-git
_pkgname=grub2-theme-vimix-git
pkgver=20181108
pkgrel=1
pkgdesc="Grub2 theme Vimix (legacy version)"
url="https://github.com/Se7endAY/grub2-theme-vimix"
arch=('any')
license=('GPLv3')
depends=('grub')
makedepends=('git')
install=${_pkgname}.install
source=("${_pkgname}"::"git+https://github.com/Se7endAY/grub2-theme-vimix#branch=legacy")
conflicts=('grub2-theme-vimix' 'grub2-theme-vimix-git')
replaces=('grub2-theme-vimix-git' 'grub2-theme-vimix')
provides=('grub2-theme-vimix-git' 'grub2-theme-vimix')
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git log -1 --format='%cd' --date=short | tr -d -- '-'
}

package() {
    cd "$srcdir/${_pkgname}"
    find ./Vimix/ -type f -exec install -Dm644 {} \
        "${pkgdir}/boot/grub/themes/{}" \;
}