LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2022, 06:54 AM   #1
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
[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
 
  


Reply

Tags
celluloid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Tinycore TC64 13x] kernel environment commands aus9 Linux - General 0 01-15-2022 09:54 AM
[Tinycore Linux 64bit] one way to run firefox from unpack aus9 Linux - Software 2 12-16-2018 06:00 AM
Tinycore 64bit TCZ for Eterm aus9 Linux - Software 5 12-02-2017 06:06 PM
Tinycore 64bit TCZ for nano aus9 Linux - Software 3 09-27-2017 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration