#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=smpeg
pkgver=r380
pkgrel=1gv
arch=x86_64
source=("http://pnboy.pinguix.com/gapan/sources/smpeg/smpeg-$pkgver.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://icculus.org/smpeg/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"smpeg (an mpeg decoding library)"
"smpeg is an mpeg decoding library, which runs on just about any"
"platform. It comes with a sample decoder, plaympeg (console, no UI)"
)


build() {
	cd $startdir/src/$pkgname
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-gtk-player
	make || return 1
	make install DESTDIR=$startdir/pkg

	# we don't need the static lib
	rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libsmpeg.a
}