summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9f003eb147e8aeacdca8752d9ebe58207e22516 (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
# Maintainer: Yamada Hayao <development@fascode.net>

_pkgname="grub-theme-zorin"
pkgname="${_pkgname}-bin"
pkgdesc="GRand Unified Bootloader, version 2 (Zorin theme)"

deb_pkgver="1.2.1"
pkgver="${deb_pkgver}"
pkgrel="5"

arch=('any')
url="https://zorinos.com/"
license=('GPL')
conflicts=("${_pkgname}" "${_pkgname}-git")

depends=("grub")
optdepends=()

source=(
    "https://launchpad.net/~zorinos/+archive/ubuntu/stable/+files/${_pkgname}_${deb_pkgver}_all.deb"
    "alter.png"
)
md5sums=(
    'SKIP'
    "65bfa30ea04f36b1944f4d0a959a52eb"
)

prepare(){
    while read -r pkg; do
        dir="${srcdir}/$(basename "${pkg}" | cut -d "." -f 1)"
        mkdir -p "${dir}"
        tar -x -v -f "${pkg}" -C "${dir}"
    done < <(find "${srcdir}" -maxdepth 1 -mindepth 1 -name "*.tar*" -printf "%p\n")
}

package() {
    cp -arv "${srcdir}/data/"* "${pkgdir}"
    cp -aLv "${srcdir}/alter.png" "${pkgdir}/usr/share/grub/themes/zorin/icons/"
}