# Template file for 'das-theme' # In-tree package: sources are in files/ (FILESDIR). pkgname=das-theme version=0.1.0 revision=1 create_wrksrc=yes hostmakedepends="go" depends="adw-gtk3 adwaita-icon-theme font-inter font-jetbrains-mono noto-fonts-ttf noto-fonts-emoji papirus-icon-theme" short_desc="Das OS look: GTK and xfwm4 themes, wallpapers and logo" maintainer="Das " license="MIT" homepage="https://git.das.org.ua/das/Das-OS" do_build() { cp -rL "${FILESDIR}/." . cd xfwm4gen export GOCACHE="${wrksrc}/.gocache" GOTOOLCHAIN=local GOFLAGS="-trimpath" go test ./... go build -o xfwm4gen . ./xfwm4gen -variant light -out "${wrksrc}/gtk/DasOS/xfwm4" ./xfwm4gen -variant dark -out "${wrksrc}/gtk/DasOS-Dark/xfwm4" } do_install() { local theme for theme in DasOS DasOS-Dark; do vinstall "gtk/${theme}/index.theme" 644 "usr/share/themes/${theme}" vinstall "gtk/${theme}/gtk-3.0/gtk.css" 644 "usr/share/themes/${theme}/gtk-3.0" vmkdir "usr/share/themes/${theme}/xfwm4" install -m644 "gtk/${theme}/xfwm4/"* "${DESTDIR}/usr/share/themes/${theme}/xfwm4/" done vinstall backgrounds/das-light.svg 644 usr/share/backgrounds/das vinstall backgrounds/das-dark.svg 644 usr/share/backgrounds/das vinstall branding/das-logo.svg 644 usr/share/icons/hicolor/scalable/apps vinstall branding/das-logo.svg 644 usr/share/pixmaps vlicense LICENSE }