2023-08-11 21:11:24 +00:00
|
|
|
# Maintainer: TROM <contact@tromsite.com>
|
|
|
|
pkgname=tromjaro-welcome-app
|
|
|
|
pkgver=1.0
|
2023-08-17 12:19:01 +00:00
|
|
|
pkgrel=4
|
2023-08-11 21:11:24 +00:00
|
|
|
pkgdesc="Welcome app for TROMjaro OS"
|
2023-11-03 15:01:29 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://git.trom.tf/TROMjaro/welcome-app"
|
2023-08-11 21:11:24 +00:00
|
|
|
license=(unknown)
|
2023-08-17 12:19:01 +00:00
|
|
|
depends=('tromjaro-fixes'
|
2023-11-03 15:01:29 +00:00
|
|
|
'gtk4'
|
|
|
|
'xfdesktop'
|
|
|
|
'xfce4-settings'
|
|
|
|
'xdg-utils'
|
|
|
|
'util-linux'
|
2023-08-17 12:19:01 +00:00
|
|
|
'tromjaro-layout-switcher'
|
|
|
|
'tromjaro-theme-switcher'
|
|
|
|
'tblock-gui')
|
2023-11-03 15:01:29 +00:00
|
|
|
makedepends=('choosenim')
|
2023-08-11 21:11:24 +00:00
|
|
|
provides=('tromjaro-welcome-app')
|
|
|
|
backup=()
|
|
|
|
options=(!strip)
|
2023-11-03 15:01:29 +00:00
|
|
|
source=("tromjaroWelcomeApp.nim"
|
|
|
|
"tromjaro-welcome-app.desktop"
|
|
|
|
"tromjaro-welcome-app.svg"
|
|
|
|
"pictures.zip::https://www.drive.tromsite.com/s/8KEgm5JZksaqdjW/download")
|
|
|
|
sha256sums=('SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP')
|
2023-08-11 21:11:24 +00:00
|
|
|
prepare() {
|
2023-11-03 15:01:29 +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
|
|
|
|
}
|
|
|
|
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@#head
|
|
|
|
}
|
|
|
|
|
|
|
|
build(){
|
|
|
|
echo 'Compile tromjaroWelcomeApp.nim for release build:'
|
|
|
|
"$HOME"/.nimble/bin/nim c -d:release --out:${srcdir}/tromjaroWelcomeApp ${srcdir}/tromjaroWelcomeApp.nim
|
2023-08-11 21:11:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-03 15:01:29 +00:00
|
|
|
# copy pictures
|
|
|
|
install -d ${pkgdir}/usr/share/tromjaro-welcome-app/pictures
|
|
|
|
install -Dm644 ${srcdir}/pictures/* ${pkgdir}/usr/share/tromjaro-welcome-app/pictures
|
2023-08-11 21:11:24 +00:00
|
|
|
|
2023-11-03 15:01:29 +00:00
|
|
|
# copy executables
|
|
|
|
install -Dm644 ${srcdir}/tromjaro-welcome-app.desktop ${pkgdir}/usr/share/applications/tromjaro-welcome-app.desktop
|
|
|
|
install -Dm755 ${srcdir}/tromjaroWelcomeApp ${pkgdir}/usr/bin/tromjaro-welcome-app
|
2023-08-11 21:11:24 +00:00
|
|
|
|
2023-11-03 15:01:29 +00:00
|
|
|
# copy the icon
|
|
|
|
install -d ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
|
|
|
install -Dm644 ${srcdir}/tromjaro-welcome-app.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps
|
2023-08-11 21:11:24 +00:00
|
|
|
}
|