welcome-app/PKGBUILD

64 lines
2.0 KiB
Bash
Raw Permalink Normal View History

2023-08-11 21:11:24 +00:00
# Maintainer: TROM <contact@tromsite.com>
pkgname=tromjaro-welcome-app
2023-11-05 14:47:12 +00:00
pkgver=2.1
2023-11-04 15:42:28 +00:00
pkgrel=1
2023-08-11 21:11:24 +00:00
pkgdesc="Welcome app for TROMjaro OS"
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'
'gtk4'
'xfdesktop'
'xfce4-settings'
'xdg-utils'
'util-linux'
2023-08-17 12:19:01 +00:00
'tromjaro-layout-switcher'
'tromjaro-theme-switcher'
'tblock-gui')
makedepends=('choosenim')
2023-08-11 21:11:24 +00:00
provides=('tromjaro-welcome-app')
backup=()
options=(!strip)
source=("tromjaroWelcomeApp.nim"
"tromjaro-welcome-app.desktop"
"tromjaro-welcome-app.svg"
2024-09-04 00:39:11 +00:00
"pictures.zip::https://www.drive.tromsite.com/s/8KEgm5JZksaqdjW/download")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
2023-08-11 21:11:24 +00:00
prepare() {
# 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
}
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() {
# 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
# 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
# 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
}