void-packages/srcpkgs/audacious-base/template

43 lines
1.4 KiB
Bash

# Template file for 'audacious-base'
# Keep in sync with audacious and audacious-plugins
pkgname=audacious-base
version=4.3.1
revision=1
build_style=meson
configure_args="-Dlibarchive=true $(vopt_bool gtk3 gtk) $(vopt_bool gtk3)
$(vopt_bool qt) $(vopt_bool qt qt6) -Dbuildstamp=xbps"
hostmakedepends="pkg-config gettext glib-devel $(vopt_if qt 'qt6-base qt6-tools')"
makedepends="libSM-devel dbus-glib-devel libguess-devel libarchive-devel
$(vopt_if gtk3 gtk+3-devel) $(vopt_if qt qt6-base-devel)"
depends="desktop-file-utils hicolor-icon-theme $(vopt_if qt qt6-svg)"
short_desc="Lightweight, advanced audio player focused on audio quality"
maintainer="classabbyamp <void@placeviolette.net>"
license="BSD-2-Clause"
homepage="https://audacious-media-player.org/"
distfiles="https://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2"
checksum=85e9e26841505b51e342ee72a2d05f19bef894f567a029ebb3f3e0c1adb42042
build_options="gtk3 qt"
build_options_default="qt"
vopt_conflict gtk3 qt
pre_configure() {
# Meson uses paths from pkg-config which is /usr/lib32/qt6 when cross compiling 32-bit
# Work around this for now
export PATH="/usr/lib/qt6/libexec/:$PATH"
}
post_install() {
vlicense COPYING
}
audacious-base-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}