PKGBUILDs/extra/cdrdao/PKGBUILD
2009-10-09 21:23:22 -05:00

40 lines
1.5 KiB
Bash

# $Id: PKGBUILD 49925 2009-08-16 21:37:34Z jgc $
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=cdrdao
pkgver=1.2.3rc2
pkgrel=1
pkgdesc="Records audio/data CD-Rs in disk-at-once (DAO) mode"
arch=(i686 x86_64)
license=('GPL')
url="http://cdrdao.sourceforge.net/"
depends=('gcc-libs' 'lame' 'libmad' 'libvorbis' 'libao')
source=(ftp://ftp.archlinux.org/other/cdrdao/${pkgname}-${pkgver}.tar.bz2
cdrdao-1.2.3-autoconf-update.patch
cdrdao-1.2.3-gcc44.patch
cdrdao-1.2.3-k3b.patch
cdrdao-1.2.3-pkg-config.patch
cdrdao-1.2.3-toc2cue.patch
cdrdao-1.2.3-tocparser.patch)
md5sums=('862f35eeb1c148db8bea99abb4a643fc'
'8e53dfc174f7c0882194caa05e68b85e'
'0e09ec11d6804d8db2eccaeb539f3f83'
'696f6ca01e1eeb9b6a5be88e535d9398'
'829ff219a1c98a0fcccd9ab3ced0cbd1'
'6982de2c8ae02169ef5756b5ca1d03a8'
'e4afe12b00f686562056b66b29a7e6e4')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/cdrdao-1.2.3-autoconf-update.patch" || return 1
patch -Np1 -i "${srcdir}/cdrdao-1.2.3-gcc44.patch" || return 1
patch -Np1 -i "${srcdir}/cdrdao-1.2.3-k3b.patch" || return 1
patch -Np1 -i "${srcdir}/cdrdao-1.2.3-pkg-config.patch" || return 1
patch -Np1 -i "${srcdir}/cdrdao-1.2.3-toc2cue.patch" || return 1
patch -Np1 -i "${srcdir}/cdrdao-1.2.3-tocparser.patch" || return 1
aclocal || return 1
autoconf || return 1
automake || return 1
./configure --prefix=/usr --with-lame || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
}