aboutsummaryrefslogtreecommitdiff
path: root/system/zerofree/zerofree.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-10-30 10:08:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-30 20:27:35 +0700
commit90b90cd3d87959d9408dfb6261516d1f790dca86 (patch)
tree3b36e62903e3ce984aa268daf86e5b7f4adc5868 /system/zerofree/zerofree.SlackBuild
parentdb05daf9995de9221288c777b3fbc642caaf07bf (diff)
system/zerofree: Added man page.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/zerofree/zerofree.SlackBuild')
-rw-r--r--system/zerofree/zerofree.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/zerofree/zerofree.SlackBuild b/system/zerofree/zerofree.SlackBuild
index 239c325907d36..046cd21bcc5e0 100644
--- a/system/zerofree/zerofree.SlackBuild
+++ b/system/zerofree/zerofree.SlackBuild
@@ -22,9 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20141021 bkw: add man page, add sparsify, bump BUILD to 2.
+
PRGNAM=zerofree
VERSION=${VERSION:-1.0.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -77,6 +79,13 @@ strip --strip-unneeded $PRGNAM 2> /dev/null
mkdir -p $PKG/usr/sbin
cp -a $PRGNAM $PKG/usr/sbin
+# This looks useful, include it.
+gcc $SLKCFLAGS -Wl,-s -o $PKG/usr/sbin/sparsify $CWD/sparsify.c -lext2fs
+
+# man page comes from Debian.
+mkdir -p $PKG/usr/man/man8
+gzip -9c $CWD/$PRGNAM.8 > $PKG/usr/man/man8/$PRGNAM.8.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild