From f0a82c69f2a30fce3f6bb06c3de804be6c2f1a57 Mon Sep 17 00:00:00 2001 From: davedatum Date: Mon, 28 Oct 2019 20:31:15 +0000 Subject: [PATCH] inital commit --- PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ tromjaro-theme.install | 30 ++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 PKGBUILD create mode 100755 tromjaro-theme.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..40a6a15 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: davedatum + +pkgbase=grub-theme-live-tromjaro +pkgname=('grub-theme-live-common-tromjaro' 'grub-theme-live-tromjaro' 'grub-theme-tromjaro') +pkgver=18.0 +pkgrel=1 +_branch=master + +pkgdesc='TROMjaro Linux grub theme' +arch=('any') +url="https://gitlab.manjaro.org/artwork/branding/grub-theme" +license=('GPL') +makedepends=('git') +source=("grub-theme::git+$url.git#branch=$_branch") +sha256sums=('SKIP') + +package_grub-theme-live-common-tromjaro() { + depends=('grub') + conflicts=('grub-theme-live-dev') + + cd grub-theme + make PREFIX=/usr DESTDIR=${pkgdir} install_common +} +package_grub-theme-live-tromjaro() { + depends=('grub-theme-live-common') + conflicts=('grub-theme-live-common-dev') + + cd grub-theme + make PREFIX=/usr DESTDIR=${pkgdir} install_tromjaro +} + +package_grub-theme-tromjaro() { + depends=('grub') + conflicts=('grub-theme-tromjaro-dev') + install=tromjaro-theme.install + + cd grub-theme/tromjaro-live + sed -i -e 's,.*text = "Welcome to TROMjaro".*,#text = "Welcome to TROMjaro",' theme.txt #remove welcome message + find . -type f -exec install -D -m644 {} ${pkgdir}/usr/share/grub/themes/tromjaro/{} \; +} \ No newline at end of file diff --git a/tromjaro-theme.install b/tromjaro-theme.install new file mode 100755 index 0000000..0d07b22 --- /dev/null +++ b/tromjaro-theme.install @@ -0,0 +1,30 @@ +post_install() { + + sed -i -e 's,.*GRUB_THEME=.*,GRUB_THEME="/usr/share/grub/themes/tromjaro/theme.txt",' /etc/default/grub + sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=auto,' /etc/default/grub + grub-mkconfig -o /boot/grub/grub.cfg + +cat << _EOF + +==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/tromjaro/theme.txt" +==> Default resolution "auto" +==> If an OS icon doesn't appear probably not present in /usr/share/grub/themes/tromjaro/icons simply add it or merge in +==> https://github.com/Ste74/grub-theme-dev + +_EOF +} + +post_upgrade() { + post_install +} + +post_remove() { +cat << _EOF + +==> IMPORTANT: Edit /boot/grub/grub.cfg , remove +==> set theme="/boot/grub/themes/tromjaro/theme.txt" +==> and uncomment an existing one / default! +==> (Maybe without "/boot", depending on PC setup) + +_EOF +} \ No newline at end of file