blob: fa69e9dbab06c168a49b7f994c92ce418cba835c (
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
|
# $Id: PKGBUILD 135033 2011-08-09 23:31:20Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgbase=flac
pkgname=('flac' 'flac-doc')
pkgver=1.2.1
pkgrel=3.2
arch=('i686' 'x86_64' 'mips64el')
url="http://flac.sourceforge.net/"
license=('BSD' 'GPL')
depends=('libogg')
makedepends=('nasm' 'xmms')
[ "$CARCH" = "mips64el" ] && \
makedepends=('nasm') # xmms doesn't build on mips
options=('!libtool' '!makeflags')
source=(http://downloads.sf.net/sourceforge/${pkgbase}/${pkgbase}-${pkgver}.tar.gz
flac-1.2.1-gcc-4.3-includes.patch)
md5sums=('153c8b15a54da428d1f0fadc756c22c7'
'b9d245422bbc547b18a72897366bea77')
sha1sums=('bd54354900181b59db3089347cc84ad81e410b38'
'7e9f8c2ef4d9daf5ddd20df63b608fe19b8c1560')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
patch -Np1 -i "${srcdir}/flac-1.2.1-gcc-4.3-includes.patch"
./configure --prefix=/usr --mandir=/usr/share/man --enable-shared \
--disable-sse --disable-rpath --with-pic
make
}
check() {
cd "${srcdir}/${pkgbase}-${pkgver}"
make check
}
package_flac() {
pkgdesc="Free Lossless Audio Codec"
optdepends=('xmms: for using the xmms plugin')
[ "$CARCH" = "mips64el" ] && \
unset optdepends
options=('!libtool' '!docs')
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_flac-doc() {
pkgdesc="Developer documentation for the Free Lossless Audio Codec"
depends=('flac')
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" -C doc install
install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|