2022-09-14 15:17:28 +00:00
|
|
|
# Maintainer: TROM <contact@tromsite.com>
|
|
|
|
pkgname=tromjaro-theme-switcher
|
2023-10-28 20:37:29 +00:00
|
|
|
pkgver=2
|
|
|
|
pkgrel=1
|
2022-09-14 15:17:28 +00:00
|
|
|
pkgdesc="TROMjaro Theme switcher application"
|
2023-10-27 13:07:17 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://git.trom.tf/TROMjaro/theme-switcher-package"
|
2022-09-14 14:28:51 +00:00
|
|
|
license=(unknown)
|
2023-10-27 13:07:17 +00:00
|
|
|
depends=('tromjaro-fixes'
|
|
|
|
'xfconf'
|
|
|
|
'gtk4'
|
2023-08-07 01:46:05 +00:00
|
|
|
'colloid-gtk-theme-git'
|
2023-08-07 17:52:00 +00:00
|
|
|
'zafiro-icon-theme')
|
2023-10-27 13:07:17 +00:00
|
|
|
makedepends=('choosenim')
|
2022-09-14 15:17:28 +00:00
|
|
|
provides=('tromjaro-theme-switcher')
|
2022-09-14 14:28:51 +00:00
|
|
|
backup=()
|
|
|
|
options=(!strip)
|
2023-10-27 13:07:17 +00:00
|
|
|
source=("themeSwitcher.nim"
|
2022-09-20 01:51:27 +00:00
|
|
|
"tromjaro-theme-switcher.desktop"
|
2022-09-20 01:46:46 +00:00
|
|
|
"tromjaro-theme-switcher.svg"
|
2023-10-27 13:07:17 +00:00
|
|
|
"icons.zip::https://www.drive.tromsite.com/s/zFtCp3SkZ4NpKix/download")
|
2022-09-07 03:27:45 +00:00
|
|
|
sha256sums=('SKIP'
|
|
|
|
'SKIP'
|
2022-09-20 01:46:46 +00:00
|
|
|
'SKIP'
|
2022-09-07 03:27:45 +00:00
|
|
|
'SKIP')
|
2023-10-27 13:07:17 +00:00
|
|
|
prepare() {
|
2023-10-27 19:14:25 +00: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
|
|
|
|
}
|
2023-10-27 13:07:17 +00:00
|
|
|
echo 'Install Nim if not already installed:'
|
|
|
|
choosenim stable
|
|
|
|
echo 'Update Nim to the latest stable release:'
|
|
|
|
choosenim update stable
|
2023-10-27 19:14:25 +00:00
|
|
|
echo 'Refresh nimble package list:'
|
|
|
|
"$HOME"/.nimble/bin/nimble --nim:"$HOME"/.nimble/bin/nim refresh
|
2023-10-27 13:07:17 +00:00
|
|
|
echo 'Install owlkettle from the latest git commit:'
|
2023-10-27 19:14:25 +00:00
|
|
|
"$HOME"/.nimble/bin/nimble --nim:"$HOME"/.nimble/bin/nim install owlkettle@#head
|
2023-10-27 13:07:17 +00:00
|
|
|
}
|
|
|
|
build(){
|
|
|
|
echo 'Compile themeSwitcher.nim for release build:'
|
|
|
|
"$HOME"/.nimble/bin/nim c -d:release --out:${srcdir}/themeSwitcher ${srcdir}/themeSwitcher.nim
|
|
|
|
}
|
2022-09-14 14:28:51 +00:00
|
|
|
package() {
|
|
|
|
# copy icons
|
2022-09-14 15:17:28 +00:00
|
|
|
install -d ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
2023-10-27 13:07:17 +00:00
|
|
|
install -Dm644 ${srcdir}/icons/* ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
2022-09-14 14:28:51 +00:00
|
|
|
|
|
|
|
# copy executables
|
2023-10-27 13:07:17 +00:00
|
|
|
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
|
|
|
|
|
2022-09-20 01:45:50 +00:00
|
|
|
# copy the icon
|
|
|
|
install -d ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
2023-10-27 13:07:17 +00:00
|
|
|
install -Dm644 ${srcdir}/tromjaro-theme-switcher.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
2022-09-14 14:28:51 +00:00
|
|
|
}
|