diff options
Diffstat (limited to 'libraries/libfm/libfm.SlackBuild')
-rw-r--r-- | libraries/libfm/libfm.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/libfm/libfm.SlackBuild b/libraries/libfm/libfm.SlackBuild index bef78d31a8df..c3760f876194 100644 --- a/libraries/libfm/libfm.SlackBuild +++ b/libraries/libfm/libfm.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libfm -# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org> +# Copyright 2013,2014 Matteo Bernardini <ponce@slackbuilds.org> # Copyright 2010 Chris Abela <chris.abela@maltats.com> # All rights reserved. # @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libfm -VERSION=${VERSION:-20131123_fb4bdbe} +VERSION=${VERSION:-1.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -58,6 +58,12 @@ fi # Enable custom actions if we have vala available if [ -h /usr/bin/vapigen ]; then actions=""; else actions="--disable-actions"; fi +case "$GTK" in + 3) gtk="--with-gtk=3 --enable-gtk-doc" ;; + 0) gtk="--without-gtk" ;; + *) gtk="--with-gtk=2 --enable-gtk-doc" ;; +esac + set -e rm -rf $PKG @@ -73,7 +79,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -sh autogen.sh || true +NOCONFIGURE=1 sh autogen.sh || true CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -84,7 +90,7 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --enable-static=no \ - --enable-gtk-doc \ + $gtk \ $actions \ --build=$ARCH-slackware-linux @@ -105,7 +111,7 @@ sed -i -e 's|\[ui\]|terminal=lxterminal -e %s\narchiver=file-roller %s\n\n[ui]|' $PKG/etc/xdg/libfm/libfm.conf mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING README TODO \ +cp -a AUTHORS COPYING NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chmod 0644 {} \; |