summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 675f4d49d88ecac7aa769d93520fab54eb18f2f4 (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
pkgname=smtube-svn
pkgver=15.5.17.r6953
pkgrel=1
pkgdesc="Search, download and play videos from YouTube. SVN build."
arch=('i686' 'x86_64')
url="http://smtube.sourceforge.net"
license=('GPL')
depends=('qt5-script' 'qt5-webkit' 'hicolor-icon-theme' 'libxkbcommon-x11')
makedepends=('subversion' 'qt5-tools')
optdepends=('smplayer: play videos with SMPlayer'
            'mpv: play videos with mpv'
            'gnome-mplayer: play videos with GNOME MPlayer'
            'kdemultimedia-dragonplayer: play videos with Dragon Player'
            'totem: play videos with Totem'
            'vlc: play videos with VLC')
provides=('smtube')
conflicts=('smtube')
install="$pkgname.install"
source=('smtube::svn+https://subversion.assembla.com/svn/smplayer/smtube/trunk/')
md5sums=('SKIP')

pkgver() {
  cd "$SRCDEST"/smtube
  echo $(grep -m1 "VERSION \"" src/version.cpp | cut -d " " -f3 | sed -e 's/^"\(.*\)"$/\1/').r$(svnversion)
}

build() {
  cd "$srcdir/smtube"
   make clean
  ./get_svn_revision.sh
  make PREFIX="/usr"
}

package() {
  cd "$srcdir/smtube"
  make PREFIX="/usr" DESTDIR="$pkgdir" install
}