# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmikmod
pkgver=3.3.12
pkgrel=0
pkgdesc="module playing library"
url="https://mikmod.sourceforge.net/"
arch="all"
license="LGPL-2.0-or-later AND LGPL-2.1-or-later"
makedepends="alsa-lib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz"

build() {
	# build fails with bash
	export CONFIG_SHELL="/bin/sh"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-alsa
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
df0fab3c6ac0583cc588be53fcbc1de7c277394f70892f7addbc6eef889ce33da6aa6508cfdceaf68f8803b7d8aae672e6b8ddbef8836b0be578349b7ebce20a  libmikmod-3.3.12.tar.gz
"
