summaryrefslogtreecommitdiff
path: root/community/smtube
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/smtube
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/smtube')
-rw-r--r--community/smtube/PKGBUILD31
-rw-r--r--community/smtube/smtube.install12
2 files changed, 43 insertions, 0 deletions
diff --git a/community/smtube/PKGBUILD b/community/smtube/PKGBUILD
new file mode 100644
index 000000000..75e841a48
--- /dev/null
+++ b/community/smtube/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 93959 2013-07-12 01:36:36Z speps $
+# Maintainer : speps <speps at aur dot archlinux dot org>
+# Contributor: Andreas Schnaiter <rc.poison@gmail.com>
+
+pkgname=smtube
+pkgver=1.7
+pkgrel=1
+pkgdesc="A small youtube browser"
+arch=('i686' 'x86_64')
+url="http://smplayer.sourceforge.net"
+license=('GPL')
+depends=('qt4')
+optdepends=('mplayer: play videos with MPlayer'
+ 'smplayer: play videos with SMPlayer'
+ 'gnome-mplayer: play videos with GNOME MPlayer'
+ 'kdemultimedia-dragonplayer: play videos with Dragon Player'
+ 'totem: play videos with Totem'
+ 'vlc: play videos with VLC')
+install="$pkgname.install"
+source=("http://downloads.sourceforge.net/smplayer/$pkgname-$pkgver.tar.bz2")
+md5sums=('d9a954e1b337f0c850dcfc6063255056')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX=/usr QMAKE=qmake-qt4 LRELEASE=lrelease-qt4
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX=/usr DESTDIR="$pkgdir/" install
+}
diff --git a/community/smtube/smtube.install b/community/smtube/smtube.install
new file mode 100644
index 000000000..029294d67
--- /dev/null
+++ b/community/smtube/smtube.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}