diff options
author | Generator | 2015-06-17 14:14:21 +0100 |
---|---|---|
committer | Generator | 2015-06-17 14:14:21 +0100 |
commit | 0b16c48d4fb21844e9862da0a476025f9f817fc0 (patch) | |
tree | f910a3ef40e2a1899cff92069c8777fac8333e7c | |
download | aur-0b16c48d4fb21844e9862da0a476025f9f817fc0.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | grub2-theme-archlinux.install | 28 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..02b7bcb92c9e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = grub2-theme-archlinux + pkgdesc = Grub2 gfxmenu theme. + pkgver = 1.0 + pkgrel = 4 + url = https://github.com/Generator/Grub2-themes + install = grub2-theme-archlinux.install + arch = any + license = GPLv3 + depends = grub + source = https://github.com/downloads/Generator/Grub2-themes/Archlinux-1.0.tar.bz2 + md5sums = d6ec2d58685eb3b92d96d2ac9a09b0d7 + +pkgname = grub2-theme-archlinux + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b8d9d5f99aa2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: American_Jesus <american.jesus.pt AT gmail DOT com> + +pkgname=grub2-theme-archlinux +_pkgname=Archlinux +pkgver=1.0 +pkgrel=4 +pkgdesc="Grub2 gfxmenu theme." +url="https://github.com/Generator/Grub2-themes" +arch=('any') +license=('GPLv3') +depends=('grub') +install=${pkgname}.install +source=("https://github.com/downloads/Generator/Grub2-themes/$_pkgname-$pkgver.tar.bz2") +md5sums=('d6ec2d58685eb3b92d96d2ac9a09b0d7') + +package() { + cd "${srcdir}" + find . -type f -exec install -D -m644 {} ${pkgdir}/boot/grub/themes/{} \; +} diff --git a/grub2-theme-archlinux.install b/grub2-theme-archlinux.install new file mode 100644 index 000000000000..81c48590c892 --- /dev/null +++ b/grub2-theme-archlinux.install @@ -0,0 +1,28 @@ +post_install() { + cat << _EOF + +==> Installation: +==> Add theme to your /etc/default/grub: GRUB_THEME="/boot/grub/themes/Archlinux/theme.txt" +==> Preferred resolution 1024x768: GRUB_GFXMODE=1024x768 +==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg + +_EOF +} + +pre_upgrade() { + checkver=$(pacman -Qs grub2-theme-archlinux | head -n 1 | awk '{print $2}') + target=/boot/grub/themes/Archlinux + + if [[ $checkver == "1.0-1" ]]; then + cat << _EOF + +==> Install target changed to /boot/grub/themes/Archlinux +==> No longer needed to copy /usr/share/grub/themes/Archlinux to /boot/grub/themes/ + +_EOF + # Not working + # if [ -d "$target" ]; then + # rm -rf /boot/grub/themes/Archlinux + # fi + fi +} |