1505c31522
Closes #13510. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
33 lines
1.4 KiB
Bash
33 lines
1.4 KiB
Bash
# Template file for 'tvbrowser'
|
|
pkgname="tvbrowser"
|
|
version="4.0.1"
|
|
revision=1
|
|
short_desc="Ad free open source TV guide for more than 1000 channels"
|
|
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
|
|
license="GPL-3"
|
|
homepage="http://tvbrowser.org"
|
|
distfiles="${SOURCEFORGE_SITE}/tvbrowser/TV-Browser%20Releases%20%28Java%208%20and%20higher%29/${version}/tvbrowser_${version}_bin.tar.gz
|
|
http://www.tvbrowser.org/images/tvbrowser/tvbrowser_logo.svg"
|
|
checksum="f51eb0f419169cd14eadf8c3eb7bbed2f032ac619aaf373d2ffa2b665c8e1a2a
|
|
d5bcdf07965ef86fcaa0cb3e0dbde07ff370dd8af4e89d0d75f328e3c1631c4e"
|
|
skip_extraction="tvbrowser_logo.svg"
|
|
noarch=1
|
|
depends="virtual?java-runtime hicolor-icon-theme bash"
|
|
|
|
post_extract() {
|
|
sed -i 's/^#PROGRAM_DIR="[^"]*/PROGRAM_DIR="\/usr\/share\/java\/tvbrowser/' tvbrowser.sh
|
|
sed -i 's/tvbrowser.sh/tvbrowser/g' tvbrowser.desktop
|
|
sed -i 's/imgs\/tvbrowser128\.png/tvbrowser/g' tvbrowser.desktop
|
|
}
|
|
do_install() {
|
|
vmkdir /usr/share/java/tvbrowser 755
|
|
vcopy \* /usr/share/java/tvbrowser
|
|
vlicense COPYRIGHT.txt
|
|
vlicense LICENSE.txt
|
|
vinstall tvbrowser.desktop 644 /usr/share/applications
|
|
vbin tvbrowser.sh tvbrowser
|
|
vinstall "${XBPS_SRCDISTDIR}/tvbrowser-${version}/tvbrowser_logo.svg" 644 /usr/share/icons/hicolor/scalable/apps tvbrowser.svg
|
|
for _s in 16 32 48 128; do
|
|
vinstall "imgs/tvbrowser${_s}.png" 644 "/usr/share/icons/hicolor/${_s}x${_s}/apps" tvbrowser.png
|
|
done
|
|
}
|