Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srcpkgs/wayscriber-configurator
57 changes: 57 additions & 0 deletions srcpkgs/wayscriber/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Template file for 'wayscriber'
pkgname=wayscriber
version=0.9.11
revision=1
build_style=cargo
make_build_args="--workspace --bin wayscriber --bin wayscriber-configurator"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wayscriber-configurator should likely be a subpackage because it's not needed to run wayscriber, see https://github.com/void-linux/void-packages/blob/master/Manual.md#subpackages

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the template to move wayscriber-configurator into a subpackage as suggested.

hostmakedepends="pkg-config"
makedepends="cairo-devel pango-devel libxkbcommon-devel"
depends="wl-clipboard grim slurp"
short_desc="Screen annotation tool for Wayland compositors"
maintainer="Dong <rendongetz@gmail.com>"
license="MIT"
homepage="https://wayscriber.com"
distfiles="https://github.com/devmobasa/wayscriber/archive/refs/tags/v${version}.tar.gz"
checksum=cb63c410803cfc2d2029e8dac18cb9bd592fde8018959884b0b9b9d8a7d5c741

do_install() {
vbin target/${RUST_TARGET}/release/wayscriber
vbin target/${RUST_TARGET}/release/wayscriber-configurator

vinstall packaging/wayscriber.desktop 644 usr/share/applications
vinstall packaging/wayscriber-configurator.desktop 644 usr/share/applications

for sz in 16 19 22 24 38 64 128; do
if [ "$sz" = "128" ]; then
vinstall packaging/icons/wayscriber-${sz}.png 644 \
usr/share/pixmaps wayscriber.png
vinstall packaging/icons/wayscriber-configurator-${sz}.png 644 \
usr/share/pixmaps wayscriber-configurator.png
fi
vinstall packaging/icons/wayscriber-${sz}.png 644 \
usr/share/icons/hicolor/${sz}x${sz}/status wayscriber.png
vinstall packaging/icons/wayscriber-${sz}.png 644 \
usr/share/icons/hicolor/${sz}x${sz}/apps wayscriber.png
vinstall packaging/icons/wayscriber-configurator-${sz}.png 644 \
usr/share/icons/hicolor/${sz}x${sz}/apps wayscriber-configurator.png
done

vdoc README.md
vsconf config.example.toml
vlicense LICENSE
}

wayscriber-configurator_package() {
short_desc="GUI configuration tool for wayscriber"
pkg_install() {
vmove usr/bin/wayscriber-configurator
vmove usr/share/applications/wayscriber-configurator.desktop

for sz in 16 19 22 24 38 64 128; do
if [ "$sz" = "128" ]; then
vmove usr/share/pixmaps/wayscriber-configurator.png
fi
vmove usr/share/icons/hicolor/${sz}x${sz}/apps/wayscriber-configurator.png
done
}
}