Update PKGBUILD for the new code in Nim
Also improved a bunch of other things like the missing URL and architecture information.
This commit is contained in:
parent
da34f2087f
commit
45ebde24a2
36
PKGBUILD
36
PKGBUILD
|
@ -3,34 +3,48 @@ pkgname=tromjaro-theme-switcher
|
||||||
pkgver=1.4
|
pkgver=1.4
|
||||||
pkgrel=3
|
pkgrel=3
|
||||||
pkgdesc="TROMjaro Theme switcher application"
|
pkgdesc="TROMjaro Theme switcher application"
|
||||||
arch=(any)
|
arch=('x86_64')
|
||||||
url=""
|
url="https://git.trom.tf/TROMjaro/theme-switcher-package"
|
||||||
license=(unknown)
|
license=(unknown)
|
||||||
depends=('yad'
|
depends=('tromjaro-fixes'
|
||||||
|
'xfconf'
|
||||||
|
'gtk4'
|
||||||
'colloid-gtk-theme-git'
|
'colloid-gtk-theme-git'
|
||||||
'zafiro-icon-theme')
|
'zafiro-icon-theme')
|
||||||
|
makedepends=('choosenim')
|
||||||
provides=('tromjaro-theme-switcher')
|
provides=('tromjaro-theme-switcher')
|
||||||
backup=()
|
backup=()
|
||||||
options=(!strip)
|
options=(!strip)
|
||||||
source=("theme-switcher"
|
source=("themeSwitcher.nim"
|
||||||
"tromjaro-theme-switcher.desktop"
|
"tromjaro-theme-switcher.desktop"
|
||||||
"tromjaro-theme-switcher.svg"
|
"tromjaro-theme-switcher.svg"
|
||||||
"https://www.drive.tromsite.com/s/zFtCp3SkZ4NpKix/download")
|
"icons.zip::https://www.drive.tromsite.com/s/zFtCp3SkZ4NpKix/download")
|
||||||
sha256sums=('SKIP'
|
sha256sums=('SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP')
|
'SKIP')
|
||||||
|
prepare() {
|
||||||
|
echo 'Install Nim if not already installed:'
|
||||||
|
choosenim stable
|
||||||
|
echo 'Update Nim to the latest stable release:'
|
||||||
|
choosenim update stable
|
||||||
|
echo 'Install owlkettle from the latest git commit:'
|
||||||
|
"$HOME"/.nimble/bin/nimble install owlkettle@#head
|
||||||
|
}
|
||||||
|
build(){
|
||||||
|
echo 'Compile themeSwitcher.nim for release build:'
|
||||||
|
"$HOME"/.nimble/bin/nim c -d:release --out:${srcdir}/themeSwitcher ${srcdir}/themeSwitcher.nim
|
||||||
|
}
|
||||||
package() {
|
package() {
|
||||||
# copy icons
|
# copy icons
|
||||||
install -d ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
install -d ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
||||||
install -Dm644 ${srcdir}/icons/* ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
install -Dm644 ${srcdir}/icons/* ${pkgdir}/usr/share/tromjaro-theme-switcher/icons
|
||||||
|
|
||||||
# copy executables
|
# copy executables
|
||||||
install -Dm644 ${srcdir}/tromjaro-theme-switcher.desktop ${pkgdir}/usr/share/applications/tromjaro-theme-switcher.desktop
|
install -Dm644 ${srcdir}/tromjaro-theme-switcher.desktop ${pkgdir}/usr/share/applications/tromjaro-theme-switcher.desktop
|
||||||
install -Dm755 ${srcdir}/theme-switcher ${pkgdir}/usr/bin/tromjaro-theme-switcher
|
install -Dm755 ${srcdir}/themeSwitcher ${pkgdir}/usr/bin/tromjaro-theme-switcher
|
||||||
|
|
||||||
# copy the icon
|
# copy the icon
|
||||||
install -d ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
install -d ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
||||||
install -Dm644 ${srcdir}/tromjaro-theme-switcher.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
install -Dm644 ${srcdir}/tromjaro-theme-switcher.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user