aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-07-13 20:20:17 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-14 00:17:35 +0000
commit525334f3abf7b84f9f9885a081f6460207fdaed9 (patch)
tree663b143ff0a6b747b41b333eb197be535ed2f641
parent4f0a75b4718fd7778066edd951a5a23761ec6ed0 (diff)
downloadaports-525334f3abf7b84f9f9885a081f6460207fdaed9.tar.gz
aports-525334f3abf7b84f9f9885a081f6460207fdaed9.tar.bz2
aports-525334f3abf7b84f9f9885a081f6460207fdaed9.tar.xz
testing/vimix-kde: new aport
https://github.com/vinceliuice/vimix-kde Vimix theme for the KDE Plasma desktop
-rw-r--r--testing/vimix-kde/APKBUILD45
-rw-r--r--testing/vimix-kde/respect-DESTDIR.patch36
2 files changed, 81 insertions, 0 deletions
diff --git a/testing/vimix-kde/APKBUILD b/testing/vimix-kde/APKBUILD
new file mode 100644
index 0000000000..1446c2bf76
--- /dev/null
+++ b/testing/vimix-kde/APKBUILD
@@ -0,0 +1,45 @@
+# 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"
diff --git a/testing/vimix-kde/respect-DESTDIR.patch b/testing/vimix-kde/respect-DESTDIR.patch
new file mode 100644
index 0000000000..114bc4d3ec
--- /dev/null
+++ b/testing/vimix-kde/respect-DESTDIR.patch
@@ -0,0 +1,36 @@
+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}