system/xcdroast: Fix script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Fernando Lopez Jr. 2023-09-27 12:07:22 +07:00 committed by Willy Sudiarto Raharjo
parent 209302f4b4
commit 9cc7a7b22e
3 changed files with 12 additions and 6 deletions

View file

@ -4,3 +4,6 @@ X-CD-Roast tries to be the most flexible CD and DVD burning software
ever. It allows even the unexperienced user to create or copy a CD or a ever. It allows even the unexperienced user to create or copy a CD or a
DVD with a few mouse clicks in a intuitive and nice looking graphical DVD with a few mouse clicks in a intuitive and nice looking graphical
user interface. user interface.
Note:
Upon start, you may need to manually specify your device, e.g /dev/sr0

View file

@ -27,12 +27,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Revision date: 2020/Nov/22 # Revision date: 2020/Nov/22
# A few fixes: 2023/Sep/24; Petar Petrov
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xcdroast PRGNAM=xcdroast
VERSION=${VERSION:-1.19} VERSION=${VERSION:-1.19}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -102,9 +103,7 @@ make XCDRLIB_PREFIX=/usr/lib${LIBDIRSUFFIX}/$PRGNAM install DESTDIR=$PKG
mkdir -p $PKG/usr/share/{applications,pixmaps} mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/xcdroast.desktop > $PKG/usr/share/applications/xcdroast.desktop cat $CWD/xcdroast.desktop > $PKG/usr/share/applications/xcdroast.desktop
( cd $PKG/usr/share/pixmaps cp xpms/ico_cdwriter.xpm $PKG/usr/share/pixmaps/xcdroast.xpm
ln -s ../../lib${LIBDIRSUFFIX}/xcdroast/icons/xcdricon.png xcdroast.png
)
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@ -112,10 +111,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \; 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 for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# empty
rm -rf $PKG/etc
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \ cp -a \
COPYING ChangeLog INSTALL README AUTHORS NEWS \ COPYING ChangeLog README AUTHORS \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -4,3 +4,4 @@ Type=Application
Exec=xcdroast Exec=xcdroast
Icon=xcdroast Icon=xcdroast
Comment=CD creation tool Comment=CD creation tool
Categories=System;