Browse Source

n/ctorrent: Updated.

slackware-14.2
Damien Goutte-Gattat 11 years ago
parent
commit
7a36807f49
  1. 19
      n/ctorrent/ctorrent.SlackBuild

19
n/ctorrent/ctorrent.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
# Copyright (C) 2009,2011 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -32,12 +32,12 @@
NAMESRC=${NAMESRC:-ctorrent}
VERSION=${VERSION:-dnh3.3.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://ovh.dl.sourceforge.net/sourceforge/dtorrent/$ARCHIVE}
WGET=${WGET:-http://downloads.sourceforge.net/dtorrent/$ARCHIVE}
# Built package infos
NAMEPKG=${NAMEPKG:-ctorrent}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-3GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -89,17 +89,12 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure --prefix=/usr
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
make install-strip DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 \
AUTHORS COPYING ChangeLog NEWS README README-DNH.TXT UserGuide \
$PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYING ChangeLog NEWS README README-DNH.TXT \
UserGuide $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save