diff options
Diffstat (limited to 'misc/stardict/stardict.SlackBuild')
-rw-r--r-- | misc/stardict/stardict.SlackBuild | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/misc/stardict/stardict.SlackBuild b/misc/stardict/stardict.SlackBuild index dc0b70a8ab..661649f0a2 100644 --- a/misc/stardict/stardict.SlackBuild +++ b/misc/stardict/stardict.SlackBuild @@ -24,10 +24,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#== new maintainter 2025/04 rizitis ==# + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=stardict -VERSION=${VERSION:-3.0.6} +VERSION=${VERSION:-3.0.6.2} +SRCNAM="$PRGNAM-$VERSION-2-src" BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -52,7 +52,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="AUTHORS COPYING ChangeLog INSTALL README" +DOCS="AUTHORS COPYING LICENSE README* ChangeLog" if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" @@ -74,7 +74,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xf $CWD/$PRGNAM-$VERSION.tar.?z* +7z x $CWD/$SRCNAM.7z cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -83,16 +83,13 @@ 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 {} \; -sed -i 's/, enchant/, enchant-2/' dict/configure.ac -sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac -sed -i '/GNOME_DOC_INIT/d' dict/configure.ac -sed -i '/gnome-doc-utils.make/d' dict/help/Makefile.am +find dict/src/sigc++* -type f \( -name \*.h -o -name \*.cc \) -delete ./autogen.sh ( cd dict ; ./autogen.sh ) CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS -std=c++11" \ +CXXFLAGS="$SLKCFLAGS -std=gnu++11" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -110,9 +107,8 @@ CXXFLAGS="$SLKCFLAGS -std=c++11" \ --disable-static \ --build=$ARCH-slackware-linux -sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' -i {dict,lib,tools}/libtool make -make install DESTDIR=$PKG +make DESTDIR="$PKG" install 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 |