summaryrefslogtreecommitdiff
path: root/libre/smplayer/PKGBUILD
blob: 6b419ca8a830ff49a83dd3415c90f5cd97c30363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 266952 2016-05-05 15:20:22Z arojas $
# Maintainer (Arch):
# Contributor (Arch): Ionut Biru <ibiru@archlinux.org>
# Contributor (Arch): Allan McRae <allan@archlinux.org>
# Contributor (Arch): Alessio 'mOLOk' Bolognino <themolok@gmail.com>
# Contributor (Arch): shamrok <szamrok@gmail.com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgname=smplayer
pkgver=16.4.0
pkgrel=3.parabola1
pkgdesc="A complete front-end for MPlayer, without nonfree smtube recommendation"
arch=('i686' 'x86_64' 'armv7h')
url="http://smplayer.sourceforge.net/"
license=('GPL')
depends=('qt5-script' 'mplayer' 'hicolor-icon-theme')
makedepends=('qt5-tools')
optdepends=('smplayer-themes: icon themes collection'
            'smplayer-skins: skin themes collection'
            'mpv: for using mpv instead of mplayer')
source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 smplayer-dock-playlist-qt5.patch)
md5sums=('b89975a1edc60e1ea89159e4bd7cde07'
         'e0cfdf29daf815404501a11e7ebac2eb')

prepare() {
  cd $pkgname-$pkgver
# Fix crash in kwin
  patch -p0 -i ../smplayer-dock-playlist-qt5.patch

  sed -i 's|DEFINES [+][=] YOUTUBE_SUPPORT|#DEFINES += YOUTUBE_SUPPORT|
          s|DEFINES [+][=] YT_USE_SCRIPT|#DEFINES += YT_USE_SCRIPT|
         ' src/smplayer.pro

  # fix GNU/Linux name
  sed -i 's|Linux|GNU/Linux|' src/smplayer.cpp
}

build() {
  cd $pkgname-$pkgver
  make PREFIX=/usr \
    DOC_PATH="\\\"/usr/share/doc/smplayer\\\"" \
    QMAKE_OPTS=DEFINES+=NO_DEBUG_ON_CONSOLE
}

package() {
  cd $pkgname-$pkgver
  make DOC_PATH=/usr/share/doc/smplayer \
    DESTDIR="$pkgdir" PREFIX="/usr" install
}