blob: efc61746f487230f0237eeab15ab4817c95aa629 (
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
58
59
60
61
62
63
64
65
66
67
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cdparanoia
pkgver=10.2
pkgrel=6
pkgdesc="An audio CD extraction application"
url="http://www.xiph.org/paranoia"
arch="all"
license="LGPL2+"
depends=
makedepends="libtool autoconf automake"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
patches="gcc.patch fix-includes.patch"
source="http://downloads.xiph.org/releases/cdparanoia/$pkgname-III-$pkgver.src.tgz
$patches"
_builddir="$srcdir/cdparanoia-III-$pkgver"
prepare() {
cd "$_builddir"
for i in $patches; do
msg $i
patch -p1 -i "$srcdir"/$i || return 1
done
mv configure.guess config.guess
mv configure.sub config.sub
update_config_sub || return 1
sed -i -e '/configure.\(guess\|sub\)/d' configure.in || return 1
aclocal && autoconf || return 1
libtoolize || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make -j1 || return 1
}
package() {
cd "$_builddir"
make prefix="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man install
}
libs() {
pkgname="Libraries for libcdda_paranoia (Paranoia III)"
replaces="cdparanoia"
install -d "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}
md5sums="b304bbe8ab63373924a744eac9ebc652 cdparanoia-III-10.2.src.tgz
0555411001f5546162dfb798b37ebf16 gcc.patch
0ab32817fdd8dd4abaf74185a8d0a3fc fix-includes.patch"
sha256sums="005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df cdparanoia-III-10.2.src.tgz
f754529da4318c091962aa766e9da526df7a922a2f3ac4a15d58c2935e57e739 gcc.patch
0fff8bd83311e7866b6f9b32107fa357d693c401821066354b492b75afc514bf fix-includes.patch"
sha512sums="4ab0a0f5ef44d56c1af72d1fc1035566a1a89c4eeddb9e8baea675fe51c06138d913342afc8bed167d9fa55672fa25a2763ce21f7e24c1232e4739aff20733a7 cdparanoia-III-10.2.src.tgz
27bf216e8b5b9d6971e3999166544025f166587df06065b89657dac62d0d53c01b76f53146c1e9a400dd71460567fadb8fd4ce00576836f972914d69e8855909 gcc.patch
e8a5ef0f5bcdba697d2d49e31346832bfa2460e6f6cac9256420f57c74a5da2945bdc664368c91365a880ba76e638f58773468d8e8bd16e7afcaff955a1a82ce fix-includes.patch"
|