mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
network/transmission: Updated for version 4.0.0.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a4fbad76f9
commit
3b90538ed0
4 changed files with 50 additions and 72 deletions
|
@ -4,12 +4,21 @@ Transmission is a lightweight open source BitTorrent client, providing
|
||||||
useful functionality without feature bloat. It consists of a daemon
|
useful functionality without feature bloat. It consists of a daemon
|
||||||
and GTK+, Qt, and CLI clients.
|
and GTK+, Qt, and CLI clients.
|
||||||
|
|
||||||
By default, all 4 components are built. Specific parts can be disabled
|
By default, everything but the Qt client is built. It can be enabled
|
||||||
by setting one or more environment variables:
|
by exporting QT=yes in the environment. The other parts can be
|
||||||
|
disabled by exporting one or more environment variables:
|
||||||
|
|
||||||
GTK=no
|
GTK=no
|
||||||
QT=no
|
|
||||||
CLI=no
|
CLI=no
|
||||||
DAEMON=no
|
DAEMON=no
|
||||||
|
|
||||||
|
Hint: if you use QT=yes, you probably also want GTK=no.
|
||||||
|
|
||||||
At least one component must be enabled (all 4 set to "no" won't work).
|
At least one component must be enabled (all 4 set to "no" won't work).
|
||||||
|
|
||||||
|
Note: transmission-gtk *must* be run from within a D-Bus session. If
|
||||||
|
you use the standard /etc/X11/xinit/xinitrc.* to start X, or if you
|
||||||
|
log in with a graphical login manager, you're already using D-Bus.
|
||||||
|
Unfortunately, if it can't connect to D-Bus, transmission-gtk will
|
||||||
|
freeze (not even closing the window will work). If you dislike D-Bus
|
||||||
|
and prefer to avoid it, use transmission-qt instead.
|
||||||
|
|
|
@ -15,5 +15,5 @@ transmission:
|
||||||
transmission: This package built with options:
|
transmission: This package built with options:
|
||||||
transmission: @opts@
|
transmission: @opts@
|
||||||
transmission:
|
transmission:
|
||||||
transmission: Homepage: http://transmissionbt.com/
|
transmission: Homepage: https://transmissionbt.com/
|
||||||
transmission:
|
transmission:
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# 20230208 bkw: update for v4.0.0, which has only been out for about 5 hours.
|
||||||
|
# - Disable the qt5 UI by default. There's no reason to build both GUIs
|
||||||
|
# by default. User can still say GTK=no QT=yes to get only the qt UI.
|
||||||
# 20210926 bkw: BUILD=2, restore Qt5 build. 15.0 not yet released, but "soon".
|
# 20210926 bkw: BUILD=2, restore Qt5 build. 15.0 not yet released, but "soon".
|
||||||
# 20200525 bkw: update for v3.00.
|
# 20200525 bkw: update for v3.00.
|
||||||
# Drop Qt GUI and QT=yes, due to 14.2's old gcc/libstdc++.
|
# Drop Qt GUI and QT=yes, due to 14.2's old gcc/libstdc++.
|
||||||
|
@ -42,8 +45,8 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=transmission
|
PRGNAM=transmission
|
||||||
VERSION=${VERSION:-3.00}
|
VERSION=${VERSION:-4.0.0}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
@ -64,8 +67,6 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
DOCS="AUTHORS COPYING NEWS.md README.md"
|
|
||||||
|
|
||||||
if [ "$ARCH" = "i586" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
@ -83,7 +84,7 @@ fi
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
GTK="${GTK:-yes}"
|
GTK="${GTK:-yes}"
|
||||||
QT="${QT:-yes}"
|
QT="${QT:-no}"
|
||||||
CLI="${CLI:-yes}"
|
CLI="${CLI:-yes}"
|
||||||
DAEMON="${DAEMON:-yes}"
|
DAEMON="${DAEMON:-yes}"
|
||||||
|
|
||||||
|
@ -99,10 +100,13 @@ EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# anything but lowercase "yes" is considered a no!
|
# Anything but lowercase "yes" is considered a no!
|
||||||
[ "$GTK" != "yes" ] && GTKOPT="no" || GTKOPT="yes"
|
# cmake didn't used to be case-sensitive about on and off.
|
||||||
[ "$CLI" != "yes" ] && CLIOPT="dis" || CLIOPT="en"
|
# It feels like BDSM, and not in a good way.
|
||||||
[ "$DAEMON" != "yes" ] && DAEMOPT="dis" || DAEMOPT="en"
|
[ "$QT" != "yes" ] && QTOPT="OFF" || QTOPT="ON"
|
||||||
|
[ "$GTK" != "yes" ] && GTKOPT="OFF" || GTKOPT="ON"
|
||||||
|
[ "$CLI" != "yes" ] && CLIOPT="OFF" || CLIOPT="ON"
|
||||||
|
[ "$DAEMON" != "yes" ] && DAEMOPT="OFF" || DAEMOPT="ON"
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
@ -115,67 +119,32 @@ chown -R root:root .
|
||||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||||
|
|
||||||
sed -i -e 's%-g -O3 -funroll-loops %%g' configure.ac
|
mkdir -p build
|
||||||
sed -i -e 's%-ggdb3 %%g' configure.ac
|
cd build
|
||||||
|
cmake \
|
||||||
# fix for -current (does no harm on stable). ref:
|
-DENABLE_DAEMON=$DAEMOPT \
|
||||||
# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c13b5e88c6e9c7bd2698d844cb5ed127ed809f7e
|
-DENABLE_QT=$QTOPT \
|
||||||
rm -f m4/glib-gettext.m4
|
-DENABLE_GTK=$GTKOPT \
|
||||||
|
-DENABLE_CLI=$CLIOPT \
|
||||||
CC=gcc CXX=g++ \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
CFLAGS="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
./configure \
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||||
--prefix=/usr \
|
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
||||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
-DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--sysconfdir=/etc \
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
--localstatedir=/var \
|
make VERBOSE=1
|
||||||
--mandir=/usr/man \
|
make install/strip DESTDIR=$PKG
|
||||||
--disable-static \
|
cd ..
|
||||||
--verbose \
|
|
||||||
--with-gtk=$GTKOPT \
|
|
||||||
--${CLIOPT}able-cli \
|
|
||||||
--${DAEMOPT}able-daemon \
|
|
||||||
--build=$ARCH-slackware-linux \
|
|
||||||
--host=$ARCH-slackware-linux
|
|
||||||
|
|
||||||
# Build daemon, GTK and cli client (unless disabled). This also builds
|
|
||||||
# the tools (transmission-create and friends).
|
|
||||||
make
|
|
||||||
make install-strip DESTDIR=$PKG
|
|
||||||
|
|
||||||
if [ "$QT" = "yes" ]; then
|
|
||||||
# build the Qt client (transmission-qt) unless disabled
|
|
||||||
# Fix hard-coded path of man file of Qt client
|
|
||||||
sed -i "s|share/man/|man/|" qt/qtr.pro
|
|
||||||
|
|
||||||
# Needed when using Qt4
|
|
||||||
# https://trac.transmissionbt.com/ticket/5700#comment:2
|
|
||||||
echo "QMAKE_CXXFLAGS += -std=c++11" >> qt/qtr.pro
|
|
||||||
|
|
||||||
cd $TMP/$PRGNAM-$VERSION/qt
|
|
||||||
qmake-qt5 \
|
|
||||||
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
|
|
||||||
QMAKE_CFLAGS+="$SLKCFLAGS" \
|
|
||||||
qtr.pro
|
|
||||||
sed -i -e 's% -g % %g' Makefile
|
|
||||||
make
|
|
||||||
INSTALL_ROOT=$PKG/usr make install
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
|
|
||||||
install -m644 transmission-qt.desktop $PKG/usr/share/applications/transmission-qt.desktop
|
|
||||||
install -m644 icons/transmission.png $PKG/usr/share/pixmaps/transmission-qt.png
|
|
||||||
cd -
|
|
||||||
fi
|
|
||||||
|
|
||||||
gzip -9 $PKG/usr/man/man?/*
|
gzip -9 $PKG/usr/man/man?/*
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cp -a $DOCS $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
|
||||||
sed "s,@opts@,GTK=$GTK QT=$QT CLI=$CLI QT=$QT DAEMON=$DAEMON," $CWD/slack-desc > $PKG/install/slack-desc
|
sed "s,@opts@,GTK=$GTK QT=$QT CLI=$CLI DAEMON=$DAEMON," \
|
||||||
|
$CWD/slack-desc \
|
||||||
|
> $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="transmission"
|
PRGNAM="transmission"
|
||||||
VERSION="3.00"
|
VERSION="4.0.0"
|
||||||
HOMEPAGE="http://www.transmissionbt.com/"
|
HOMEPAGE="https://www.transmissionbt.com/"
|
||||||
DOWNLOAD="https://github.com/transmission/transmission-releases/raw/master/transmission-3.00.tar.xz"
|
DOWNLOAD="https://github.com/transmission/transmission/releases/download/4.0.0/transmission-4.0.0.tar.xz"
|
||||||
MD5SUM="a23a32672b83c89b9b61e90408f53d98"
|
MD5SUM="d73915000cf2871404b45a64969cea83"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in a new issue