2022-09-14 17:17:28 +02:00
|
|
|
# Maintainer: TROM <contact@tromsite.com>
|
|
|
|
pkgname=tromjaro-theme-switcher
|
2024-08-20 15:12:34 +00:00
|
|
|
pkgver=3
|
2024-10-19 23:22:55 +00:00
|
|
|
pkgrel=4
|
2022-09-14 17:17:28 +02:00
|
|
|
pkgdesc="TROMjaro Theme switcher application"
|
2023-10-27 15:07:17 +02:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://git.trom.tf/TROMjaro/theme-switcher-package"
|
2022-09-14 16:28:51 +02:00
|
|
|
license=(unknown)
|
2023-10-27 15:07:17 +02:00
|
|
|
depends=('tromjaro-fixes'
|
|
|
|
'xfconf'
|
|
|
|
'gtk4'
|
2023-08-07 03:46:05 +02:00
|
|
|
'colloid-gtk-theme-git'
|
2024-04-13 18:05:32 +00:00
|
|
|
'colloid-dracula-gtk-theme-git'
|
|
|
|
'colloid-gruvbox-gtk-theme-git'
|
|
|
|
'colloid-nord-gtk-theme-git'
|
2024-04-13 23:43:50 +00:00
|
|
|
'colloid-everforest-gtk-theme-git'
|
2024-08-16 23:43:01 +00:00
|
|
|
'colloid-catppuccin-gtk-theme-git'
|
2023-08-07 19:52:00 +02:00
|
|
|
'zafiro-icon-theme')
|
2023-10-27 15:07:17 +02:00
|
|
|
makedepends=('choosenim')
|
2022-09-14 17:17:28 +02:00
|
|
|
provides=('tromjaro-theme-switcher')
|
2022-09-14 16:28:51 +02:00
|
|
|
backup=()
|
|
|
|
options=(!strip)
|
2023-10-27 15:07:17 +02:00
|
|
|
source=("themeSwitcher.nim"
|
2022-09-20 03:51:27 +02:00
|
|
|
"tromjaro-theme-switcher.desktop"
|
2022-09-20 03:46:46 +02:00
|
|
|
"tromjaro-theme-switcher.svg"
|
2024-08-20 19:12:00 +05:30
|
|
|
"icons.tar.gz::https://www.drive.tromsite.com/s/ysM33nJAkpro85b/download/icons.tar.gz")
|
2022-09-07 05:27:45 +02:00
|
|
|
sha256sums=('SKIP'
|
|
|
|
'SKIP'
|
2022-09-20 03:46:46 +02:00
|
|
|
'SKIP'
|
2022-09-07 05:27:45 +02:00
|
|
|
'SKIP')
|
2023-10-27 15:07:17 +02:00
|
|
|
prepare() {
|
2023-10-27 21:14:25 +02:00
|
|
|
# Disable telemetry in choosenim if user is running it for the first time
|
|
|
|
[ -f "$HOME"/.choosenim/analytics ] || {
|
|
|
|
mkdir -p "$HOME"/.choosenim
|
|
|
|
touch "$HOME"/.choosenim/analytics
|
|
|
|
}
|
2024-08-20 19:12:00 +05:30
|
|
|
echo 'Install Nim if not already installed:'
|
|
|
|
choosenim stable
|
|
|
|
echo 'Update Nim to the latest stable release:'
|
|
|
|
choosenim update stable
|
2023-10-27 21:14:25 +02:00
|
|
|
echo 'Refresh nimble package list:'
|
2024-08-20 19:12:00 +05:30
|
|
|
"$HOME"/.nimble/bin/nimble --nim:"$HOME"/.nimble/bin/nim refresh
|
|
|
|
echo 'Install owlkettle from the latest git commit:'
|
|
|
|
"$HOME"/.nimble/bin/nimble --nim:"$HOME"/.nimble/bin/nim install owlkettle
|
2023-10-27 15:07:17 +02:00
|
|
|
}
|
|
|
|
build(){
|
2024-08-20 19:12:00 +05:30
|
|
|
echo 'Compile themeSwitcher.nim for release build:'
|
|
|
|
"$HOME"/.nimble/bin/nim c -d:release --out:${srcdir}/themeSwitcher ${srcdir}/themeSwitcher.nim
|
2023-10-27 15:07:17 +02:00
|
|
|
}
|
2022-09-14 16:28:51 +02:00
|
|
|
package() {
|
2024-08-20 19:12:00 +05:30
|
|
|
# copy icons
|
|
|
|
install -d ${pkgdir}/usr/share/tromjaro-theme-switcher/icons/Styles
|
|
|
|
install -Dm644 ${srcdir}/icons/Styles/* ${pkgdir}/usr/share/tromjaro-theme-switcher/icons/Styles
|
2022-09-14 16:28:51 +02:00
|
|
|
|
2024-08-20 19:12:00 +05:30
|
|
|
for source_dir in "${srcdir}/icons/Accent Colors"/*; do
|
|
|
|
dest_dir="${pkgdir}/usr/share/tromjaro-theme-switcher/icons/Accent Colors/${source_dir##*/}"
|
|
|
|
install -d "$dest_dir"
|
|
|
|
install -Dm644 "$source_dir"/* "$dest_dir"
|
|
|
|
done
|
2023-10-27 15:07:17 +02:00
|
|
|
|
2024-08-20 19:12:00 +05:30
|
|
|
# copy executables
|
|
|
|
install -Dm644 ${srcdir}/tromjaro-theme-switcher.desktop ${pkgdir}/usr/share/applications/tromjaro-theme-switcher.desktop
|
|
|
|
install -Dm755 ${srcdir}/themeSwitcher ${pkgdir}/usr/bin/tromjaro-theme-switcher
|
|
|
|
|
|
|
|
# copy the icon
|
|
|
|
install -d ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
|
|
|
install -Dm644 ${srcdir}/tromjaro-theme-switcher.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
2022-09-14 16:28:51 +02:00
|
|
|
}
|