diff options
author | ponce | 2011-03-12 10:36:43 +0100 |
---|---|---|
committer | ponce | 2011-03-12 10:36:43 +0100 |
commit | 71c3706cb18c2ed8a134b6f70d8bc05c7a8595a2 (patch) | |
tree | 01ec39873fdb9c3a49de360f0a754fa1ec61a48a /libraries/libfm-new | |
parent | 14b97b9df3f67cffbb5791166e877b90e6c3b31c (diff) | |
download | old.slackbuilds-71c3706cb18c2ed8a134b6f70d8bc05c7a8595a2.tar.gz |
20110312.2 global branch merge.current-20110312.2
Diffstat (limited to 'libraries/libfm-new')
-rw-r--r-- | libraries/libfm-new/README | 4 | ||||
-rw-r--r-- | libraries/libfm-new/libfm-new.SlackBuild | 105 | ||||
-rw-r--r-- | libraries/libfm-new/libfm-new.info | 10 | ||||
-rw-r--r-- | libraries/libfm-new/slack-desc | 19 |
4 files changed, 138 insertions, 0 deletions
diff --git a/libraries/libfm-new/README b/libraries/libfm-new/README new file mode 100644 index 0000000000..d8a26dd95c --- /dev/null +++ b/libraries/libfm-new/README @@ -0,0 +1,4 @@ +LibFM provides file management functions built on top of Glib/GIO, giving a convenient higher-level API. +This version is built with udisks support (but it needs the newer glib2 of -current). + +This requires menu-cache. diff --git a/libraries/libfm-new/libfm-new.SlackBuild b/libraries/libfm-new/libfm-new.SlackBuild new file mode 100644 index 0000000000..69f95824ce --- /dev/null +++ b/libraries/libfm-new/libfm-new.SlackBuild @@ -0,0 +1,105 @@ +#!/bin/sh + +# Slackware build script for libfm-new + +# Copyright 2010 Chris Abela <chris.abela@maltats.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# modified by ponce <matteo.bernardini@gmail.com> for the -new version + +PRGNAM=libfm-new +OPRGNAM=libfm +VERSION=${VERSION:-20110218_197c7e1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $OPRGNAM-$VERSION +tar xvf $CWD/$OPRGNAM-$VERSION.tar.?z +cd $OPRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +sh autogen.sh --sysconfdir=/etc --prefix=/usr + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-udisks \ + --disable-debug \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +# some statics slipped... +rm $PKG/usr/lib${LIBDIRSUFFIX}/*.la + +mkdir -p $PKG/usr/doc/$OPRGNAM-$VERSION +cp -a AUTHORS COPYING README TODO \ + $PKG/usr/doc/$OPRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$OPRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc -type f -exec chmod 0644 {} \; + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libfm-new/libfm-new.info b/libraries/libfm-new/libfm-new.info new file mode 100644 index 0000000000..2b062e2a84 --- /dev/null +++ b/libraries/libfm-new/libfm-new.info @@ -0,0 +1,10 @@ +PRGNAM="libfm-new" +VERSION="20110218_197c7e1" +HOMEPAGE="http://pcmanfm.sourceforge.net" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/lxde/libfm-20110218_197c7e1.tar.xz" +MD5SUM="8c64a80ca58cdd12e8eb92cd5b1082f2" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="ponce" +EMAIL="matteo.bernardini@gmail.com" +APPROVED="" diff --git a/libraries/libfm-new/slack-desc b/libraries/libfm-new/slack-desc new file mode 100644 index 0000000000..c7d16ec854 --- /dev/null +++ b/libraries/libfm-new/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-------handy-ruler------------------------------------------------------| +libfm-new: libfm-new (pcmanfm library - rewrite) +libfm-new: +libfm-new: LibFM provides file management functions built on top of Glib/GIO, +libfm-new: giving a convenient higher-level API. +libfm-new: +libfm-new: Homepage: http://pcmanfm.sourceforge.net/ +libfm-new: +libfm-new: +libfm-new: +libfm-new: +libfm-new: |