summaryrefslogtreecommitdiff
path: root/extra/libcdio-paranoia/PKGBUILD
blob: c31a7dca8ccafb259c3248adb2234af9bd771849 (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
# $Id: PKGBUILD 174870 2013-01-08 10:06:34Z jgc $
# Maintainer:
# Contributor: damir <damir@archlinux.org>

pkgname=libcdio-paranoia
pkgver=10.2+0.90
pkgrel=1.1
pkgdesc="CD paranoia libraries from libcdio"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL')
url="http://www.gnu.org/software/libcdio/"
depends=('libcdio')
options=('!libtool')
source=(http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.bz2{,.sig}
        header-fix.patch)
md5sums=('432e9f1c5ceb645c4bca9db3f9297437'
         '39766404d473ecda66c2f3a932d1c57c'
         '1ebb33a1cfe00181de31138ef001e01b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np0 -i ../header-fix.patch
  sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
  aclocal
  autoconf
  automake --add-missing
  ./configure --prefix=/usr --enable-cpp-progs --disable-static --disable-example-progs
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make -j1 DESTDIR="${pkgdir}" install
  
  #sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \
  #  $pkgdir/usr/include/cdio/cdio_config.h
}