summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Mogensen2019-10-04 14:47:34 +0200
committerMads Mogensen2019-10-04 14:47:34 +0200
commitee4674bfa39975cf2f3287150bea490d145857d2 (patch)
tree810a01fbca6a46104b7c5798e7897343c2f61260
parent328779d9e1c125532004667240f065be6e06c91d (diff)
downloadaur-ee4674bfa39975cf2f3287150bea490d145857d2.tar.gz
Fix installation
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD29
-rw-r--r--grub2-theme-vimix-git.install3
3 files changed, 24 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d0ce6238a97..7be252132ec 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = grub2-theme-vimix-git
pkgdesc = Grub2 theme Vimix
- pkgver = 20190211
+ pkgver = 2019.10.01.r1.g9b431ca
pkgrel = 1
url = https://github.com/vinceliuice/grub2-themes/tree/master/grub-theme-vimix
install = grub2-theme-vimix-git.install
arch = any
license = GPLv3
makedepends = git
+ makedepends = sed
depends = grub
conflicts = grub2-theme-vimix
source = grub2-theme-vimix-git::git+https://github.com/vinceliuice/grub2-themes.git
diff --git a/PKGBUILD b/PKGBUILD
index f986829f365..7d40cee2102 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,42 @@
-# Maintainer: Alireza Ayinmehr <alireza.darksun@gmail.com>
+# Maintainer: mads256h <mads256h(at)gmail(dot)com>
+# Contributor: Alireza Ayinmehr <alireza.darksun@gmail.com>
# Contributor: wenLiangcan <boxeed at gmail dot com>
# Contributor: se7enday(87635645#qq.com)
# I'm going to sleep. I'll work on it tomorrow.
pkgname=grub2-theme-vimix-git
-pkgver=20190211
+pkgver=2019.10.01.r1.g9b431ca
pkgrel=1
pkgdesc="Grub2 theme Vimix"
-url='https://github.com/vinceliuice/grub2-themes/tree/master/grub-theme-vimix'
+url='https://github.com/vinceliuice/grub2-themes/'
arch=('any')
license=('GPLv3')
depends=('grub')
-makedepends=('git')
+makedepends=('git' 'sed')
install=${pkgname}.install
source=("${pkgname}"::"git+https://github.com/vinceliuice/grub2-themes.git")
conflicts=('grub2-theme-vimix')
md5sums=('SKIP')
+_theme="Vimix"
pkgver() {
cd "${srcdir}/${pkgname}"
- git log -1 --format='%cd' --date=short | tr -d -- '-'
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
- cd "${srcdir}/${pkgname}/grub-theme-vimix/"
- find ./Vimix/ -type f -exec install -Dm644 {} \
- "${pkgdir}/boot/grub/themes/{}" \;
+ cd "${srcdir}/${pkgname}/common"
+ for file in *; do
+ install -Dm644 "${file}" "${pkgdir}/boot/grub/themes/${_theme}/${file}"
+ done
+
+ cd "${srcdir}/${pkgname}"
+ install -Dm644 "backgrounds/1080p/background-${_theme,,}.jpg" "${pkgdir}/boot/grub/themes/${_theme}/background.jpg"
+
+ install -dm644 "assets/assets-white/icons" "${pkgdir}/boot/grub/themes/${_theme}/icons"
+
+ cd "${srcdir}/${pkgname}/assets/assets-white/select"
+ for file in *.png; do
+ install -m644 "${file}" "${pkgdir}/boot/grub/themes/${_theme}/${file}"
+ done
}
diff --git a/grub2-theme-vimix-git.install b/grub2-theme-vimix-git.install
index 1f3f48f4784..e5368a2ce1f 100644
--- a/grub2-theme-vimix-git.install
+++ b/grub2-theme-vimix-git.install
@@ -1,10 +1,9 @@
post_install() {
cat << _EOF
-==> Author: 浣衣尘(http://tieba.baidu.com/p/3757812932)
==> Installation:
==> Edit /etc/default/grub: GRUB_THEME="/boot/grub/themes/Vimix/theme.txt"
-==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg
+==> Update grub: grub-mkconfig -o /boot/grub/grub.cfg
_EOF
}