LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-04-2022, 08:19 PM   #61
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801

Quote:
Originally Posted by FTIO View Post
willysr,

I just build the newest Pan 0.150 on 15.0.

I used the 14.2 SlackBuild for it but it needed two changes...

The 'patch' file can be deleted from the build directory.
All three of these lines needed to be commented out (or probably can be deleted I suppose):

Code:
# Build with enchant-2:
#zcat $CWD/pan.enchant2.diff.gz | patch -p1 --verbose || exit 1
#autoreconf -vif
Then a line needed to be added here (I made it RED here):

Code:
# Configure:
if [ ! -r configure ]; then
  if [ -x ./autogen.sh ]; then
    NOCONFIGURE=1 ./autogen.sh
  else
    autoreconf -vif
  fi
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --localstatedir=/var/lib \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --without-gtk3 \
  --with-gnutls \
  --with-gmime30 \
  --with-gmime-crypto \
  --with-gtkspell \
  --with-enchant2 \
  --enable-libnotify \
  --enable-gkr \
  --program-prefix= \
  --program-suffix= \
  --build=$ARCH-slackware-linux || exit 1
This built fine and no errors of any kind on my stock 15.0 installation. Hopefully this will help a little with the SBo stuff.
Can you name the category/package ?
i can't find it on the git repository
 
Old 03-04-2022, 08:42 PM   #62
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
Quote:
Originally Posted by Daedra View Post
Ok one more to knock off the list. openmw only needs two things fixed. First it needs a version bump to 0.47.0 to get pass the qt4 failure. Second its dependency bullet needs to be build with "-DUSE_DOUBLE_PRECISION=ON". After those two changes openmw compiles fine.
Thanks
pushed to my branch
 
Old 03-04-2022, 08:45 PM   #63
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
Quote:
Originally Posted by fourtysixandtwo View Post
#built successfully
graphics/Pixie
graphics/XnViewMP
graphics/gimagereader
graphics/gtkam
graphics/imgmin
graphics/luxrender
graphics/meshlab

#These have issues as noted before I stopped and moved on.
graphics/freewrl
-javascript_engine issues, last released in 2018, no other builds have it as a dependency
graphics/ipe
-old builds/archive no longer at location, only available version on github is newer with new REQs: libspiro(no slackbuild), might be more, stopped here.
-mobiperl and pipe-viewer have it as dependency
Thanks
all removed from FAILED-15.0
freewrl is gone now, but ipe has been fixed by B. Watson (https://git.slackbuilds.org/slackbui...7ae0f34d268491)
 
1 members found this post helpful.
Old 03-04-2022, 10:23 PM   #64
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
multimedia/pitivi can be removed since my update was merged to master.
 
Old 03-04-2022, 10:26 PM   #65
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
done
 
Old 03-05-2022, 12:39 AM   #66
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
Not on the list, but zotero needs bumping to 5.0.96.3. It builds fine here.
 
Old 03-05-2022, 01:21 AM   #67
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I have kodi building and all optional dependencies autodetected (see README for the list of optional dependencies). I still intend to get at least inputstream.adaptive working, either within the SlackBuild or as a separate SlackBuild before submitted a PR, but it's getting late and I have an early morning tomorrow. if anyone wants to test, feel free (I'm open to any suggestions, complaints, or criticisms). The slack-desc and doinst.sh remain unchanged, so I won't add them here. If preferred, see the attached patch.

BTW, kodi's autodetection of "optional" dependencies really sucks. You'll get through the cmake config, but compilation will bomb out unless explicitly disabled. I decided to add autodetection rather than require users to pass variables to the SlackBuild or just making them all mandatory dependencies.

kodi.SlackBuild

Code:
#!/bin/bash

# Slackware build script for kodi

# Copyright 2009-2018 Larry Hajali <larryhaja[at]gmail[dot]com>
# 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 ''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=kodi
SRCNAM=xbmc
CODNAM=Matrix
VERSION=${VERSION:-19.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
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"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION-$CODNAM
tar xvf $CWD/$SRCNAM-$VERSION-$CODNAM.tar.gz
cd $SRCNAM-$VERSION-$CODNAM
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 {} \;

# Autodetection of "optional" dependencies sucks. It does not work and
# compilation will fail on each of these if not explicitly disabled.
# Figured I'd mplemented my own autodetection instead of requiring
# passing a bunch of annoying flags :)
if pkg-config --exists avahi-core ; then AVAHI=ON; else AVAHI=OFF; fi
if pkg-config --exists cwiid ; then CWIID=ON; else CWIID=OFF; fi
if pkg-config --exists dav1d ; then DAV1D=ON; else DAV1D=OFF; fi
if pkg-config --exists libmicrohttpd ; then WEBSERVER=ON; else WEBSERVER=OFF; fi
if pkg-config --exists libcec ; then CEC=ON; else CEC=OFF; fi
if pkg-config --exists libnfs ; then NFS=ON; else NFS=OFF; fi
if pkg-config --exists lirc ; then LIRC=ON; else LIRC=OFF; fi
if [ -f /usr/bin/shairplay ] ; then AIRPLAY=ON; else AIRPLAY=OFF; fi

mkdir -p $TMP/$PRGNAM-build
cd $TMP/$PRGNAM-build
  cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DAPP_RENDER_SYSTEM=gl \
    -DCORE_PLATFORM_NAME="x11" \
    -DENABLE_INTERNAL_FSTRCMP=ON \
    -DENABLE_INTERNAL_UDFREAD=ON \
    -DENABLE_AIRTUNES=$AIRPLAY \
    -DENABLE_AVAHI=$AVAHI \
    -DENABLE_CEC=$LIBCEC \
    -DENABLE_DAV1D=$DAV1D \
    -DENABLE_EVENTCLIENTS=$CWIID \
    -DENABLE_LIRCCLIENT=$LIRC \
    -DENABLE_MICROHTTPD=$WEBSERVER \
    -DENABLE_NFS=$NFS \
    -DCMAKE_BUILD_TYPE=Release ../$SRCNAM-$VERSION-$CODNAM
  make
  make install/strip DESTDIR=$PKG
cd ..

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

# Install manpages
mkdir -p $PKG/usr/man/man1
for i in {$PRGNAM{,.bin,-standalone},TexturePacker}.1; do
  install -m 0644 $SRCNAM-$VERSION-$CODNAM/docs/manpages/$i $PKG/usr/man/man1/$i
done

# Install Event Control manpages if enabled
if [ $CWIID == "ON" ]; then
  for i in $PRGNAM{-ps3remote,-wiiremote,-send}.1; do
    install -m 0644 $SRCNAM-$VERSION-$CODNAM/docs/manpages/$i $PKG/usr/man/man1/$i
  done
fi

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
(
  cd $SRCNAM-$VERSION-$CODNAM
  cp -a README.md privacy-policy.txt version.txt docs/MANIFESTO.md $PKG/usr/doc/$PRGNAM-$VERSION
  if [ $EVENTCL == "ON" ]; then
    cat tools/EventClients/README.txt > $PKG/usr/doc/$PRGNAM-$VERSION/Event-Client-README.txt
  fi
  cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
)

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
kodi.info

Code:
PRGNAM="kodi"
VERSION="19.4"
HOMEPAGE="https://kodi.tv/"
DOWNLOAD="https://github.com/xbmc/xbmc/archive/19.4-Matrix/xbmc-19.4-Matrix.tar.gz"
MD5SUM="a668854505eff3ca5ed9f33e3ac91c80"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="zulu-openjdk11 libass flatbuffers fmt rapidjson spdlog tinyxml shairplay gtest"
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
README

Code:
Kodi is an award winning media center application for Linux, Mac OS X,
Windows and XBox. The ultimate hub for all your media, Kodi is easy to
use, looks slick, and has a large helpful community.  Kodi supports
viewing and playing a vast library of audio, video and image formats.
Kodi has a sophisticated library management system that allows you to
organize all your media to give you quick and immediate access.

Optional autodetected dependencies:
avahi - Network discovery
cwiid - Controller support
dav1d - AV1 codec support
libcec - CEC support
libmicrohttpd - Web interface support
libnfs - Browse NFS shares
lirc - Remote support
shairplay - Airplay Support

NOTE:
Kodi can be compiled with jdk11 instead of zulu-openjdk11.
Attached Files
File Type: txt 0001-multimedia-kodi-Version-bump-to-19.4.patch.txt (11.1 KB, 9 views)
 
1 members found this post helpful.
Old 03-05-2022, 02:35 AM   #68
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 542

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Scribus builds fine a can be removed from the list.
 
Old 03-05-2022, 03:12 AM   #69
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
Quote:
Originally Posted by ceed View Post
Not on the list, but zotero needs bumping to 5.0.96.3. It builds fine here.
Does it not build if not bumped?
 
Old 03-05-2022, 04:00 AM   #70
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,129

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
Quote:
Originally Posted by bassmadrigal View Post
I have kodi building and all optional dependencies autodetected (see README for the list of optional dependencies). I still intend to get at least inputstream.adaptive working, either within the SlackBuild or as a separate SlackBuild before submitted a PR, but it's getting late and I have an early morning tomorrow. if anyone wants to test, feel free (I'm open to any suggestions, complaints, or criticisms). The slack-desc and doinst.sh remain unchanged, so I won't add them here. If preferred, see the attached patch.

BTW, kodi's autodetection of "optional" dependencies really sucks. You'll get through the cmake config, but compilation will bomb out unless explicitly disabled. I decided to add autodetection rather than require users to pass variables to the SlackBuild or just making them all mandatory dependencies.

kodi.SlackBuild

Code:
#!/bin/bash

# Slackware build script for kodi

# Copyright 2009-2018 Larry Hajali <larryhaja[at]gmail[dot]com>
# 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 ''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=kodi
SRCNAM=xbmc
CODNAM=Matrix
VERSION=${VERSION:-19.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
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"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION-$CODNAM
tar xvf $CWD/$SRCNAM-$VERSION-$CODNAM.tar.gz
cd $SRCNAM-$VERSION-$CODNAM
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 {} \;

# Autodetection of "optional" dependencies sucks. It does not work and
# compilation will fail on each of these if not explicitly disabled.
# Figured I'd mplemented my own autodetection instead of requiring
# passing a bunch of annoying flags :)
if pkg-config --exists avahi-core ; then AVAHI=ON; else AVAHI=OFF; fi
if pkg-config --exists cwiid ; then CWIID=ON; else CWIID=OFF; fi
if pkg-config --exists dav1d ; then DAV1D=ON; else DAV1D=OFF; fi
if pkg-config --exists libmicrohttpd ; then WEBSERVER=ON; else WEBSERVER=OFF; fi
if pkg-config --exists libcec ; then CEC=ON; else CEC=OFF; fi
if pkg-config --exists libnfs ; then NFS=ON; else NFS=OFF; fi
if pkg-config --exists lirc ; then LIRC=ON; else LIRC=OFF; fi
if [ -f /usr/bin/shairplay ] ; then AIRPLAY=ON; else AIRPLAY=OFF; fi

mkdir -p $TMP/$PRGNAM-build
cd $TMP/$PRGNAM-build
  cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DAPP_RENDER_SYSTEM=gl \
    -DCORE_PLATFORM_NAME="x11" \
    -DENABLE_INTERNAL_FSTRCMP=ON \
    -DENABLE_INTERNAL_UDFREAD=ON \
    -DENABLE_AIRTUNES=$AIRPLAY \
    -DENABLE_AVAHI=$AVAHI \
    -DENABLE_CEC=$LIBCEC \
    -DENABLE_DAV1D=$DAV1D \
    -DENABLE_EVENTCLIENTS=$CWIID \
    -DENABLE_LIRCCLIENT=$LIRC \
    -DENABLE_MICROHTTPD=$WEBSERVER \
    -DENABLE_NFS=$NFS \
    -DCMAKE_BUILD_TYPE=Release ../$SRCNAM-$VERSION-$CODNAM
  make
  make install/strip DESTDIR=$PKG
cd ..

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

# Install manpages
mkdir -p $PKG/usr/man/man1
for i in {$PRGNAM{,.bin,-standalone},TexturePacker}.1; do
  install -m 0644 $SRCNAM-$VERSION-$CODNAM/docs/manpages/$i $PKG/usr/man/man1/$i
done

# Install Event Control manpages if enabled
if [ $CWIID == "ON" ]; then
  for i in $PRGNAM{-ps3remote,-wiiremote,-send}.1; do
    install -m 0644 $SRCNAM-$VERSION-$CODNAM/docs/manpages/$i $PKG/usr/man/man1/$i
  done
fi

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
(
  cd $SRCNAM-$VERSION-$CODNAM
  cp -a README.md privacy-policy.txt version.txt docs/MANIFESTO.md $PKG/usr/doc/$PRGNAM-$VERSION
  if [ $EVENTCL == "ON" ]; then
    cat tools/EventClients/README.txt > $PKG/usr/doc/$PRGNAM-$VERSION/Event-Client-README.txt
  fi
  cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
)

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
kodi.info

Code:
PRGNAM="kodi"
VERSION="19.4"
HOMEPAGE="https://kodi.tv/"
DOWNLOAD="https://github.com/xbmc/xbmc/archive/19.4-Matrix/xbmc-19.4-Matrix.tar.gz"
MD5SUM="a668854505eff3ca5ed9f33e3ac91c80"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="zulu-openjdk11 libass flatbuffers fmt rapidjson spdlog tinyxml shairplay gtest"
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
README

Code:
Kodi is an award winning media center application for Linux, Mac OS X,
Windows and XBox. The ultimate hub for all your media, Kodi is easy to
use, looks slick, and has a large helpful community.  Kodi supports
viewing and playing a vast library of audio, video and image formats.
Kodi has a sophisticated library management system that allows you to
organize all your media to give you quick and immediate access.

Optional autodetected dependencies:
avahi - Network discovery
cwiid - Controller support
dav1d - AV1 codec support
libcec - CEC support
libmicrohttpd - Web interface support
libnfs - Browse NFS shares
lirc - Remote support
shairplay - Airplay Support

NOTE:
Kodi can be compiled with jdk11 instead of zulu-openjdk11.
I can confirm it works fine here: I'll commit it to SBo's git, thanks!
 
Old 03-05-2022, 04:00 AM   #71
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,439

Rep: Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186
Can be removed:

office/pdfchain
office/remind
office/siag

Last edited by marav; 03-05-2022 at 04:09 AM.
 
Old 03-05-2022, 04:22 AM   #72
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
Quote:
Does it not build if not bumped?
Sorry, my mistake. It does build if not bumped. Disregard.
 
Old 03-05-2022, 04:44 AM   #73
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,439

Rep: Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186Reputation: 4186
office/trello-cli


needs nodejs as dependency

and after this addition in the slackbuild, it builds
Code:
--- trello-cli.SlackBuild.1     2022-03-05 13:18:10.219595352 +0100
+++ trello-cli.SlackBuild       2022-03-05 13:17:34.584847586 +0100
@@ -32,11 +32,14 @@
 
 if [ -z "$ARCH" ]; then
   case "$( uname -m )" in
-    i?86) ARCH=i586 ;;
+    i?86) 
+      ARCH=i586 
+      LIBDIRSUFFIX="" ;;
     arm*) 
       ARCH=arm ;;
     *) 
-      ARCH=$( uname -m ) ;;
+      ARCH=$( uname -m ) 
+      LIBDIRSUFFIX="64" ;;
   esac
 fi
 
@@ -67,6 +70,8 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+
 DESTDIR=$PKG npm install -g $CWD/$PRGNAM-$VERSION.tar.gz
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION

Last edited by marav; 03-05-2022 at 06:18 AM.
 
Old 03-05-2022, 04:46 AM   #74
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 328

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by bassmadrigal View Post
I have kodi building and all optional dependencies autodetected (see README for the list of optional dependencies). I still intend to get at least inputstream.adaptive working, either within the SlackBuild or as a separate SlackBuild before submitted a PR, but it's getting late and I have an early morning tomorrow. if anyone wants to test, feel free (I'm open to any suggestions, complaints, or criticisms). The slack-desc and doinst.sh remain unchanged, so I won't add them here. If preferred, see the attached patch.

BTW, kodi's autodetection of "optional" dependencies really sucks. You'll get through the cmake config, but compilation will bomb out unless explicitly disabled. I decided to add autodetection rather than require users to pass variables to the SlackBuild or just making them all mandatory dependencies.

<snip>
Glad you didn't get stuck trying to get the internal dependencies working like I did because of that other build I had been using. Had it built with gcc the first time by hand trying to merge the two slackbuilds, then it wouldn't build after that. VM started acting weird too. Only thing I can figure is that the internal dependencies need clang to build properly as once I tried that, it built. Finally gave up on that and built it as you did outside the VM successfully minus the below error.

On line 143 $EVENTCL needs to be quoted as it's not used and throws an error.
 
Old 03-05-2022, 05:12 AM   #75
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,129

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
Quote:
Originally Posted by fourtysixandtwo View Post
On line 143 $EVENTCL needs to be quoted as it's not used and throws an error.
actually $EVENTCL should be changed to $CWIID: just did it on git, thanks for the report!
 
1 members found this post helpful.
  


Reply



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
Deleted all of the repos in yum.repos.d, how to restore them? itsallgood Linux - Newbie 4 02-03-2015 10:17 AM
puppet repos vs redhat repos srinishrews Linux - Newbie 1 10-29-2014 06:49 PM
Unable to update repos in CentOS 5.6 yum.repos.d!!!!! Explore_Linux Linux - Newbie 1 09-28-2011 04:20 AM
List of distributions that have OSS4 in their repos? Lord Estraven Linux - General 3 11-15-2008 07:26 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:26 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