--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/mad.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libmad.a
+-rwxr-xr-x root/root usr/lib/libmad.la
+lrwxrwxrwx root/root usr/lib/libmad.so -> libmad.so.0.2.1
+lrwxrwxrwx root/root usr/lib/libmad.so.0 -> libmad.so.0.2.1
+-rwxr-xr-x root/root usr/lib/libmad.so.0.2.1
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/mad.pc
--- /dev/null
+1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz
+1cef30792b753edc633e5a0122897e59 mad.pc
--- /dev/null
+# Description: High-quality MPEG Audio Decoder library
+# URL: http://www.underbit.com/products/mad/
+# Packager: Rene Thuemmler, rene dot thuemmler at gmx dot net
+# Maintainer: Simon Glossner, viper at hometux dot de
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+
+name=libmad
+version=0.15.1b
+release=4
+source=(http://download.sourceforge.net/mad/${name}-${version}.tar.gz \
+ mad.pc)
+
+build() {
+ # We avoid thumb instructions over CFLAGS
+ export CFLAGS="$(echo $CFLAGS | sed -e 's/\-mthumb//')"
+
+ mkdir -p $PKG/usr/lib/pkgconfig/
+ sed "s/#version#/$version/" mad.pc > $PKG/usr/lib/pkgconfig/mad.pc
+
+ cd $name-$version
+
+ # remove -fforce-mem
+ sed -i '19102d' configure
+
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG install
+}
--- /dev/null
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: mad
+Description: MPEG Audio Decoder
+Requires:
+Version: #version#
+Libs: -L${libdir} -lmad -lm
+Cflags: -I${includedir}