New improved Theme Switcher with more options
This commit is contained in:
44
PKGBUILD
44
PKGBUILD
@ -23,7 +23,7 @@ options=(!strip)
|
||||
source=("themeSwitcher.nim"
|
||||
"tromjaro-theme-switcher.desktop"
|
||||
"tromjaro-theme-switcher.svg"
|
||||
"icons.zip::https://www.drive.tromsite.com/s/zFtCp3SkZ4NpKix/download")
|
||||
"icons.tar.gz::https://www.drive.tromsite.com/s/ysM33nJAkpro85b/download/icons.tar.gz")
|
||||
sha256sums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
@ -34,29 +34,35 @@ prepare() {
|
||||
mkdir -p "$HOME"/.choosenim
|
||||
touch "$HOME"/.choosenim/analytics
|
||||
}
|
||||
echo 'Install Nim if not already installed:'
|
||||
choosenim stable
|
||||
echo 'Update Nim to the latest stable release:'
|
||||
choosenim update stable
|
||||
echo 'Install Nim if not already installed:'
|
||||
choosenim stable
|
||||
echo 'Update Nim to the latest stable release:'
|
||||
choosenim update stable
|
||||
echo 'Refresh nimble package list:'
|
||||
"$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
|
||||
"$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
|
||||
}
|
||||
build(){
|
||||
echo 'Compile themeSwitcher.nim for release build:'
|
||||
"$HOME"/.nimble/bin/nim c -d:release --out:${srcdir}/themeSwitcher ${srcdir}/themeSwitcher.nim
|
||||
echo 'Compile themeSwitcher.nim for release build:'
|
||||
"$HOME"/.nimble/bin/nim c -d:release --out:${srcdir}/themeSwitcher ${srcdir}/themeSwitcher.nim
|
||||
}
|
||||
package() {
|
||||
# copy icons
|
||||
install -d ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
||||
install -Dm644 ${srcdir}/icons/* ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
||||
# 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
|
||||
|
||||
# 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
|
||||
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
|
||||
|
||||
# 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
|
||||
# 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user