mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/safecopy: Build bump, script cleanup.
Use install-strip now.
This commit is contained in:
parent
f44844ef95
commit
090bc010fb
3 changed files with 11 additions and 19 deletions
|
@ -3,13 +3,13 @@
|
||||||
# Slackware Package Build Script for safecopy
|
# Slackware Package Build Script for safecopy
|
||||||
# Home Page http://safecopy.sourceforge.net/
|
# Home Page http://safecopy.sourceforge.net/
|
||||||
|
|
||||||
# Copyright (c) 2009, Nishant Limbachia, Hoffman Est, IL, USA (nishant@mnspace.net)
|
# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
# permitted provided that the following conditions are met:
|
# permitted provided that the following conditions are met:
|
||||||
#
|
#
|
||||||
# 1. Redistributions of script must retain the above copyright notice,
|
# 1. Redistributions of script must retain the above copyright notice,
|
||||||
# this list of conditions and the following disclaimer.
|
# this list of conditions and the following disclaimer.
|
||||||
#
|
#
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
PRGNAM=safecopy
|
PRGNAM=safecopy
|
||||||
VERSION=1.6
|
VERSION=1.6
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
@ -68,27 +68,19 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info
|
--infodir=/usr/info
|
||||||
|
|
||||||
make
|
|
||||||
make install DESTDIR=$PKG
|
|
||||||
|
|
||||||
### strip binaries
|
make
|
||||||
( cd $PKG
|
make install-strip DESTDIR=$PKG
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
|
||||||
xargs strip --strip-unneeded 2> /dev/null ||true
|
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
|
||||||
xargs strip --strip-unneeded 2> /dev/null
|
|
||||||
)
|
|
||||||
|
|
||||||
### compress man pages
|
### compress man pages
|
||||||
( cd $PKG/usr/man
|
( cd $PKG/usr/man
|
||||||
find . -type f -exec gzip -9 {} \;
|
find . -type f -exec gzip -9 {} \;
|
||||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a ChangeLog COPYING AUTHORS README INSTALL NEWS specification.txt \
|
cp -a ChangeLog COPYING AUTHORS README INSTALL NEWS \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
specification.txt $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
|
||||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Nishant Limbachia"
|
MAINTAINER="Nishant Limbachia"
|
||||||
EMAIL="nishant@mnspace.net"
|
EMAIL="nishant@mnspace.net"
|
||||||
APPROVED="dsomero"
|
APPROVED="Erik Hanson"
|
||||||
|
|
|
@ -15,5 +15,5 @@ safecopy: Program claims to be useful in situations where other tools like
|
||||||
safecopy: dd would fail due to I/O errors.
|
safecopy: dd would fail due to I/O errors.
|
||||||
safecopy: Safecopy is released under GNU GPL v2 (or higher).
|
safecopy: Safecopy is released under GNU GPL v2 (or higher).
|
||||||
safecopy:
|
safecopy:
|
||||||
safecopy: Homepage: http://safecopy.sourceforge.net/
|
safecopy: Home Page: http://safecopy.sourceforge.net/
|
||||||
safecopy:
|
safecopy:
|
||||||
|
|
Loading…
Reference in a new issue