summaryrefslogtreecommitdiff
path: root/development/Editra
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-01-30 20:27:49 +0700
committerRobby Workman <rworkman@slackbuilds.org>2014-02-01 00:40:32 -0600
commit8c0775d3dc47f463dffde0e4f1914cad83fd1aa6 (patch)
treefed14eed9496be849263b0a4be0d4ec3b0a2f6e0 /development/Editra
parent255e4ac9b33b6473eca489bb031936f7dd8977ce (diff)
downloadslackbuilds-8c0775d3dc47f463dffde0e4f1914cad83fd1aa6.tar.gz
development/Editra: Updated for version 0.7.20.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/Editra')
-rw-r--r--development/Editra/Editra.SlackBuild9
-rw-r--r--development/Editra/Editra.desktop10
-rw-r--r--development/Editra/Editra.info2
-rw-r--r--development/Editra/doinst.sh3
4 files changed, 21 insertions, 3 deletions
diff --git a/development/Editra/Editra.SlackBuild b/development/Editra/Editra.SlackBuild
index fc58c750bc..d12e1eafd4 100644
--- a/development/Editra/Editra.SlackBuild
+++ b/development/Editra/Editra.SlackBuild
@@ -74,17 +74,22 @@ python setup.py install --root=$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
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+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 pixmaps/editra.png $PKG/usr/share/pixmaps/$PRGNAM.svg
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS CHANGELOG COPYING FAQ INSTALL NEWS PKG-INFO README THANKS 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/development/Editra/Editra.desktop b/development/Editra/Editra.desktop
new file mode 100644
index 0000000000..27a695cb04
--- /dev/null
+++ b/development/Editra/Editra.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=A Developer's Text Editor
+Name[he]= Editra
+Comment=A Developer's Text Editor
+Exec=editra
+Icon=Editra
+Terminal=false
+Type=Application
+Categories=Development;TextEditor
+GenericName=Editor
diff --git a/development/Editra/Editra.info b/development/Editra/Editra.info
index 6f37d7301e..59eaeff604 100644
--- a/development/Editra/Editra.info
+++ b/development/Editra/Editra.info
@@ -1,5 +1,5 @@
PRGNAM="Editra"
-VERSION="0.7.0"
+VERSION="0.7.20"
HOMEPAGE="http://www.editra.org/"
DOWNLOAD="http://www.editra.org/uploads/src/Editra-0.7.20.tar.gz"
MD5SUM="a52c6b3d703f98e0390aa7b44f991616"
diff --git a/development/Editra/doinst.sh b/development/Editra/doinst.sh
new file mode 100644
index 0000000000..473345de20
--- /dev/null
+++ b/development/Editra/doinst.sh
@@ -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