#Packager: Dimitris Tzemos pkgname=smplayer pkgver=22.7.0 pkgrel=1dj source=("http://downloads.sourceforge.net/smplayer/smplayer-$pkgver.tar.bz2") url="http://smplayer.sourceforge.net/" docs=("Copying.txt" "Copying_BSD.txt" "Copying_libmaia.txt" "Copying_openssl.txt" "Finding_subtitles.txt" "Install.txt" "Not_so_obvious_things.txt" "Notes_about_mpv.txt" "Portable_Edition.txt" "Readme.txt" "Release_notes.txt" "Watching_TV.txt") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "smplayer (a complete front-end for MPlayer)" "smplayer intends to be a complete front-end for MPlayer, from" "basic features like playing videos, DVDs, and VCDs to more" "advanced features like support for MPlayer filters and more." "" "Homepage: http://smplayer.sourceforge.net/" ) build() { # compile cd $startdir/src/${pkgname}-${pkgver} # Fix man page path. sed -i "s/share\/man/man/g" Makefile if [ ${USE_QT5:-no} = yes ]; then QMAKE=qmake-qt5 LRELEASE=lrelease-qt5 else QMAKE=qmake LRELEASE=lrelease fi make \ QMAKE=$QMAKE \ LRELEASE=$LRELEASE \ PREFIX=/usr \ DOC_PATH="\\\"/usr/doc/${pkgname}-${pkgver}/\\\"" \ QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\"" || return 1 make install \ PREFIX=/usr \ DOC_PATH=/usr/doc/${pkgname}-${pkgver} \ DESTDIR=$startdir/pkg/ || return 1 # fix ownerships and permissions chown -R root:root $startdir/pkg }