# Maintainer (Arch): Levente Polyak # Contributor (Arch): Ionut Biru # Contributor (Arch): Allan McRae # Contributor (Arch): Alessio 'mOLOk' Bolognino # Contributor (Arch): shamrok # Maintainer: Omar Vega Ramos # Contributor: Andreas Grapentin # Contributor: André Silva # parabola changes and rationale: # - removed smtube support pkgname=smplayer pkgver=19.1.0 pkgrel=1 pkgrel+=.par1 pkgdesc='Media player with built-in codecs that can play virtually all video and audio formats' pkgdesc+=', without nonfree smtube support' url='https://www.smplayer.info/' arch=('x86_64') arch+=('i686' 'armv7h') license=('GPL') depends=('qt5-script' 'mpv' 'hicolor-icon-theme' 'libx11' 'zlib' 'gcc-libs') makedepends=('qt5-tools') optdepends=('smplayer-themes: icon themes collection' 'smplayer-skins: skin themes collection' 'youtube-dl: youtube videos and streaming' 'mplayer: alternative multimedia engine') source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2 libre.patch) sha256sums=('7a483d24c928fa51e8d48322cfd7d747fa5bf6cf587505d29a44c256abb64360' '86d93ac8d06830c767903f5526177c73570715887113a9f4694360b0f1c3ffc6') sha512sums=('aee009f0ff6dcfe8e5b0b80c99d44c41a02c34d7974c1a15b21235e3daaf3142f5c936adb043327804412309b88e0ff8f0ef440c1835541adb6bf703d486ff79' 'cbe4e873596abb175721ae737dc078e78074c50f4e96165a26849348138304fdbbef3a68655fa6f1be79dcd5d55c587c150e97650d76b832ab2a0dbaffd92ea4') prepare() { cd ${pkgname}-${pkgver} # disable SMTube support patch -p1 -i $srcdir/libre.patch # fix GNU/Linux name sed -i 's|Linux|GNU/Linux|' src/smplayer.cpp # make build reproducible, we compress ourselves sed '/gzip -9/d' -i Makefile } build() { cd ${pkgname}-${pkgver} export CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" make PREFIX=/usr \ DOC_PATH="\\\"/usr/share/doc/smplayer\\\"" \ QMAKE_OPTS=DEFINES+=NO_DEBUG_ON_CONSOLE \ CFLAGS_EXTRA="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" } package() { cd ${pkgname}-${pkgver} make DOC_PATH=/usr/share/doc/smplayer \ DESTDIR="${pkgdir}" PREFIX=/usr -j1 install } # vim: ts=2 sw=2 et: