From cf4268fe69c5a086a2d88484ded2add4e1b0ad1c Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Wed, 24 May 2023 03:13:16 +0300 Subject: [PATCH] New package: amberol-0.10.3 --- srcpkgs/amberol/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/amberol/template diff --git a/srcpkgs/amberol/template b/srcpkgs/amberol/template new file mode 100644 index 00000000000..e28139a15dd --- /dev/null +++ b/srcpkgs/amberol/template @@ -0,0 +1,29 @@ +# Template file for 'amberol' +pkgname=amberol +version=0.10.3 +revision=1 +build_style=meson +build_helper=rust +hostmakedepends="cargo desktop-file-utils gettext m4 pkg-config glib-devel + gtk-update-icon-cache" +makedepends="libadwaita-devel rust-std" +depends="gst-plugins-good1 xdg-desktop-portal" +short_desc="Small and simple sound and music player" +maintainer="chrysos349 " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/World/amberol" +changelog="https://gitlab.gnome.org/World/amberol/-/raw/main/CHANGES.md" +distfiles="https://gitlab.gnome.org/World/amberol/-/archive/${version}/${pkgname}-${version}.tar.gz" +checksum=52372ec6f5ba066409e8dfc4a62fdb2c57e79f83a809cf295ff0e040eebb233b + +post_patch() { + if [ "$CROSS_BUILD" ]; then + vsed -i src/meson.build \ + -e "s%rust_target /%'${RUST_TARGET}' / rust_target /%" + + vsed -i meson.build \ + -e "/'libdir': get_option('libdir'),/d" \ + -e "/'datadir': get_option('datadir'),/d" \ + -e "/'bindir': get_option('bindir'),/d" + fi +}