Package Details: catppuccin-mocha-grub-theme-git r29.b2919a9-1

Git Clone URL: https://aur.archlinux.org/catppuccin-grub-theme-git.git (read-only, click to copy)
Package Base: catppuccin-grub-theme-git
Description: Soothing pastel theme for GRUB2 -- Mocha colorscheme
Upstream URL: https://github.com/catppuccin/grub
Keywords: catppuccin frappe grub latte macchiato mocha theme
Licenses: MIT
Submitter: tuhana
Maintainer: catppuccin
Last Packager: lmartinez-mirror
Votes: 4
Popularity: 0.96
First Submitted: 2022-02-04 19:08 (UTC)
Last Updated: 2022-08-12 04:02 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Pinned Comments

Latest Comments

exploder-jimmy commented on 2022-08-11 19:02 (UTC) (edited on 2022-08-11 19:15 (UTC) by exploder-jimmy)

Please apply this patch, so that it will be really a -git package. Thanks.

diff --git a/PKGBUILD b/PKGBUILD
index 644a202..2e75df7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,8 +9,8 @@ pkgname=(
   catppuccin-mocha-grub-theme-git)
 pkgbase=catppuccin-grub-theme-git
 _pkg="${pkgbase%-git}"
-pkgver=r25.4f6ac65
-pkgrel=2
+pkgver=r29.gb2919a9
+pkgrel=1
 pkgdesc='Soothing pastel theme for GRUB2'
 arch=('any')
 url='https://github.com/catppuccin/grub'
@@ -19,6 +19,11 @@ makedepends=('git')
 source=("$_pkg::git+$url")
 sha256sums=('SKIP')

+pkgver() {
+   cd "$srcdir/$_pkg"
+   printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
 _package() {
    cd "$_pkg/src"
    find "$1" \

Also, FYI, the change that was made in last commit a317c146e25845dc0b69959c39bc28671bd72af9 here:

+_package() {
+   cd "$_pkg/src"
+   find "$1" \
+       -type f \
+       -exec install -Dm644 '{}' "$pkgdir/usr/share/grub/themes/{}" \;
+   install -Dm644 ../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"

Breaks all users' Grub configs, since theme paths have been changed.
For example /usr/share/grub/themes/catppuccin-frappe -> /usr/share/grub/themes/catppuccin-frappe-grub-theme

tuhana commented on 2022-06-07 06:54 (UTC) (edited on 2022-06-07 07:16 (UTC) by tuhana)

Thanks @D3SOX. Looks like v0.2 out, I'll update PKGBUILD ASAP.

D3SOX commented on 2022-06-07 06:51 (UTC)

cp: cannot stat 'catppuccin-grub-theme/*': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

MarsSeed commented on 2022-03-17 12:06 (UTC)

Seems to work well! Thanks for the changes. :)

tuhana commented on 2022-03-17 08:18 (UTC) (edited on 2022-03-17 08:18 (UTC) by tuhana)

Hi, @MarsSeed.

Thank you for your comment. This AUR package is now VCS package.

At first, I decided to manually upgrade since revision may conflict due to git, but now I learned pkgver() is a something. Updated PKGBUILD as needed and now it looks OK to me.

MarsSeed commented on 2022-03-17 00:17 (UTC)

Hi,

Currently this is not a '-git' VCS package.

Please change it so that its source is declared as git+https://github.com/catppuccin/grub.git,

and the PKGBUILD should implement an appropriate pkgver() function.