summaryrefslogtreecommitdiff
path: root/libre/smplayer
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-13 18:59:26 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-13 18:59:26 -0500
commitf8041d5d9cb07b133bf8acf76ed6cc86de5ecff7 (patch)
tree3f5a65f9d5c6e5caab64a00b42a7faf446044496 /libre/smplayer
parentccaede44f759b76f7d120ab891a50a9eb048648c (diff)
smplayer: add new package to [libre]
Diffstat (limited to 'libre/smplayer')
-rw-r--r--libre/smplayer/PKGBUILD35
-rw-r--r--libre/smplayer/smplayer.install12
2 files changed, 47 insertions, 0 deletions
diff --git a/libre/smplayer/PKGBUILD b/libre/smplayer/PKGBUILD
new file mode 100644
index 000000000..43d9b0609
--- /dev/null
+++ b/libre/smplayer/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer (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>
+
+pkgname=smplayer
+pkgver=14.9.0.6690
+pkgrel=1.parabola1
+pkgdesc="A complete front-end for MPlayer, without nonfree smtube recommendation"
+arch=('i686' 'x86_64')
+url="http://smplayer.sourceforge.net/"
+license=('GPL')
+depends=('qt5-script' 'mplayer' 'hicolor-icon-theme' 'libxkbcommon-x11')
+makedepends=('qt5-tools')
+optdepends=('smplayer-themes: icon themes collection'
+ 'smplayer-skins: skin themes collection'
+ 'mpv: for using mpv instead of mplayer')
+install=smplayer.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
+md5sums=('75d8947682de96f7bf29c6f1a2f21391')
+
+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
+}
diff --git a/libre/smplayer/smplayer.install b/libre/smplayer/smplayer.install
new file mode 100644
index 000000000..6481cee07
--- /dev/null
+++ b/libre/smplayer/smplayer.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}