# Maintainer:
pkgname=abcde
pkgver=2.8.1
pkgrel=1
pkgdesc="A command line CD encoder that reads your CD, downloads the track information from a CDDB provider, and rips your CD"
url="http://abcde.einval.com/"
arch="noarch"
license="GPL-2.0"
depends="bash cd-discid py-eyed3"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://abcde.einval.com/download/abcde-${pkgver}.tar.gz
	busybox-wget.patch
	fix-mp3-tagging.patch
	less.patch
	"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	default_prepare
	sed -e "s:normalize-audio:normalize:g" -i ${pkgname}
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" \
		prefix=/usr \
		sysconfdir=/etc \
		docdir=/usr/share/doc/${pkgname} \
		install
}

sha512sums="18e9e46ec69d0b99fc5e2b71ec549e3961e5f6d7f88cef1a6c8da154689554a70cc8bc748c1ef78f81583a510f8b03906b8a4fec454aa0b06f0169d0bc4a7b36  abcde-2.8.1.tar.gz
282eecc38064713e69705b2b5531822a44c74565fb2cea84f24c0210433d5cc4ec575f511d76b7f72d9af45c74e4722cd62e91c73145bfd06e1f5f0af2d44719  busybox-wget.patch
ad96c5e061627e1259e3ae3c8b0c58821ba1e93b217b9e31c2b12e531bde862491355671c5b06cd74e39610f45ed4afe23097c148e07445c97289d0c781ea7f0  fix-mp3-tagging.patch
24151ac9d6695f182f5b72db5a890ff97208a033b2c40b9868be931c417bcfc55b639c0578fdc805a924f0849ae6637f585d9348f0e093d218bf600c4c3fbc8a  less.patch"
