summaryrefslogtreecommitdiff
path: root/repo/cdparanoia/cdparanoia.xibuild
blob: 5ff279fd7cee31ea5aba5039c71cd58a143bed03 (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
#!/bin/sh

NAME="cdparanoia"
DESC="An audio CD extraction application"

MAKEDEPS="libtool autoconf automake linux-headers"

PKG_VER=10.2
SOURCE="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-$PKG_VER.src.tgz"

ADDITIONAL="
fix-includes.patch
gcc.patch
no-cuserid.patch
"



prepare() {
    apply_patches

	mv configure.guess config.guess
	mv configure.sub config.sub
	sed -i -e '/configure.\(guess\|sub\)/d' configure.in
	aclocal && autoconf
	libtoolize
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make -j1
}

package() {
	make prefix="$PKG_DEST"/usr MANDIR="$PKG_DEST"/usr/share/man install
}