summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2cc59235e42060536a5861ffbfb64e0670cd6fc (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
pkgname=grub-theme-boot-minegrub-git
pkgver=r116.ef835b3
pkgrel=1
pkgdesc="A Grub Theme in the style of Minecraft!"
arch=('any')
url="https://github.com/Lxtharia/minegrub-theme"
depends=('grub')
makedepends=('git')
provides=(grub-theme-minegrub)
conflicts=(grub-theme-minegrub)
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')
_themedir="/boot/grub/themes/minegrub"

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

package() {
    cd "${srcdir}"

    install -dm755 ${pkgdir}${_themedir}
    cp -rf --no-preserve=ownership "${pkgname}"/minegrub/* ${pkgdir}${_themedir}
    cp -rf --no-preserve=ownership "${pkgname}"/background_options/* ${pkgdir}${_themedir}/backgrounds
     
    install -Dpm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dpm644 "${pkgname}/minegrub-update.service" -t "${pkgdir}/usr/lib/systemd/system"
}