dprofile (das-helpers 0.2.0) installs profiles listed in /usr/share/das/profiles: packages from the Void repository between a snapper pre/post pair, their services and groups, subordinate IDs and a shared root mount for rootless Podman, and optional IDEs from Flathub. The installed system can't see the Das OS repository yet, so a das-dev metapackage could not be installed there; Void packages always can. The dev profile: Go, Python, Node.js, Git, Docker, Podman and command-line tools everywhere, VS Code (code-oss), Meld and Flatpak on a desktop, with Android Studio and JetBrains IDEs on demand. Questions come before sudo. das-welcome (das-tools 0.4.0) gets a developer profile row that runs dprofile in a terminal; das-server-install mentions it at the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
# Template file for 'das-tools'
|
|
# In-tree package: Go sources are in files/src (FILESDIR).
|
|
pkgname=das-tools
|
|
version=0.4.0
|
|
revision=1
|
|
create_wrksrc=yes
|
|
# Like build_style=go: the Go linker decides about PIE, xbps-src must not check it
|
|
nopie=yes
|
|
hostmakedepends="go pkg-config"
|
|
makedepends="gtk+3-devel"
|
|
depends="das-update>=${version}_${revision} dbus libnotify polkit xdg-user-dirs xdg-utils"
|
|
short_desc="Das OS desktop tools: update window and tray icon, das-welcome"
|
|
maintainer="Das <anry.das@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://git.das.org.ua/das/Das-OS"
|
|
subpackages="das-update"
|
|
|
|
do_build() {
|
|
cp -rL "${FILESDIR}/src/." .
|
|
export GOCACHE="${wrksrc}/.gocache" GOMODCACHE="${wrksrc}/.gomodcache"
|
|
export GOTOOLCHAIN=local GOFLAGS="-trimpath -modcacherw"
|
|
go test ./...
|
|
go build -o bin/ ./cmd/...
|
|
}
|
|
|
|
do_install() {
|
|
vbin bin/das-update
|
|
vinstall bin/das-update-gui 755 usr/libexec/das
|
|
vbin bin/das-welcome
|
|
vinstall "${FILESDIR}/data/das-update.desktop" 644 usr/share/applications
|
|
vinstall "${FILESDIR}/data/das-welcome.desktop" 644 usr/share/applications
|
|
vinstall "${FILESDIR}/data/das-update-tray.desktop" 644 etc/xdg/autostart
|
|
vinstall "${FILESDIR}/data/das-welcome-autostart.desktop" 644 etc/xdg/autostart das-welcome.desktop
|
|
vinstall "${FILESDIR}/data/ua.org.das.update.policy" 644 usr/share/polkit-1/actions
|
|
vlicense "${FILESDIR}/LICENSE"
|
|
}
|
|
|
|
# Without GTK, for servers: the window and the tray icon stay in das-tools.
|
|
das-update_package() {
|
|
short_desc="Das OS updates with a snapper snapshot to roll back to"
|
|
depends="sudo"
|
|
pkg_install() {
|
|
vmove usr/bin/das-update
|
|
vmove usr/share/polkit-1
|
|
}
|
|
}
|