mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/zed: Added (text and code editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
03122fb5e0
commit
306db4f381
5 changed files with 160 additions and 0 deletions
16
development/zed/README
Normal file
16
development/zed/README
Normal file
|
@ -0,0 +1,16 @@
|
|||
Zed is a fully offline-capable, open source, keyboard-focused, text and code editor for power users.
|
||||
You can use Zed to edit local files as well as remote files on any server.
|
||||
|
||||
Zed has all features you'd expect from a capable code editor:
|
||||
- Syntax highlighting for many programming languages (e.g. C, Clojure, CoffeeScript, C#, CSS, Dart,
|
||||
Erlang, Go, Haml, Haskell, HTML, ini files, Java, JavaScript, JSON, LogiQL, Lua, Markdown, Nix,
|
||||
PHP, Plist, Protobufs, Python, Ruby, Shell, XML)
|
||||
- Code completion: symbols, snippets and property/method completion.
|
||||
- Built-in linting for some languages with inline markers (JavaScript, CoffeeScript, JSON, Lua, CSS)
|
||||
- Multiple cursors
|
||||
- Split-view editing
|
||||
- Themes: light and dark themes out of the box and you can easily develop your own using CSS.
|
||||
|
||||
To learn more about Zed's remote editing, look here:
|
||||
|
||||
http://zedapp.org/features/edit-remote-files/
|
13
development/zed/doinst.sh
Normal file
13
development/zed/doinst.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
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
|
19
development/zed/slack-desc
Normal file
19
development/zed/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||
zed: zed (text and code editor)
|
||||
zed:
|
||||
zed: Zed is a fully offline-capable, open source, keyboard-focused,
|
||||
zed: text and code editor for power users.
|
||||
zed:
|
||||
zed: You can use Zed to edit local files as well as remote files
|
||||
zed: on any server.
|
||||
zed:
|
||||
zed:
|
||||
zed: http://zedapp.org/
|
||||
zed:
|
102
development/zed/zed.SlackBuild
Normal file
102
development/zed/zed.SlackBuild
Normal file
|
@ -0,0 +1,102 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for zed
|
||||
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version, with the following exception:
|
||||
# the text of the GPL license may be omitted.
|
||||
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# without any warranty; without even the implied warranty of
|
||||
# merchantability or fitness for a particular purpose. Compiling,
|
||||
# interpreting, executing or merely reading the text of the program
|
||||
# may result in lapses of consciousness and/or very being, up to and
|
||||
# including the end of all existence and the Universe as we know it.
|
||||
# See the GNU General Public License for more details.
|
||||
|
||||
# You may have received a copy of the GNU General Public License along
|
||||
# with this program (most likely, a file named COPYING). If not, see
|
||||
# <https://www.gnu.org/licenses/>.
|
||||
|
||||
PRGNAM=zed
|
||||
SRCNAM=Zed
|
||||
VERSION=${VERSION:-1.1.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
TARBALL_x86=${PRGNAM}"-linux32-"
|
||||
TARBALL_x86_64=${PRGNAM}"-linux64-"
|
||||
TARBALL_ROOT=${PRGNAM}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486;
|
||||
LIBDIRSUFFIX="";
|
||||
TARBALL=${TARBALL_x86};
|
||||
;;
|
||||
arm*) ARCH=arm;
|
||||
;;
|
||||
*) ARCH=$( uname -m );
|
||||
LIBDIRSUFFIX="64";
|
||||
TARBALL=${TARBALL_x86_64};
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-${PRGNAM}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf ${TARBALL_ROOT}
|
||||
tar -xvf $CWD/${TARBALL}v${VERSION}.tar.gz
|
||||
cd ${TARBALL_ROOT}
|
||||
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 {} \;
|
||||
|
||||
mkdir -pv $PKG/opt/${PRGNAM}/libs/
|
||||
cp -Rav * $PKG/opt/${PRGNAM}
|
||||
|
||||
## fixes udev1 dependency
|
||||
ln -sfv /usr/lib${LIBDIRSUFFIX}/libudev.so $PKG/opt/${PRGNAM}/libs/libudev.so.1
|
||||
|
||||
mkdir -p $PKG/usr/bin
|
||||
|
||||
## we make our own script since
|
||||
## we have to set the lib path
|
||||
cat <<EOT > $PKG/usr/bin/${PRGNAM}
|
||||
#!/bin/sh
|
||||
## fix libudev issue
|
||||
LD_LIBRARY_PATH=/opt/${PRGNAM}/libs/ /opt/${PRGNAM}/${PRGNAM}
|
||||
EOT
|
||||
|
||||
chmod 755 $PKG/usr/bin/${PRGNAM}
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
ln -sf /opt/${PRGNAM}/${SRCNAM}.png $PKG/usr/share/pixmaps/${PRGNAM}.png
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
cat $PKG/opt/${PRGNAM}/${SRCNAM}.desktop.tmpl > $PKG/usr/share/applications/${PRGNAM}.desktop
|
||||
|
||||
mkdir -p $PKG/usr/doc/${PRGNAM}-${VERSION}
|
||||
cat $CWD/${PRGNAM}.SlackBuild > $PKG/usr/doc/${PRGNAM}-${VERSION}/${PRGNAM}.SlackBuild
|
||||
cat $CWD/README > $PKG/usr/doc/${PRGNAM}-${VERSION}/README
|
||||
|
||||
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}
|
10
development/zed/zed.info
Normal file
10
development/zed/zed.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="zed"
|
||||
VERSION="1.1.0"
|
||||
HOMEPAGE="http://zedapp.org/"
|
||||
DOWNLOAD="http://download.zedapp.org/zed-linux32-v1.1.0.tar.gz"
|
||||
MD5SUM="43b7912ea9717c0c8946a3921f133e6e"
|
||||
DOWNLOAD_x86_64="http://download.zedapp.org/zed-linux64-v1.1.0.tar.gz"
|
||||
MD5SUM_x86_64="3b221d81275c425ed7f2cf1f34a52e05"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Ryan P.C. McQuen"
|
||||
EMAIL="ryan.q@linux.com"
|
Loading…
Reference in a new issue