This commit is contained in:
davedatum 2019-11-05 20:39:52 +00:00
parent 1724393a3f
commit 182a51dfbe
4 changed files with 14 additions and 14 deletions

View File

@ -1,12 +1,12 @@
pkgbase = grub-theme-live-tromjaro pkgbase = grub-theme-live-tromjaro
pkgdesc = TROMjaro Linux grub theme pkgdesc = TROMjaro Linux grub theme
pkgver = 18.0 pkgver = 18.0
pkgrel = 1 pkgrel = 1.2
url = https://gitlab.com/tromsite/tromjaro/grub-theme url = https://gitlab.com/tromsite/tromjaro/grub-theme
arch = any arch = any
license = GPL license = GPL
makedepends = git makedepends = git
source = grub-theme::git+https://gitlab.com/tromsite/tromjaro/grub-theme.git#commit=338f17aca67f1a78c6a7dddd672b700c0fba7123 source = grub-theme::git+https://gitlab.com/tromsite/tromjaro/grub-theme.git#commit=56320c88cb4f592d273d7f1e989ccf163c3129b6
sha256sums = SKIP sha256sums = SKIP
pkgname = grub-theme-live-common pkgname = grub-theme-live-common
@ -19,7 +19,7 @@ pkgname = grub-theme-live-tromjaro
conflicts = grub-theme-live-manjaro conflicts = grub-theme-live-manjaro
pkgname = grub-theme-tromjaro pkgname = grub-theme-tromjaro
install = tromjaro-theme.install install = manjaro-theme.install
depends = grub depends = grub
conflicts = grub-theme-tromjaro-dev conflicts = grub-theme-tromjaro-dev
conflicts = grub-theme-manjaro conflicts = grub-theme-manjaro

2
.gitignore vendored
View File

@ -3,4 +3,4 @@
!.gitignore !.gitignore
!.SRCINFO !.SRCINFO
!PKGBUILD !PKGBUILD
!tromjaro-theme.install !manjaro-theme.install

View File

@ -3,14 +3,14 @@
pkgbase=grub-theme-live-tromjaro pkgbase=grub-theme-live-tromjaro
pkgname=('grub-theme-live-common' 'grub-theme-live-tromjaro' 'grub-theme-tromjaro') pkgname=('grub-theme-live-common' 'grub-theme-live-tromjaro' 'grub-theme-tromjaro')
pkgver=18.0 pkgver=18.0
pkgrel=1.1 pkgrel=1.2
pkgdesc='TROMjaro Linux grub theme' pkgdesc='TROMjaro Linux grub theme'
arch=('any') arch=('any')
url="https://gitlab.com/tromsite/tromjaro/grub-theme" url="https://gitlab.com/tromsite/tromjaro/grub-theme"
license=('GPL') license=('GPL')
makedepends=('git') makedepends=('git')
source=("grub-theme::git+$url.git#commit=354496ecee545f666222c17c603c70ba1f45f873") source=("grub-theme::git+$url.git#commit=56320c88cb4f592d273d7f1e989ccf163c3129b6")
sha256sums=('SKIP') sha256sums=('SKIP')
package_grub-theme-live-common() { package_grub-theme-live-common() {
@ -25,15 +25,15 @@ package_grub-theme-live-tromjaro() {
conflicts=('grub-theme-live-common-dev' 'grub-theme-live-manjaro') conflicts=('grub-theme-live-common-dev' 'grub-theme-live-manjaro')
cd grub-theme cd grub-theme
make PREFIX=/usr DESTDIR=${pkgdir} install_tromjaro make PREFIX=/usr DESTDIR=${pkgdir} install_manjaro
} }
package_grub-theme-tromjaro() { package_grub-theme-tromjaro() {
depends=('grub') depends=('grub')
conflicts=('grub-theme-tromjaro-dev' 'grub-theme-manjaro' 'grub-theme-manjaro-dev') conflicts=('grub-theme-tromjaro-dev' 'grub-theme-manjaro' 'grub-theme-manjaro-dev')
install=tromjaro-theme.install install=manjaro-theme.install
cd grub-theme/tromjaro-live cd grub-theme/manjaro-live
sed -i -e 's,.*text = "Welcome to TROMjaro".*,#text = "Welcome to TROMjaro",' theme.txt #remove welcome message 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/{} \; find . -type f -exec install -D -m644 {} ${pkgdir}/usr/share/grub/themes/manjaro/{} \;
} }

View File

@ -1,15 +1,15 @@
post_install() { 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_THEME=.*,GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt",' /etc/default/grub
sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=auto,' /etc/default/grub sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=auto,' /etc/default/grub
sed -i -e 's,.*GRUB_DISTRIBUTOR=.*,GRUB_DISTRIBUTOR="TROMjaro",' /etc/default/grub sed -i -e 's,.*GRUB_DISTRIBUTOR=.*,GRUB_DISTRIBUTOR="TROMjaro",' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/grub/grub.cfg
cat << _EOF cat << _EOF
==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/tromjaro/theme.txt" ==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
==> Default resolution "auto" ==> 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 ==> If an OS icon doesn't appear probably not present in /usr/share/grub/themes/manjaro/icons simply add it or merge in
==> https://github.com/Ste74/grub-theme-dev ==> https://github.com/Ste74/grub-theme-dev
_EOF _EOF
@ -23,7 +23,7 @@ post_remove() {
cat << _EOF cat << _EOF
==> IMPORTANT: Edit /boot/grub/grub.cfg , remove ==> IMPORTANT: Edit /boot/grub/grub.cfg , remove
==> set theme="/boot/grub/themes/tromjaro/theme.txt" ==> set theme="/boot/grub/themes/manjaro/theme.txt"
==> and uncomment an existing one / default! ==> and uncomment an existing one / default!
==> (Maybe without "/boot", depending on PC setup) ==> (Maybe without "/boot", depending on PC setup)