aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorKristaps Esterlins <esterlins@gmail.com>2010-05-11 22:53:22 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:53:22 +0200
commite53f340c2e1d790028a8ee1d6a0ce863b23032a4 (patch)
tree444f4ae1a4cfb6bc1930bf0a3d615ed7fcc52190 /desktop
parent999b6f5aa82b00c56b7834c8aba3006e66aad1eb (diff)
desktop/nitrogen: Added to 12.1 repository
Diffstat (limited to 'desktop')
-rw-r--r--desktop/nitrogen/README4
-rw-r--r--desktop/nitrogen/doinst.sh5
-rw-r--r--desktop/nitrogen/nitrogen.SlackBuild69
-rw-r--r--desktop/nitrogen/nitrogen.info8
-rw-r--r--desktop/nitrogen/slack-desc20
5 files changed, 106 insertions, 0 deletions
diff --git a/desktop/nitrogen/README b/desktop/nitrogen/README
new file mode 100644
index 0000000000000..6d9ab91ae7f85
--- /dev/null
+++ b/desktop/nitrogen/README
@@ -0,0 +1,4 @@
+Nitrogen is a background browser and setter for X windows.
+It is written in C++ using the gtkmm toolkit.
+
+Note - gtkmm is required to build this application.
diff --git a/desktop/nitrogen/doinst.sh b/desktop/nitrogen/doinst.sh
new file mode 100644
index 0000000000000..c3651bc86702b
--- /dev/null
+++ b/desktop/nitrogen/doinst.sh
@@ -0,0 +1,5 @@
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
+fi
+
diff --git a/desktop/nitrogen/nitrogen.SlackBuild b/desktop/nitrogen/nitrogen.SlackBuild
new file mode 100644
index 0000000000000..d611f17d92dd0
--- /dev/null
+++ b/desktop/nitrogen/nitrogen.SlackBuild
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+# Slackware build script for nitrogen
+# Written by Kristaps Esterlins <esterlinsh[at]gmail.com>
+
+PRGNAM=nitrogen
+VERSION=1.3
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+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 . \
+ \( -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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./bootstrap
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING INSTALL NEWS README $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/desktop/nitrogen/nitrogen.info b/desktop/nitrogen/nitrogen.info
new file mode 100644
index 0000000000000..37a126e223c2b
--- /dev/null
+++ b/desktop/nitrogen/nitrogen.info
@@ -0,0 +1,8 @@
+PRGNAM="nitrogen"
+VERSION="1.3"
+HOMEPAGE="http://projects.l3ib.org/nitrogen/"
+DOWNLOAD="http://projects.l3ib.org/nitrogen/files/nitrogen-1.3.tar.gz"
+MD5SUM="1f2b0b40ac286d0b185b23f234b237dd"
+MAINTAINER="Kristaps Esterlins"
+EMAIL="esterlins@gmail.com"
+APPROVED="rworkman"
diff --git a/desktop/nitrogen/slack-desc b/desktop/nitrogen/slack-desc
new file mode 100644
index 0000000000000..b062307e01ec1
--- /dev/null
+++ b/desktop/nitrogen/slack-desc
@@ -0,0 +1,20 @@
+# 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 ':'.
+
+ |-----handy-ruler----------------------------------------------------|
+nitrogen: nitrogen (background browsing/setting helper for X)
+nitrogen:
+nitrogen: Nitrogen is a background browser and setter for X windows.
+nitrogen:
+nitrogen:
+nitrogen:
+nitrogen:
+nitrogen:
+nitrogen:
+nitrogen:
+nitrogen:
+