desktop/notion: Updated for version 3_2014052800.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2014-06-02 08:36:25 +07:00 committed by Willy Sudiarto Raharjo
parent e89bea7b52
commit a1b0a38c4d
5 changed files with 47 additions and 9 deletions

View file

@ -15,6 +15,3 @@ Features include:
* RandR: mod_xrandr expands on mod_xinerama and picks up changes in
the randr configuration without the need for restarting Notion
* Extensibility: Notion can be extended with lua scripts.
NOTE: to launch it at X start just put 'exec notion' in a ~/.xinitrc
file.

3
desktop/notion/doinst.sh Normal file
View file

@ -0,0 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=notion
VERSION=${VERSION:-3_2014010900}
VERSION=${VERSION:-3_2014052800}
SRCVER=$(echo $VERSION | tr _ - )
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -54,8 +55,6 @@ else
LIBDIRSUFFIX=""
fi
SRCVER=$(echo $VERSION | tr _ - )
set -e
rm -rf $PKG
@ -97,11 +96,20 @@ make install \
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/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Install an xinitrc script
mkdir -p $PKG/etc/X11/xinit
install -m 0755 $CWD/xinitrc.$PRGNAM $PKG/etc/X11/xinit/xinitrc.$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README LICENSE CHANGELOG $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}

View file

@ -1,8 +1,8 @@
PRGNAM="notion"
VERSION="3_2014010900"
VERSION="3_2014052800"
HOMEPAGE="http://notion.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/notion/notion-3-2014010900-src.tar.gz"
MD5SUM="8192c61ce92e5926a7664eeb3274f65f"
DOWNLOAD="http://downloads.sourceforge.net/notion/notion-3-2014052800-src.tar.gz"
MD5SUM="f6256fe12a3d321dbb7f7d2ecfcdcbeb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lua"

View file

@ -0,0 +1,30 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# Merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start notion
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session notion
else
exec notion
fi