diff options
Diffstat (limited to 'desktop/light/light.SlackBuild')
-rw-r--r-- | desktop/light/light.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/desktop/light/light.SlackBuild b/desktop/light/light.SlackBuild index 888e98d8b1..4ffac0e3f6 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 |