summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eac80a9f30ef4921ea722df354162d2244e6754 (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
# 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.3"
pkgver="${deb_pkgver}"
pkgrel="1"

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=('1c3859105ce8951b0bd04cc1fbb719c4'
         '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/"
}