summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/flac/PKGBUILD
blob: ce31e8b687275637523bbbf30474533d843c60ff (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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Paul Mattal <paul@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=flac
pkgver=1.2.1
pkgrel=1
pkgdesc="Free Lossless Audio Codec"
license=('custom:Xiph' 'LGPL' 'GPL' 'FDL')
url="http://flac.sourceforge.net/"
arch=(i686 x86_64)
options=('!libtool')
depends=('glibc' 'libogg')
makedepends=('nasm' 'xmms')
source=(http://downloads.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
	flac-1.2.1-gcc43.patch)
md5sums=('153c8b15a54da428d1f0fadc756c22c7' '4922379f33c86792630b624ddc83b236')

build() {
  # -j1 to get the xmms plugin working (from gentoo)
  export MAKEFLAGS="-j1"
  cd $startdir/src/$pkgname-$pkgver || return 1
  patch -Np1 -i $startdir/src/flac-1.2.1-gcc43.patch
  ./configure --prefix=/usr --enable-shared --disable-sse \
    --disable-rpath --with-pic || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1

  # install license
  install -Dm0644 $startdir/src/$pkgname-$pkgver/COPYING.Xiph \
                  $startdir/pkg/usr/share/licenses/$pkgname/COPYING.Xiph
}