# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=cyanrip
pkgver=0.9.3.1_git20240709
_gitrev=8cae5f548a606bfd723fbcfccabcd5da189063cb
pkgrel=0
pkgdesc="Bule-ish CD ripper"
url="https://github.com/cyanreg/cyanrip"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	curl-dev
	ffmpeg-dev
	libcdio-dev
	libcdio-paranoia-dev
	libmusicbrainz-dev
	meson
	"
source="https://github.com/cyanreg/cyanrip/archive/$_gitrev/cyanrip-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

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

sha512sums="
23a82a2a1eac96124d712811bea293dfdb1dbe19dd7a36d047d76efce6406c934a1883e29e63250dc477830c798803c4b15ddef414f66f4aac9b7e2d54fe66a1  cyanrip-8cae5f548a606bfd723fbcfccabcd5da189063cb.tar.gz
"
