From 5bd2090be634f4b40b5a932115b8785d59605670 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 5 Jan 2022 19:36:16 +0100 Subject: desktop/light: Updated for version 1.2.2, fix for gcc >= 10.x. Signed-off-by: Matteo Bernardini --- desktop/light/light.SlackBuild | 20 +++++++++++++++----- desktop/light/light.info | 6 +++--- 2 files changed, 18 insertions(+), 8 deletions(-) (limited to 'desktop') diff --git a/desktop/light/light.SlackBuild b/desktop/light/light.SlackBuild index 888e98d8b189..4ffac0e3f6a2 100644 --- a/desktop/light/light.SlackBuild +++ b/desktop/light/light.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=light -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,9 +79,19 @@ 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|^\(CFLAGS=\).*\(-I.*\)|\1$SLKCFLAGS \2| # preserves -I - s|^\(MANDIR=.*\)/share\(.*\)|\1\2| # strips /share - " Makefile +./autogen.sh + +CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG @@ -91,7 +101,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGELOG LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/desktop/light/light.info b/desktop/light/light.info index fec4d65ec271..cf074e836060 100644 --- a/desktop/light/light.info +++ b/desktop/light/light.info @@ -1,8 +1,8 @@ PRGNAM="light" -VERSION="1.0" +VERSION="1.2.2" HOMEPAGE="http://haikarainen.github.io/light/" -DOWNLOAD="https://github.com/haikarainen/light/archive/v1.0/light-1.0.tar.gz" -MD5SUM="65ee0fb2ede482d64a53c38271b2eeb6" +DOWNLOAD="https://github.com/haikarainen/light/archive/v1.2.2/light-1.2.2.tar.gz" +MD5SUM="e6738f3617c1ff84d43f725b26866308" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3