updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / mingw32-flac / PKGBUILD
blob8097f5a1c2407bd67e268837f3c37804b2715065
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=mingw32-flac
3 pkgver=20111007
4 pkgrel=1
5 pkgdesc="Free Lossless Audio Codec"
6 arch=('i686' 'x86_64')
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)
12 source=()
13 md5sums=()
15 _gitroot="git://code.entropywave.com/git/flac.git"
16 _gitname="flac"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27     cd $_gitname && git checkout ew && cd ..
28   fi
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"
37   #
38   # BUILD HERE
39   #
41   unset LDFLAGS
42   touch config.rpath
43   ./autogen.sh
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
45   make
48 package() {
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/
54