#!/bin/bash # # brouwhulp.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. # # brouwhulp.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="brouwhulp" PACKAGE_EXT="gz" VERSION=${VERSION:=5.3.5.2} BUILD=${BUILD:=1} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" unpack_source $SRC $PACKAGE-$VERSION # Remove this directory. The root user should not use the lazarus-ide so # here should not be any project information stored. Start fresh. rm -rf $HOME/.lazarus echo "" echo "***********************" echo " Add packages" echo "***********************" echo "" lazbuild --lazarusdir=/usr/share/lazarus --add-package ExpandPanels/expandpanels-master\ \(2\)/pexpandpanels.lpk lazbuild --lazarusdir=/usr/share/lazarus --add-package uniqueinstance-1.0/uniqueinstance_package.lpk lazbuild --lazarusdir=/usr/share/lazarus --add-package Synapse/source/lib/laz_synapse.lpk echo "" echo "***********************" echo " Start main build" echo "***********************" echo "" lazbuild --lazarusdir=/usr/share/lazarus brouwhulp.lpi echo "" echo "***********************" echo " Install package" echo "***********************" echo "" install -D -m 0755 brouwhulp $PKG/usr/bin/brouwhulp install -D -m 0644 Handleiding/Introductie\ BrouwHulp\ Eroica.pdf $PKG/usr/share/doc/brouwhulp/Introductie\ BrouwHulp\ Eroica.pdf install -D -m 0644 $CWD/brouwhulp.png $PKG/usr/share/pixmaps/brouwhulp.png install -D -m 0644 $CWD/brouwhulp.desktop $PKG/usr/share/applications/brouwhulp.desktop mkdir -p $PKG/usr/share/brouwhulpdata cp -a Standaard\ databanken/* $PKG/usr/share/brouwhulpdata mkdir -p $DOCS cp -a LICENSE README* $DOCS fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$PACKAGE-$VERSION rm -rf $PKG fi