diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-01-21 23:04:14 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-01-29 23:21:09 -0600 |
commit | 351f589698cf8be75a816386c0276bb61805ebbb (patch) | |
tree | 4772c75bb833b474237d549edbc9e92b25752866 /system | |
parent | a4e2b5a930f57ad1980bde4b443d50cf7d4b8f2c (diff) |
system/gentoo: Added (file manager).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/gentoo/README | 17 | ||||
-rw-r--r-- | system/gentoo/doinst.sh | 14 | ||||
-rw-r--r-- | system/gentoo/gentoo.SlackBuild | 112 | ||||
-rw-r--r-- | system/gentoo/gentoo.desktop | 11 | ||||
-rw-r--r-- | system/gentoo/gentoo.info | 10 | ||||
-rw-r--r-- | system/gentoo/slack-desc | 19 |
6 files changed, 183 insertions, 0 deletions
diff --git a/system/gentoo/README b/system/gentoo/README new file mode 100644 index 0000000000000..108853e0e8c75 --- /dev/null +++ b/system/gentoo/README @@ -0,0 +1,17 @@ +Gentoo is a graphical file management program, written from +scratch in C. It uses the GTK+ toolkit for its interface. +gentoo is developed and tested primarily under Linux, but is +known to compile and work on many other Unix-like operating +systems as well. + +One of the design goals with gentoo has been to provide +extensive customization and configuration abilities, and to do +so from an integrated, graphic, interface. The user should not +have to edit the configuration file directly "by hand", and +especially not have to restart the program for changes to take +effect. + +gentoo features a fairly complex and powerful system +for file type recognition, coupled to an object-oriented style +system, which together give you a lot of control over how files +of different types are displayed and acted upon. diff --git a/system/gentoo/doinst.sh b/system/gentoo/doinst.sh new file mode 100644 index 0000000000000..9830478e8cc75 --- /dev/null +++ b/system/gentoo/doinst.sh @@ -0,0 +1,14 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/system/gentoo/gentoo.SlackBuild b/system/gentoo/gentoo.SlackBuild new file mode 100644 index 0000000000000..1c75f1e35af73 --- /dev/null +++ b/system/gentoo/gentoo.SlackBuild @@ -0,0 +1,112 @@ +#!/bin/sh + +# Slackware build script for gentoo + +# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# 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. + +PRGNAM=gentoo +VERSION=${VERSION:-0.20.4} +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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +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 + +find $PKG -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f + +mkdir -p $PKG/usr/share/applications +install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/share/pixmaps/ +install -D -m644 icons/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.svg + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS BUGS CONFIG-CHANGES COPYING CREDITS ChangeLog README NEWS TODO \ + docs/* \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/gentoo/gentoo.desktop b/system/gentoo/gentoo.desktop new file mode 100644 index 0000000000000..0f9e7a56983a6 --- /dev/null +++ b/system/gentoo/gentoo.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=File Manager (gentoo) +Name[he]= getnoo +Comment=gentoo is a free file manager for Linux +Exec=gentoo +Icon=gentoo +Terminal=false +Type=Application +Categories=System;FileManager +GenericName=FileManager + diff --git a/system/gentoo/gentoo.info b/system/gentoo/gentoo.info new file mode 100644 index 0000000000000..1838fc26f4be8 --- /dev/null +++ b/system/gentoo/gentoo.info @@ -0,0 +1,10 @@ +PRGNAM="gentoo" +VERSION="0.20.4" +HOMEPAGE="http://obsession.se/gentoo/" +DOWNLOAD="http://sourceforge.net/projects/gentoo/files/gentoo/0.20.4/gentoo-0.20.4.tar.gz" +MD5SUM="9e10f5ad00613b63eb02cde89506153d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Dimitris Zlatanidis" +EMAIL="d.zlatanidis@gmail.com" diff --git a/system/gentoo/slack-desc b/system/gentoo/slack-desc new file mode 100644 index 0000000000000..65fcacf14fa6e --- /dev/null +++ b/system/gentoo/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------------------------------------------------------| +gentoo: gentoo (file manager) +gentoo: +gentoo: gentoo is a free file manager for Linux and other Unix-like computer +gentoo: systems created by Emil Brink. It is licensed under the GNU General +gentoo: Public License. +gentoo: +gentoo: +gentoo: +gentoo: +gentoo: Homepage: http://obsession.se/gentoo/ +gentoo: |