LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [Tinycore 64bit 13x] free build script for celluloid for TC users (https://www.linuxquestions.org/questions/linux-software-2/%5Btinycore-64bit-13x%5D-free-build-script-for-celluloid-for-tc-users-4175712292/)

aus9 05-18-2022 06:54 AM

[Tinycore 64bit 13x] free build script for celluloid for TC users
 
I no longer post on TC so if anyone wants this script and change it to your username,
of course you need to test it. It works fine for me on mp3s and mp4s
My wmv sample needed settings to skip playback errors otherwise the sound worked but the picture hanged.

Code:

#!/bin/sh
# test we are root
if [ "$(id -u)" != "0" ]; then
  echo "run as root now exitting"
  exit 1
fi

CFLAGS="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe"
CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"

P=celluloid
V=0.23
SRC=$P-$V
USER=`cat /etc/sysconfig/tcuser`

LIST="submitqc compiletc meson appstream-glib-dev gtk4-dev mpv-dev"
for Z in $LIST
    do
    su -c "tce-load -i $Z" $USER
done

cd /tmp
su -c "/usr/local/bin/wget -nc --no-check-certificate \
https://github.com/$P-player/$P/releases/download/v$V/$SRC.tar.xz \
https://www.dropbox.com/s/k1shup4p2lyrext/celluloid.png  "  $USER

mkdir $P
xz -d $SRC*xz
tar xvf $SRC.tar
cd $SRC
./configure --prefix=/usr/local  --disable-nls
make -j5  # seconds
make install-strip DESTDIR=/tmp/$P
cd /tmp

# doc
#####
mkdir -p $P-doc/usr/local/share/doc/$P
mv $P/usr/local/share/man $P-doc/usr/local/share
cp $SRC/AUTHORS $P-doc/usr/local/share/doc/$P
cp $SRC/COPYING $P-doc/usr/local/share/doc/$P/

# main
#####
# icon is svg lets use png converted using mtpaint, command not showing here
mkdir -p $P/usr/local/share/pixmaps
cp $P.png $P/usr/local/share/pixmaps/

APP=$P/usr/local/share/applications
mv $APP/*desktop $APP/$P.desktop
echo 'X-FullPathIcon=/usr/local/share/pixmaps/celluloid.png' >> $APP/$P.desktop

mkdir -p $P/usr/local/share/doc/$P
echo 'see doc tcz for license' > $P/usr/local/share/doc/$P/COPYING

mkdir -p $P/usr/local/tce.installed
echo '#!/bin/sh
/usr/local/tce.installed/gtk4
' > $P/usr/local/tce.installed/$P
chown -R root:staff $P/usr/local/tce.installed
chmod -R 755 $P/usr/local/tce.installed

# TCZ them
###########
LIST="$P $P-doc  "
for Z in $LIST
do
        mksquashfs $Z $Z.tcz
        md5sum $Z.tcz > $Z.tcz.md5.txt
        cd $Z
        find usr -not -type d > /tmp/$Z.tcz.list
        sed 's|usr|/usr|g' -i /tmp/$Z.tcz.list
        cd /tmp
done

ls -hal

echo 'Title:          celluloid-doc.tcz
Description:    docs 
Version:        0.23
Author:        see doc
Original-site:  https://github.com/celluloid-player/celluloid
Copying-policy: GPL v3
Size:          24K                   
Extension_by:  you
Tags:          GUI media player
Comments:      docs and man page
                     
Change-log:    2022/05/18 v 0.23 on 13x
Current:        2022/05/18
' > $P-doc.tcz.info

echo 'Title:          celluloid.tcz
Description:    gtk4 front end to mpv
Version:        0.23
Author:        see doc TCE
Original-site:  https://github.com/celluloid-player/celluloid
Copying-policy: GPL v3
Size:          300K                                 
Extension_by:  you
Tags:          GUI media player
Comments:      Front end to mpv running on Gtk4.
                Online help at original site or man page

                Setup sound and graphics first

                If you get a schema error run
                $ sudo /usr/local/tce.installed/gtk4

Change-log:    2022/05/18 v 0.23 on 13x
Current:        2022/05/18
' > $P.tcz.info

echo 'man-db.tcz' > $P-doc.tcz.dep

echo 'gtk4.tcz
mpv.tcz
tracker3.tcz
libcups.tcz
colord.tcz
gst-plugins-bad.tcz' > $P.tcz.dep

submitqc --libs



All times are GMT -5. The time now is 03:34 PM.