#!/bin/bash # # LLTD-PortingKit.SlackBuild is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or any later version. # # LLTD-PortingKit.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # # default settings PACKAGE="lld2d" PACKAGE_EXT="bz2" VERSION=${VERSION:=1.2} BUILD=${BUILD:=2} POPT="-O3" if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="Rally-LLTD-PortingKit.exe" URL="http://download.microsoft.com/download/b/8/e/b8eee444-f8d5-4b8b-aa3d-2f19bf19ac72/$SRC" get_source $SRC $URL rm -rf $TMP/lld2d mkdir -p $TMP/lld2d cd $TMP/lld2d unzip -o $CWD/$SRC cd "Sample Code" patch -Np0 < $CWD/veerkade.patch cd native-linux make || return 1 install -D lld2d $PKG/usr/sbin/lld2d install -D lld2test $PKG/usr/bin/lld2test cd ../src mkdir -p $PKG/etc echo "icon = /usr/share/lld2d/linux.ico" > $PKG/etc/lld2d.conf.new echo "jumbo-icon = /usr/share/lld2d/linux.ico" >> $PKG/etc/lld2d.conf.new mkdir -p $PKG/usr/share/lld2d/ install -D -m644 *.ico $PKG/usr/share/lld2d/ install -m644 $CWD/linux.ico $PKG/usr/share/lld2d/ cd .. mkdir -p $DOCS cp -a *.txt $DOCS cp -a $CWD/LLTD_Implementers_Guide.pdf $DOCS # SysV init mkdir -p $PKG/etc/rc.d/init.d $PKG/var/log/setup install -m 755 $CWD/lld2d.init $PKG/etc/rc.d/init.d/lld2d.new install -m 755 $CWD/lld2d.setup $PKG/var/log/setup/setup.lld2d fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$PACKAGE-$VERSION rm -rf $PKG fi