diff options
author | B. Watson <yalhcru@gmail.com> | 2021-09-05 16:13:15 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:52:00 +0700 |
commit | b6fd3d69e278d64a8b4b0d4819d01a35bb12cf09 (patch) | |
tree | 69bef7bfc391f4a00575f03b07ff36c8609aaa57 /development/lazarus/lazarus.SlackBuild | |
parent | a69b0c879250b4edc0126c31121f031a6b45bd1d (diff) |
development/lazarus: Updated for version 2.0.12, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/lazarus/lazarus.SlackBuild')
-rw-r--r-- | development/lazarus/lazarus.SlackBuild | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/development/lazarus/lazarus.SlackBuild b/development/lazarus/lazarus.SlackBuild index 11b00e1d669f..f0b5b59e27c4 100644 --- a/development/lazarus/lazarus.SlackBuild +++ b/development/lazarus/lazarus.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for Lazarus IDE -# Written by Andre Barboza <bmg.andre@gmail.com> +# Written by Andre Barboza <email removed> +# Now maintained by B. Watson <yalhcru@gmail.com> # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -21,19 +22,22 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20210905 bkw: +# - take over maintenance +# - update for v2.0.12 +# - get rid of fpc-source dep; include the source in this package + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lazarus -VERSION=${VERSION:-2.0.6} +VERSION=${VERSION:-2.0.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +FPCVER=${FPCVER:-3.2.2} LCL=${LCL:-gtk2} -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -57,18 +61,20 @@ fi set -e +fixperms() { + chown -R root:root . + find -L . -type l -o \ + -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +} + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +fixperms sed -i -e 's:share/man:man:' install/man/Makefile @@ -89,8 +95,21 @@ make install \ ln -sf ../share/lazarus/startlazarus ) -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 +find $PKG -print0 -type f -a -perm /111 | \ + xargs -0 file -m /etc/file/magic/elf | \ + grep -e "executable" -e "shared object" | \ + grep ELF | \ + cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + +# 20210905 bkw: Nothing used fpc-source but lazarus, so just include +# the source here. +mkdir -p $PKG/usr/src +( cd $PKG/usr/src + tar xvf $CWD/fpc-$FPCVER.source.tar.gz + fixperms + ln -s fpc-$FPCVER fpc +) # Install desktop file, icon, and mime entry mkdir -p $PKG/usr/share/{applications,pixmaps,mime/packages} |