#Packager: George Vlahavas (vlahavas~at~gmail~dot~com)
#Previous packager: Thorsten Muehlfelder <thenktor@gmx.de>

pkgname=libdvdnav
pkgver=4.2.0
pkgrel=2gv
source=("http://dvdnav.mplayerhq.hu/releases/libdvdnav-$pkgver.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=http://dvdnav.mplayerhq.hu/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libdvdnav (DVD navigation library)"
"libdvdnav is a library that allows easy use of sophisticated DVD"
"navigation features such as DVD menus, multiangle playback and even"
"interactive DVD games."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	sed -i "s/-O3/$CFLAGS/" configure2
	./configure2 --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--shlibdir=/usr/lib${LIBDIRSUFFIX} \
		--disable-static
	make || return 1
	make install DESTDIR=$startdir/pkg
}