|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2013,2016 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2013,2016,2019 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,9 +27,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-seahorse} |
|
|
|
|
VERSION=${VERSION:-3.20.0} |
|
|
|
|
VERSION=${VERSION:-3.30.1.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz} |
|
|
|
|
WGET=${WGET:-https://download.gnome.org/sources/seahorse/3.20/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-https://download.gnome.org/sources/seahorse/3.30/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-seahorse} |
|
|
|
@ -76,7 +76,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
fi |
|
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
|
|
# Compile |
|
|
|
@ -86,23 +86,26 @@ tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=/usr \ |
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--mandir=/usr/man \ |
|
|
|
|
--disable-static \ |
|
|
|
|
--disable-pgp \ |
|
|
|
|
--disable-ssh |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install-strip DESTDIR=$PKG |
|
|
|
|
meson \ |
|
|
|
|
--prefix /usr \ |
|
|
|
|
--libdir /usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--mandir /usr/man \ |
|
|
|
|
-Dkey-sharing=false \ |
|
|
|
|
build . |
|
|
|
|
ninja -C build |
|
|
|
|
DESTDIR=$PKG ninja -C build install |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null |
|
|
|
|
|
|
|
|
|
# Compress man and info page |
|
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \; |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 AUTHORS COPYING{,-DOCS,.LIB} ChangeLog ChangeLog.pre* \ |
|
|
|
|
HACKING MAINTAINERS NEWS README THANKS TODO $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 AUTHORS COPYING{,-DOCS,.LIB} NEWS README.md THANKS \ |
|
|
|
|
$PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
|
|
# Copy slack-desc and doinst.sh files |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|