#Maintainer: Dimitris Tzemos pkgname=smpeg2 pkgver=2.0.0 pkgrel=1dj source=("http://www.libsdl.org/projects/smpeg/release/$pkgname-$pkgver.tar.gz" "smpeg2-config.patch") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("AUTHORS" "COPYING" "LICENSE" "README" "NEWS" "THANKS" "TODO") url="http://www.libsdl.org/projects/SDL_mixer" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "SDL2_mixer (sample multi-channel audio mixer library)" "SDL_mixer is a sample multi-channel audio mixer library. It supports" "any number of simultaneously playing channels of 16-bit stereo audio," "plus a single channel of music." "" "Homepage: http://www.libsdl.org/projects/SDL_mixer/" ) build() { cd $SRC/$pkgname-$pkgver set -e -o pipefail patch -p0 -E --backup --verbose -i ${SRC}/smpeg2-config.patch || return 1 set +e +o pipefail ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --infodir=/usr/info \ --mandir=/usr/man \ --docdir=/usr/doc/${pkgname}-${pkgver} \ --disable-silent-rules \ --disable-static \ --disable-dependency-tracking \ --disable-rpath \ --build=$arch-slackware-linux make || return 1 make install DESTDIR=$PKG || return 1 rm -f ${PKG}/usr/lib*/*.la mv ${PKG}/usr/bin/plaympeg ${PKG}/usr/bin/plaympeg2 || return 1 mv ${PKG}/usr/man/man1/plaympeg.1 ${PKG}/usr/man/man1/plaympeg2.1 || return 1 }