Commit 1c1aef18 authored by Leo's avatar Leo
Browse files

testing/vimix-kde: remove

parent 48b88ee4
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=vimix-kde
pkgver=20200525
pkgrel=0
_commit=8ecc8db7657ed9c28aeeaf0e19dc9c7304b1e437
pkgdesc="Vimix theme for the KDE Plasma desktop"
options="!check"
url="https://github.com/vinceliuice/vimix-kde"
arch="noarch"
license="GPL-3.0-or-later"
depends="bash"
subpackages="
vimix-dark-amethyst-plasma:_plasma:noarch
vimix-dark-amethyst-kvantum:_kvantum:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/vinceliuice/vimix-kde/archive/$_commit.tar.gz
respect-DESTDIR.patch
"
builddir="$srcdir/vimix-kde-$_commit"
package() {
DESTDIR="$pkgdir" ./install.sh \
--theme amethyst \
--color dark
}
_plasma() {
pkgdesc="Plasma assets for Vimix Dark Amethyst"
install_if="vimix-amethyst-dark plasma-desktop"
amove usr/share/aurorae/themes/Vimix-Amethyst
amove usr/share/color-schemes/VimixDarkAmethyst.colors
amove usr/share/plasma/desktoptheme/Vimix-Amethyst
}
_kvantum() {
pkgdesc="Kvantum theme for Vimix Dark Amethyst"
install_if="vimix-amethyst-dark kvantum"
amove usr/share/Kvantum/Vimix-Dark-Amethyst
}
sha512sums="0805d47216b6a7ee7b4a4202f83faa2fe3e095703aacedf4e42cdf25348f03987a77f930b9759169006d5cd38f53b1f8cfc45af7b864d719119c737e022abbab vimix-kde-20200525.tar.gz
85b8a91cb10dd59a4a371fed7b8e63ebb2ad3082856a41aadc8aa588f556ffacf018cbf1c2586d71b078e6d704e96f2d643d7b9805997577d3904a2462d152e9 respect-DESTDIR.patch"
Upstream: Not applicable, they use a different, albeit broken, system.
Summary: Respect DESTDIR
diff --git a/install.sh b/install.sh
index 401cbb4..eef2f32 100755
--- a/install.sh
+++ b/install.sh
@@ -1,22 +1,12 @@
#!/bin/bash
SRC_DIR=$(cd $(dirname $0) && pwd)
-ROOT_UID=0
-
-# Destination directory
-if [ "$UID" -eq "$ROOT_UID" ]; then
- AURORAE_DIR="/usr/share/aurorae/themes"
- SCHEMES_DIR="/usr/share/color-schemes"
- PLASMA_DIR="/usr/share/plasma/desktoptheme"
- LOOKFEEL_DIR="/usr/share/plasma/look-and-feel"
- KVANTUM_DIR="/usr/share/Kvantum"
-else
- AURORAE_DIR="$HOME/.local/share/aurorae/themes"
- SCHEMES_DIR="$HOME/.local/share/color-schemes"
- PLASMA_DIR="$HOME/.local/share/plasma/desktoptheme"
- LOOKFEEL_DIR="$HOME/.local/share/plasma/look-and-feel"
- KVANTUM_DIR="$HOME/.config/Kvantum"
-fi
+
+AURORAE_DIR="$DESTDIR/usr/share/aurorae/themes"
+SCHEMES_DIR="$DESTDIR/usr/share/color-schemes"
+PLASMA_DIR="$DESTDIR/usr/share/plasma/desktoptheme"
+LOOKFEEL_DIR="$DESTDIR/usr/share/plasma/look-and-feel"
+KVANTUM_DIR="$DESTDIR/usr/share/Kvantum"
[[ ! -d ${AURORAE_DIR} ]] && mkdir -p ${AURORAE_DIR}
[[ ! -d ${SCHEMES_DIR} ]] && mkdir -p ${SCHEMES_DIR}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment