summaryrefslogtreecommitdiff
path: root/pcr/tvenlinux-desktop/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-14 19:20:46 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-14 19:20:46 -0400
commitf7fd1d99d87f11c41cf09f881b1aeb950a3c8e13 (patch)
tree95910fb3078e1136e35aaa6d9f0f251cdb4ca1a8 /pcr/tvenlinux-desktop/PKGBUILD
parent09c1bb45d89c78a9fd80c7a500cb29a0908dc668 (diff)
parentcd640e7ca0a8968edf887d03db8224334f663e84 (diff)
downloadabslibre-f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13.tar.gz
abslibre-f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13.tar.bz2
abslibre-f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13.zip
Merge branch 'master' of git://projects.parabolagnulinux.org/abslibre
Diffstat (limited to 'pcr/tvenlinux-desktop/PKGBUILD')
-rw-r--r--pcr/tvenlinux-desktop/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/tvenlinux-desktop/PKGBUILD b/pcr/tvenlinux-desktop/PKGBUILD
new file mode 100644
index 000000000..0af13211d
--- /dev/null
+++ b/pcr/tvenlinux-desktop/PKGBUILD
@@ -0,0 +1,49 @@
+# Contributor (Arch) : ValHue <vhuelamo at gmail dot com>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+# https://github.com/ValHue/AUR-PKGBUILDs
+
+pkgname=tvenlinux-desktop
+pkgver=20140127
+pkgrel=2
+pkgdesc="Simple bash script to watch and record TV on GNU/Linux/BSD without capture card/tuner. (TV in Spain, Peru, Chile, Cuba, Venezuela, Bolivia and Argentina)"
+url="http://www.tvenlinux.com/"
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('mplayer' 'rtmpdump')
+optdepends=('zenity: for GTK users' 'kdialog: for QT users' 'curl: for view EPG (Electronic Program Guide)')
+source=("http://www.tvenlinux.com/TVenLinux_2.sh" "http://www.tvenlinux.com/busi_tv.png")
+
+_pkgname="TVenLinux"
+
+_pkgname_desktop="#!/usr/bin/env xdg-open
+[Desktop Entry]
+Name=TVenLinux
+Exec=TVenLinux
+Icon=TVenLinux
+Type=Application
+Comment=Script to view more than 160 channels in Spanish TDT.
+Comment[es]=Script para ver más de 160 canales de TDT en Español.
+Terminal=false
+Categories=GNOME;AudioVideo;P2P;Video;TV;GTK;
+MimeType=x-scheme-handler/sop;"
+
+pkgver() {
+ cd "${srcdir}"
+ cat TVenLinux_2.sh | grep -e 'V_script=' | sed -e 's/V_script=//;s/"//g;s/;//;s/\///g;s/^\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)/\5\6\7\8\3\4\1\2/'
+}
+
+build() {
+ cd "${srcdir}"
+ mv busi_tv.png ${_pkgname}.png
+ echo -e "${_pkgname_desktop}" | tee ${_pkgname}.desktop
+}
+
+package() {
+ cd "${srcdir}"
+ install -d ${pkgdir}/usr/share/applications
+ install -d ${pkgdir}/usr/share/pixmaps
+ install -d ${pkgdir}/usr/bin
+ install -m 755 ${_pkgname}_2.sh ${pkgdir}/usr/bin/${_pkgname}
+ install -m 644 ${_pkgname}.desktop ${pkgdir}/usr/share/applications
+ install -m 644 ${_pkgname}.png ${pkgdir}/usr/share/pixmaps
+}