diff options
-rw-r--r-- | misc/boncuk/README | 9 | ||||
-rw-r--r-- | misc/boncuk/boncuk.SlackBuild | 95 | ||||
-rw-r--r-- | misc/boncuk/boncuk.desktop | 13 | ||||
-rw-r--r-- | misc/boncuk/boncuk.info | 12 | ||||
-rw-r--r-- | misc/boncuk/doinst.sh | 10 | ||||
-rw-r--r-- | misc/boncuk/slack-desc | 19 |
6 files changed, 158 insertions, 0 deletions
diff --git a/misc/boncuk/README b/misc/boncuk/README new file mode 100644 index 000000000000..59b67423ffee --- /dev/null +++ b/misc/boncuk/README @@ -0,0 +1,9 @@ +Boncuk is a simple QT based Turkish-English and English-Turkish dictionary +which can do off-line and on-line look-ups. By default, it will install the +off-line word look-up database in /usr/share/boncuk/. If you don't want to +use the off-line word database (to instead use only the on-line word look-up), +run the script like this: DICT_INSTALL=NO ./boncuk.SlackBuild. + +Varsayılan davranış, yerel kelime veritabanını /usr/share/boncuk dizinine kuracaktır. +Eğer yerel kelime veritabanını kullanmayıp, sadece internet üzerinden kelime aranmasını +kullanmak istiyorsanız, betiği DICT_INSTALL=NO./boncuk.SlackBuild olarak çalıştırın. diff --git a/misc/boncuk/boncuk.SlackBuild b/misc/boncuk/boncuk.SlackBuild new file mode 100644 index 000000000000..af904d41d894 --- /dev/null +++ b/misc/boncuk/boncuk.SlackBuild @@ -0,0 +1,95 @@ +#!/bin/sh + +# Slackware build script for Boncuk + +# Copyright 2009 Ozan Türkyılmaz ozan.turkyilmaz@gmail.com +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=boncuk +VERSION=${VERSION:-0.8} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +DICT_INSTALL=${DICT_INSTALL:-YES} +DICT=boncuk-dict +DICT_VERSION=${DICT_VERSION:-0.1.1} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +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 {} \; + +lrelease boncuk.pro +qmake QMAKE_CXXFLAGS="$SLKCFLAGS" +make +strip --strip-unneeded bin/boncuk + +mkdir -p $PKG/usr/bin +install -m 0755 bin/boncuk $PKG/usr/bin/boncuk +mkdir -p $PKG/usr/share/icons/hicolor/64x64/apps +cat resources/boncuk.png > $PKG/usr/share/icons/hicolor/64x64/apps/boncuk.png +mkdir -p $PKG/usr/share/applications +cat $CWD/boncuk.desktop > $PKG/usr/share/applications/boncuk.desktop + +if [ "$DICT_INSTALL" = "YES" ]; then + tar xvf $CWD/$DICT-$DICT_VERSION.tar.bz2 + mkdir -p $PKG/usr/share/boncuk + cat $DICT-$DICT_VERSION/boncuk.db > $PKG/usr/share/boncuk/boncuk.db +fi + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog README COPYING INSTALL NEWS TODO \ + $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/misc/boncuk/boncuk.desktop b/misc/boncuk/boncuk.desktop new file mode 100644 index 000000000000..4ccae5a68670 --- /dev/null +++ b/misc/boncuk/boncuk.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Name=Boncuk +Comment=A Turkish-English/English-Turkish Dictionary +Comment[tr]=Türkçe-İngilizce/İngilizce-Türkçe Sözlük +GenericName=Dictionary +GenericName[tr]=Sözlük +Exec=boncuk +Icon=boncuk +Terminal=false +Type=Application +X-MultipleArgs=false +Categories=Utility; diff --git a/misc/boncuk/boncuk.info b/misc/boncuk/boncuk.info new file mode 100644 index 000000000000..e80a58583185 --- /dev/null +++ b/misc/boncuk/boncuk.info @@ -0,0 +1,12 @@ +PRGNAM="boncuk" +VERSION="0.8" +HOMEPAGE="http://sf.net/projects/pysozluk-qt" +DOWNLOAD="http://downloads.sourceforge.net/project/pysozluk-qt/boncuk/0.8/boncuk-0.8.tar.bz2 \ + http://downloads.sourceforge.net/project/pysozluk-qt/boncuk-dict/0.1.1/boncuk-dict-0.1.1.tar.bz2" +MD5SUM="a7219e1a2d6914e85d268cb63baed6c0 \ + c02201294ec15d45549a05a9455b2811" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Ozan Türkyılmaz" +EMAIL="ozan.turkyilmaz@gmail.com" +APPROVED="rworkman" diff --git a/misc/boncuk/doinst.sh b/misc/boncuk/doinst.sh new file mode 100644 index 000000000000..1f8ff67dedb2 --- /dev/null +++ b/misc/boncuk/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/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 + diff --git a/misc/boncuk/slack-desc b/misc/boncuk/slack-desc new file mode 100644 index 000000000000..6d5e65ca1a28 --- /dev/null +++ b/misc/boncuk/slack-desc @@ -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 ':'. + + |-----handy-ruler------------------------------------------------------| +boncuk: boncuk( Turkish-English/English-Turkish Dictionary) +boncuk: +boncuk: Boncuk is a simple QT based Turkish-English/English-Turkish +boncuk: dictionary which can do off-line and on-line work look-ups. +boncuk: +boncuk: +boncuk: +boncuk: +boncuk: +boncuk: +boncuk: |