# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=audacious
pkgver=4.4
pkgrel=0
pkgdesc="A playlist-oriented media player with multiple interfaces"
url="https://audacious-media-player.org/"
arch="all !s390x"
license="BSD-2-Clause AND ISC"
depends="qt6-qtsvg"
depends_dev="qt6-qtbase-dev"
makedepends="$depends_dev qt6-qtsvg-dev libxml2-dev meson"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
source="http://distfiles.audacious-media-player.org/audacious-$pkgver.tar.bz2"
options="!check" # no tests

build() {
	LDFLAGS="$LDFLAGS -lintl" \
	abuild-meson \
		-Db_lto=true \
		-Dgtk=false \
		-Dqt=true \
		-Dbuildstamp="alpine-linux" \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
ca1a588ab9f2836c3581c82b6d213789a956100dc93156a8e7679e661969ed946d571f75c84fd744f0a202a2081037eeaf61c36527e4c69fa9d9521468a73541  audacious-4.4.tar.bz2
"
