#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-mpeg_lib rm -rf $PKG mkdir -p $PKG VERSION=1.3.1 ARCH=x86_64 BUILD=1 cd $TMP tar xzvf $CWD/mpeg_lib-1.3.1.tar.gz cd mpeg_lib-1.3.1 LDFLAGS="-L/usr/lib64" \ EXTRA_CFLAGS="-O2 -fPIC" \ ./configure --prefix=/usr \ --libdir=/usr/lib64 \ --sysconfdir=/etc \ x86_64-slackware-linux EXTRA_CFLAGS="-O2 -fPIC" make mkdir -p $PKG/usr/lib64 cp libmpeg.a $PKG/usr/lib64 mkdir -p $PKG/usr/include cp -a mpeg.h $PKG/usr/include chown root:root $PKG/usr/include/mpeg.h chmod 644 $PKG/usr/include/mpeg.h mkdir -p $PKG/usr/doc/libmpeg-1.3.1 cp -a CHANGES README test.mpg doc $PKG/usr/doc/libmpeg-1.3.1 chown -R root:root $PKG/usr/doc/libmpeg-1.3.1 chmod 644 $PKG/usr/doc/libmpeg-1.3.1/* $PKG/usr/doc/libmpeg-1.3.1/doc/* chmod 755 $PKG/usr/doc/libmpeg-1.3.1/doc mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/mpeg_lib-$VERSION-$ARCH-$BUILD.tgz