multimedia/w_scan_cpp: Added (DVB Scanner).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrea Sacchetti Picchio 2024-01-18 07:46:55 +07:00 committed by Willy Sudiarto Raharjo
parent 30e19a1a06
commit 55e4df827a
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 170 additions and 0 deletions

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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"