summaryrefslogtreecommitdiff
path: root/network/qbittorrent/qbittorrent.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/qbittorrent/qbittorrent.SlackBuild')
-rw-r--r--network/qbittorrent/qbittorrent.SlackBuild20
1 files changed, 4 insertions, 16 deletions
diff --git a/network/qbittorrent/qbittorrent.SlackBuild b/network/qbittorrent/qbittorrent.SlackBuild
index af777e815f..6f13030bff 100644
--- a/network/qbittorrent/qbittorrent.SlackBuild
+++ b/network/qbittorrent/qbittorrent.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=qbittorrent
-VERSION=${VERSION:-2.2.10}
+VERSION=${VERSION:-2.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -75,30 +75,18 @@ CXXFLAGS="$SLKCFLAGS" \
--qtdir=/usr/lib${LIBDIRSUFFIX}/qt4
make
-mkdir -p $PKG/usr/bin
-cp -a src/qbittorrent $PKG/usr/bin/
-
-mkdir -p $PKG/usr/man/man1
-cp -a doc/qbittorrent.1 $PKG/usr/man/man1/
-
-mkdir -p $PKG/usr/share/applications
-cp -a src/Icons/qBittorrent.desktop $PKG/usr/share/applications/
-
-for i in 16 22 24 32 36 48 64 72 96 128 192 ; do
- mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps
- cp -a src/menuicons/${i}x${i}/apps/qbittorrent.png \
- $PKG/usr/share/icons/hicolor/${i}x${i}/apps ;
-done
+make install INSTALL_ROOT=$PKG
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/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS Changelog NEWS TODO COPYING INSTALL README \
+ AUTHORS Changelog NEWS README.os2 COPYING INSTALL README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild