diff options
Diffstat (limited to 'misc/dvtm/dvtm.SlackBuild')
-rw-r--r-- | misc/dvtm/dvtm.SlackBuild | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/misc/dvtm/dvtm.SlackBuild b/misc/dvtm/dvtm.SlackBuild index 5a37858326caf..2d9f8706841cc 100644 --- a/misc/dvtm/dvtm.SlackBuild +++ b/misc/dvtm/dvtm.SlackBuild @@ -24,9 +24,11 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by slackbuilds.org + PRGNAM=dvtm VERSION=${VERSION:-0.15} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,11 +73,25 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Strip the slackware way +sed "/@${STRIP} dvtm/d" Makefile + +# Fix terminfo +sed -i "s|f22.*$|&,|" dvtm.info + CFLAGS="$SLKCFLAGS" \ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ make -make install DESTDIR=$PKG PREFIX=/usr MANPREFIX=/usr/man -# binaries are already stripped +make install \ + PREFIX=/usr \ + MANPREFIX=/usr/man \ + DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# install terminfo +install -D -m 0644 dvtm.info $PKG/usr/share/dvtm/dvtm.info mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -88,6 +104,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |