pkgname=swayosd pkgver=0.2.1 pkgdesc="GTK based on screen display for keyboard shortcuts like caps-lock and volume" homepage="https://github.com/ErikReider/SwayOSD" license=("GPL-3") depends=( glib:2 libevdev libinput gtk4-layer-shell libpulse cairo gdk-pixbuf:2 gtk+:3 pango ) bdepends=(ninja sassc) sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://github.com/ErikReider/SwayOSD/archive/v${pkgver}.tar.gz") sha512sums=("473ab6660ad1ef8d3c7fbcad611f08dcc72e81b0e6df2714bcb2c2644361f8cea82efddd9597197e85520132ddd5e7a5c28b936170a2477208f2ad2e608c4063") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 cargo fetch --locked --target "$(rustc --print host-tuple)" } src_build() { local meson_args=( --prefix=/usr --buildtype=release --wrap-mode=nodownload -D python.bytecompile=1 ) meson setup build "${meson_args[@]}" meson compile -C build } src_install() { meson install -C build --destdir "$pkgdir" } # vim:ft=sh syn=sh et sw=2: