1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
5 pkgdesc="Free Lossless Audio Codec"
7 url="http://flac.sourceforge.net/"
8 license=('custom:Xiph' 'LGPL' 'GPL' 'FDL')
9 depends=('mingw32-libogg')
10 makedepends=('git' 'nasm' 'mingw32-gcc' 'mingw32-binutils' 'mingw32-w32api')
11 options=(!libtool !strip !buildflags)
15 _gitroot="git://code.entropywave.com/git/flac.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
27 cd $_gitname && git checkout ew && cd ..
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
44 ./configure --enable-shared --enable-static --disable-xmms-plugin --disable-sse --disable-rpath --prefix=/usr/i486-mingw32 --host=i486-mingw32 --disable-asm-optimizations --with-pic
49 cd "$srcdir/$_gitname-build"
51 make DESTDIR="$pkgdir/" install
52 rm -r $pkgdir/usr/i486-mingw32/share/doc/
53 rm -r $pkgdir/usr/i486-mingw32/share/man/