aboutsummaryrefslogtreecommitdiffstats
path: root/main/abcde/APKBUILD
blob: 539112443817f741952bb0494b1e17886b8098d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=abcde
pkgver=2.7.1
pkgrel=0
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="GPL2"
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() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -e "s:normalize-audio:normalize:g" -i ${pkgname}
}

build() {
	cd "$_builddir"
	make || return 1
}

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

md5sums="09d5c9dc6c0bf6dd4b3fb159e1433018  abcde-2.7.1.tar.gz
44ceee10cdb97ef840e335bfd8004b6c  busybox-wget.patch
ad7864e932a297fa30f33707ed26f7fc  fix-mp3-tagging.patch
fe74a159830f7166222e772bd0677dd8  less.patch"
sha256sums="3401e39785b20edee843d4d875b47d2b559f764681c482c4491a8c8ba605f250  abcde-2.7.1.tar.gz
fb23ed7c4ae3f9ecdd4e6cdb06f4ac9788e35091b3cbc1b5999e40915f6a6ae2  busybox-wget.patch
846268428d761e7faa6a4e0fb9587f2f94d3d5a266a6053fa8ce332cfc7d3cc0  fix-mp3-tagging.patch
2ca978abccef9dacdb62466d9a25bcbc85deff332d0b5edfddfec7b131c63052  less.patch"
sha512sums="55d0d6e01af7a492367889f948b1beb3d08ecf2204d6384a93f9b3ed4b8f34fad2c1e517f56a87c2d3041bf116fe6aaa7d1ae98705e4f5f89283288588c8b48e  abcde-2.7.1.tar.gz
a7f5170a343f57699b3b22b5f5769bfeb356bd8f1bcaa7277e7c611dba3dd3dbf2e76f30c3b8cc8449601e87dd3f2da6c7e470a7cdb84feb50ac120a51fe90be  busybox-wget.patch
7e7b3658cf0934b973cd019701ec732003e0c8d3c75b9d40e7ee01f31d3e2fe9368bad06a00ec9cc5faec0a9202e2b7275eb0314d6fc6b6c24d2054fcfb9e699  fix-mp3-tagging.patch
fe89db2ac5eadd44e608a65c843bc35345d02cfc1b54fd10bf068c9a3b9ebf56b941051a008ae859f3979cd56f9eae904bb83ac73357d6dc89b8dcf2205c1c28  less.patch"