welcome-app/PKGBUILD

64 lines
2.0 KiB
Bash

# Maintainer: TROM <contact@tromsite.com>
pkgname=tromjaro-welcome-app
pkgver=2.1
pkgrel=1
pkgdesc="Welcome app for TROMjaro OS"
arch=('x86_64')
url="https://git.trom.tf/TROMjaro/welcome-app"
license=(unknown)
depends=('tromjaro-fixes'
'gtk4'
'xfdesktop'
'xfce4-settings'
'xdg-utils'
'util-linux'
'tromjaro-layout-switcher'
'tromjaro-theme-switcher'
'tblock-gui')
makedepends=('choosenim')
provides=('tromjaro-welcome-app')
backup=()
options=(!strip)
source=("tromjaroWelcomeApp.nim"
"tromjaro-welcome-app.desktop"
"tromjaro-welcome-app.svg"
"pictures.zip::https://www.drive.tromsite.com/s/8KEgm5JZksaqdj/download")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
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
}
package() {
# copy pictures
install -d ${pkgdir}/usr/share/tromjaro-welcome-app/pictures
install -Dm644 ${srcdir}/pictures/* ${pkgdir}/usr/share/tromjaro-welcome-app/pictures
# 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
# 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
}