#Packager: Dimitris Tzemos <djemos~at~slackel~dot~gr>

pkgname=smplayer-themes
pkgver=15.12.0
pkgrel=1dj
arch=noarch
source=(http://downloads.sourceforge.net/smplayer/$pkgname-$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-themes (Themes for SMPlayer)"
)

build() {
	# compile
	cd $startdir/src/${pkgname}-${pkgver}
	# Fix invalid PNG icons to work with libpng 1.6
	find -name '*.png' -exec optipng -quiet -force -fix {} +
	make -j $numjobs PREFIX=/usr || return 1
	make PREFIX=/usr DESTDIR=$startdir/pkg/ install || return 1

	# fix ownerships and permissions
	chown -R root:root $startdir/pkg
}