From 55e4df827a2ac6e2c720a9aeded8ada1e7ec2c66 Mon Sep 17 00:00:00 2001 From: Andrea Sacchetti Picchio Date: Thu, 18 Jan 2024 07:46:55 +0700 Subject: multimedia/w_scan_cpp: Added (DVB Scanner). Signed-off-by: Willy Sudiarto Raharjo --- multimedia/w_scan_cpp/README | 11 +++ multimedia/w_scan_cpp/slack-desc | 19 +++++ multimedia/w_scan_cpp/w_scan_cpp.SlackBuild | 124 ++++++++++++++++++++++++++++ multimedia/w_scan_cpp/w_scan_cpp.info | 16 ++++ 4 files changed, 170 insertions(+) create mode 100644 multimedia/w_scan_cpp/README create mode 100644 multimedia/w_scan_cpp/slack-desc create mode 100644 multimedia/w_scan_cpp/w_scan_cpp.SlackBuild create mode 100644 multimedia/w_scan_cpp/w_scan_cpp.info (limited to 'multimedia/w_scan_cpp') diff --git a/multimedia/w_scan_cpp/README b/multimedia/w_scan_cpp/README new file mode 100644 index 0000000000..886c37804c --- /dev/null +++ b/multimedia/w_scan_cpp/README @@ -0,0 +1,11 @@ +w_scan_cpp is a dtv channel scanner based on VDR and it's Plugins. + +It uses (and therefore links to and includes part of) + 1. VDR Plugin framework + https://www.tvdr.de + 2. VDR satip Plugin + https://github.com/rofafor/vdr-plugin-satip + 3. VDR wirbelscan Plugin + https://www.gen2vdr.de/wirbel/wirbelscan/index2.html + 4. librepfunc + https://github.com/wirbel-at-vdr-portal/librepfunc diff --git a/multimedia/w_scan_cpp/slack-desc b/multimedia/w_scan_cpp/slack-desc new file mode 100644 index 0000000000..0e7e7040b9 --- /dev/null +++ b/multimedia/w_scan_cpp/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +w_scan_cpp: w_scan_cpp (dtv channel scanner) +w_scan_cpp: +w_scan_cpp: w_scan_cpp is a dtv channel scanner based on VDR and it's Plugins +w_scan_cpp: +w_scan_cpp: +w_scan_cpp: +w_scan_cpp: +w_scan_cpp: +w_scan_cpp: +w_scan_cpp: Homepage: https://www.gen2vdr.de/wirbel/w_scan_cpp/index2.html +w_scan_cpp: diff --git a/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild b/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild new file mode 100644 index 0000000000..d12732059e --- /dev/null +++ b/multimedia/w_scan_cpp/w_scan_cpp.SlackBuild @@ -0,0 +1,124 @@ +#!/bin/bash + +# Slackware build script for w_scan_cpp + +# Copyright 2024 Andrea Sacchetti Picchio Italy +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=w_scan_cpp +VERSION=${VERSION:-20231015} +VERSION_vdr=${VERSION_vdr:-2.6.5} +VERSION_satip=${VERSION_satip:-2.4.1} +VERSION_wirbelscan=${VERSION_wirbelscan:-2023.10.15} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} +NUMJOBS=${NUMJOBS:-" -j$(nproc) "} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +tar xvf $CWD/vdr-$VERSION_vdr.tar.gz +mv vdr-$VERSION_vdr vdr +cd vdr/PLUGINS/src +tar xvf $CWD/vdr-plugin-satip-$VERSION_satip.tar.gz +mv vdr-plugin-satip-$VERSION_satip satip +tar xvf $CWD/vdr-wirbelscan-$VERSION_wirbelscan.tgz +mv wirbelscan-$VERSION_wirbelscan wirbelscan +cd $TMP/$PRGNAM-$VERSION + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Fix +sed "s/satip.h/satip.c/" -i Library.cpp +sed "/ParseLCN/s/false/true/" -i vdr/PLUGINS/src/wirbelscan/common.cpp + +CFLAGS="$SLKCFLAGS -z muldefs" \ +CXXFLAGS="$SLKCFLAGS -z muldefs" \ + make $NUMJOBS install DESTDIR=$PKG prefix=/usr + +# Fix DIR +mv $PKG/usr/share/man $PKG/usr +rm -rf $PKG/usr/share + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CONTRIBUTORS COPYING HISTORY README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/multimedia/w_scan_cpp/w_scan_cpp.info b/multimedia/w_scan_cpp/w_scan_cpp.info new file mode 100644 index 0000000000..fc22ea9bb1 --- /dev/null +++ b/multimedia/w_scan_cpp/w_scan_cpp.info @@ -0,0 +1,16 @@ +PRGNAM="w_scan_cpp" +VERSION="20231015" +HOMEPAGE="https://www.gen2vdr.de/wirbel/w_scan_cpp/index2.html" +DOWNLOAD="https://www.gen2vdr.de/wirbel/w_scan_cpp/w_scan_cpp-20231015.tar.bz2 \ + https://www.gen2vdr.de/wirbel/wirbelscan/vdr-wirbelscan-2023.10.15.tgz \ + https://github.com/rofafor/vdr-plugin-satip/archive/v2.4.1/vdr-plugin-satip-2.4.1.tar.gz \ + https://github.com/vdr-projects/vdr/archive/2.6.5/vdr-2.6.5.tar.gz" +MD5SUM="ac6bca5260c571f81648bf735c0731b8 \ + 8a012699c1dd1e6ef9b8dd2ddc60d6af \ + cd9ff5d2b47c3e55d64dbc375f84a5a7 \ + ded2dd49fd81368d5789393ed087c382" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="pugixml librepfunc" +MAINTAINER="Andrea Sacchetti Picchio" +EMAIL="andrea dot sacchettipicchio at gmail dot com" -- cgit v1.2.3-79-gdb01