30 lines
1008 B
Bash
30 lines
1008 B
Bash
# Template file for 'amberol'
|
|
pkgname=amberol
|
|
version=2024.2
|
|
revision=1
|
|
build_style=meson
|
|
build_helper=rust
|
|
hostmakedepends="cargo desktop-file-utils gettext m4 pkg-config glib-devel
|
|
gtk4-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 <chrysostom349@gmail.com>"
|
|
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=93b1ef0c2ec5711aa5e170a4a0c81d62f97f6a92c0a74a011955be7022e7e555
|
|
|
|
post_patch() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -i src/meson.build \
|
|
-e "s%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
|
|
}
|