### this file is sourced not run
PKGVER=0.399
PKGBUILD=1
PKGARCH=i686

# source: james
# note: have to stick with revision 399, anything newer will need SDL 2.0

TARBALL=smpeg-r399.tar.bz2
MD5SUM=f59425d6e0db9cbdebccdbc18c289c20
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='' # 
SLACKDESC="libsmpeg32: libsmpeg32 $PKGVER (MPEG decoding library)  
libsmpeg32:  
libsmpeg32: smpeg is an mpeg decoding library, which runs on just about any 
libsmpeg32: platform. It comes with two sample decoders, plaympeg (console, no UI), 
libsmpeg32: and gtv, a simple GTK+ interface.  
libsmpeg32: 
libsmpeg32: This is revision 399 of smpeg for use with SDL 1.2.
libsmpeg32: Newer revision requires SDL 2.0
libsmpeg32: 
libsmpeg32: This contains 32-bit version of the library.
libsmpeg32:  
"

### default pkg_download
### default pkg_prepare

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share &&
	mkdir -p usr/bin &&
	mv tmp/*-32 usr/bin
}

### build
pkg_build() {
	cd /tmp/smpeg*
	./autogen.sh &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/smpeg-config /tmp/smpeg-config-32
}
