# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=odio-edit
pkgver=24.9.1
pkgrel=0
pkgdesc="Lightweight audio wave editor"
url="https://tari.in/www/software/odio-edit/"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-lang"
depends="
	dconf
	gst-libav
	gst-plugins-bad
	gst-plugins-good
	gst-plugins-ugly
	"
makedepends="
	cmake
	cmake-extras
	gettext-dev
	gst-plugins-base-dev
	gtk+3.0-dev
	intltool
	libodiosacd-dev
	"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/tari01/odio-edit/archive/refs/tags/$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b026c2d714c1b6e6b92258048ef9244336c2c4c4f02fcb3b579c2a219799f1f0da9512bca624a425387cc5822a6b887a77d32d47b0345daf32b2ab18de3256b0  odio-edit-24.9.1.tar.gz
"
