diff options
author | David Woodfall <dave@dawoodfall.net> | 2015-11-25 18:12:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-28 07:25:59 +0700 |
commit | 930330f99242481c2b07ed7d549caca9efe47dee (patch) | |
tree | 330417f2223838527ceab4031f6db068a6b7f66e /network/qbittorrent/qbittorrent.SlackBuild | |
parent | c70dba9b054066bab035025403a1ba97c9d2439f (diff) | |
download | slackbuilds-930330f99242481c2b07ed7d549caca9efe47dee.tar.gz |
network/qbittorrent: Added qbittorrent-nox + an rc init script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/qbittorrent/qbittorrent.SlackBuild')
-rw-r--r-- | network/qbittorrent/qbittorrent.SlackBuild | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/network/qbittorrent/qbittorrent.SlackBuild b/network/qbittorrent/qbittorrent.SlackBuild index 72ed69b606..73a4f56275 100644 --- a/network/qbittorrent/qbittorrent.SlackBuild +++ b/network/qbittorrent/qbittorrent.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=qbittorrent VERSION=${VERSION:-3.1.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -77,16 +77,31 @@ CXXFLAGS="$SLKCFLAGS" \ make make install INSTALL_ROOT=$PKG +make clean + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --disable-gui + +make +mv src/qbittorrent-nox $PKG/usr/bin find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + mv $PKG/usr/share/man $PKG/usr 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/etc/rc.d +cp $CWD/rc.qbittorrent-nox.new $PKG/etc/rc.d/. + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS Changelog NEWS TODO COPYING INSTALL README.md \ + $CWD/README.nox \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |