# Maintainer: Björn Wiedenmann <archlinux at xorxor dot de>
# Contributor: Sergej Pupykin <pupykin.s+arch at gmail dot com>
# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail dot com>
# Contributor: keith <keith at hubbard dot net>

pkgname=mp3gain
pkgver=1.6.2
pkgrel=2
pkgdesc='Lossless mp3 normalizer with statistical analysis'
arch=('x86_64' 'armv7h' 'aarch64')
url='https://sourceforge.net/projects/mp3gain/'
license=('GPL')
depends=('mpg123')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-${pkgver//./_}-src.zip")
sha512sums=('ec9de6c755120480ccb72b34a0042aea7546ef923090ab04e420d5b189523b4504e29952a3d695d3c42c74348f5c3c9123ff090bcc671e43375711e085d67480')

build() {
    cd "$srcdir"
    make OSTYPE=linux
}

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