diff --git a/l/zsh-syntax-highlighting/zsh-syntax-highlighting.SlackBuild b/l/zsh-syntax-highlighting/zsh-syntax-highlighting.SlackBuild new file mode 100755 index 00000000..b2c161da --- /dev/null +++ b/l/zsh-syntax-highlighting/zsh-syntax-highlighting.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/sh -x + +# variables +VERSION=$(date +"%Y.%m.%d_%H.%M") +BUILD=1 + +TAG=cyco +OUTPUT=/tmp +TMP=/tmp/$TAG +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +PKG=$TMP/pkg-$PRGNAM + +ARCH=noarch + +REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM +PREFIX=/usr + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM-$VERSION + +mkdir -p $PKG + +# mise en place +cd $TMP +if [ ! -e $REPOSITORY ] ; then + git clone "git://github.com/zsh-users/zsh-syntax-highlighting.git" $REPOSITORY +else + ( cd $REPOSITORY + git pull + ) +fi + +mkdir -p $PKG$PREFIX/share/zsh/site-functions/ +cp -R $REPOSITORY/{highlighters/,zsh-syntax-highlighting.zsh} $PKG$PREFIX/share/zsh/site-functions/ + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R $REPOSITORY/* $PKG$PREFIX/doc/$PRGNAM/ + +# correction +cd $PKG +chown -R root:root * + +# embaumement +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# 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------------------------------------------------------| +$PRGNAM: $PRGNAM (Fish shell like syntax highlighting for Zsh.) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://github.com/zsh-users/zsh-syntax-highlighting +$PRGNAM: +EOF + +# empaquetage +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/xap/mozilla-firefox-stable/mozilla-firefox.SlackBuild b/xap/mozilla-firefox-stable/mozilla-firefox.SlackBuild new file mode 100755 index 00000000..00355c14 --- /dev/null +++ b/xap/mozilla-firefox-stable/mozilla-firefox.SlackBuild @@ -0,0 +1,90 @@ +#!/bin/sh -x + +KEEP_TAR=${KEEP_TAR:-"NO"} + +CWD=$(pwd) +TAG=cyco +OUTPUT=/tmp +TMP=${TMP:-/tmp} +PKG=$TMP/pkg-mozilla-firefox + +# This is not a source build script. Rather, it builds a Slackware +# package from the official binary tarball available from mozilla.org. +# Using the official binaries seems like the most direct way to satify +# the Mozilla project's concerns about quality control (and thus to +# provide the most quality-certified package possible), and therefore +# be able to use the official trademarks and logos. +# +# Thanks to the folks at the Mozilla Foundation for permission to +# distribute this, and for all the great work! :-) + +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +VERSION=$(ls -ut firefox-*.tar.bz2 | head -n1 | cut -d - -f 2 | sed 's|.tar.bz2||') + +LIBSUFFIX=$(echo "$ARCH" | grep -o "64") + +if [ ! -d $TMP ]; then + mkdir -p $TMP +fi +rm -rf $PKG +mkdir -p $PKG/usr/lib$LIBSUFFIX +( cd $PKG/usr/lib$LIBSUFFIX + tar xf $CWD/firefox-$VERSION.tar.bz2 || exit 1 + mv firefox firefox-$VERSION + ln -sf firefox-$VERSION firefox + cd firefox-$VERSION + sed -i -e "s/usr\/local/usr/" firefox + rm -f defaults/pref/firefox.js.orig + ln -s ../mozilla/plugins +) || exit 1 +mkdir -p $PKG/usr/bin +( cd $PKG/usr/bin + ln -sf /usr/lib$LIBSUFFIX/firefox-$VERSION/firefox . +) +mkdir -p $PKG/usr/lib$LIBSUFFIX/mozilla/plugins +mkdir -p $PKG/usr/share/applications +cat $CWD/mozilla-firefox.desktop > $PKG/usr/share/applications/mozilla-firefox.desktop +mkdir -p $PKG/usr/share/pixmaps +cat $CWD/firefox.png > $PKG/usr/share/pixmaps/firefox.png + +# These files/directories are usually created if Firefox is run as root, which on many +# systems might (and possibly should) be never. Therefore, if we don't see them we'll +# put stubs in place to prevent startup errors. +( cd $PKG/usr/lib$LIBSUFFIX/firefox-$VERSION + if [ -d extensions/talkback\@mozilla.org ]; then + if [ ! -r extensions/talkback\@mozilla.org/chrome.manifest ]; then + echo > extensions/talkback\@mozilla.org/chrome.manifest + fi + fi + if [ ! -d updates ]; then + mkdir -p updates/0 + fi +) + +mkdir $PKG/install +cat < $PKG/install/slack-desc +# 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------------------------------------------------------| +mozilla-firefox: mozilla-firefox (Mozilla Firefox Web browser) +mozilla-firefox: +mozilla-firefox: This project is a redesign of the Mozilla browser component written +mozilla-firefox: using the XUL user interface language. Firefox empowers you to +mozilla-firefox: browse faster, more safely and more efficiently than with any other +mozilla-firefox: browser. +mozilla-firefox: +mozilla-firefox: Visit the Mozilla Firefox project online: +mozilla-firefox: http://www.mozilla.org/projects/firefox/ +mozilla-firefox: +mozilla-firefox: +EOF + +cd $PKG +makepkg -l y -c n $OUTPUT/mozilla-firefox-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/xap/mozilla-firefox-stable/mozilla-firefox.desktop b/xap/mozilla-firefox-stable/mozilla-firefox.desktop new file mode 100644 index 00000000..23be26f3 --- /dev/null +++ b/xap/mozilla-firefox-stable/mozilla-firefox.desktop @@ -0,0 +1,80 @@ +[Desktop Entry] +Exec=firefox %u +Icon=firefox +Type=Application +Categories=Network; +Name=Firefox +Name[bn]=ফায়ারফক্স +Name[eo]=Mozilo Fajrovulpo +Name[fi]=Mozilla Firefox +Name[pa]=ਫਾਇਰਫੋਕਸ +Name[tg]=Рӯбоҳи оташин +GenericName=Web Browser +GenericName[af]=Web Blaaier +GenericName[ar]=متصفح ويب +GenericName[az]=Veb Səyyahı +GenericName[bg]=Браузър +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[br]=Furcher ar Gwiad +GenericName[bs]=WWW Preglednik +GenericName[ca]=Fullejador web +GenericName[cs]=WWW prohlížeč +GenericName[cy]=Porydd Gwe +GenericName[da]=Browser +GenericName[de]=Web-Browser +GenericName[el]=Περιηγητής Ιστού +GenericName[eo]=TTT-legilo +GenericName[es]=Navegador web +GenericName[et]=Veebilehitseja +GenericName[eu]=Web arakatzailea +GenericName[fa]=مرورگر وب +GenericName[fi]=WWW-selain +GenericName[fo]=Alnótsfar +GenericName[fr]=Navigateur web +GenericName[gl]=Navegador Web +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hr]=Web preglednik +GenericName[hu]=Webböngésző +GenericName[is]=Vafri +GenericName[it]=Browser Web +GenericName[ja]=ウェブブラウザ +GenericName[ko]=웹 브라우저 +GenericName[lo]=ເວັບບຣາວເຊີ +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Web Pārlūks +GenericName[mk]=Прелистувач на Интернет +GenericName[mn]=Веб-Хөтөч +GenericName[nb]=Nettleser +GenericName[nds]=Nettkieker +GenericName[nl]=Webbrowser +GenericName[nn]=Nettlesar +GenericName[nso]=Seinyakisi sa Web +GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador Web +GenericName[ro]=Navigator de web +GenericName[ru]=Веб-браузер +GenericName[se]=Fierpmádatlogan +GenericName[sk]=Webový prehliadač +GenericName[sl]=Spletni brskalnik +GenericName[sr]=Веб претраживач +GenericName[sr@Latn]=Veb pretraživač +GenericName[ss]=Ibrawuza yeWeb +GenericName[sv]=Webbläsare +GenericName[ta]=வலை உலாவி +GenericName[tg]=Тафсиргари вэб +GenericName[th]=เว็บบราวเซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[uz]=Веб-браузер +GenericName[ven]=Buronza ya Webu +GenericName[vi]=Trình duyệt Web +GenericName[wa]=Betchteu waibe +GenericName[xh]=Umkhangeli zincwadi we Web +GenericName[zh_CN]=网页浏览器 +GenericName[zh_TW]=網頁瀏覽器 +GenericName[zu]=Umcingi we-Web +MimeType=text/html; +X-KDE-StartupNotify=true