# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=mp3gain
pkgver=1.6.2
pkgrel=3
pkgdesc="Analyze and adjust the volume of MP3 files"
url="https://mp3gain.sourceforge.net/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="mpg123-dev"
options="!check" # no testsuite
source="$pkgname-$pkgver.zip::https://sourceforge.net/projects/mp3gain/files/mp3gain/$pkgver/mp3gain-${pkgver//./_}-src.zip/download"
builddir="$srcdir/"

build() {
	make OSTYPE=linux
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	make INSTALL_PATH="$pkgdir"/usr/bin OSTYPE=linux install
}

sha512sums="
ec9de6c755120480ccb72b34a0042aea7546ef923090ab04e420d5b189523b4504e29952a3d695d3c42c74348f5c3c9123ff090bcc671e43375711e085d67480  mp3gain-1.6.2.zip
"
