diff options
author | Niv Ierushalmi <niv.ierushalmi@gmail.com> | 2012-12-16 17:43:51 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-23 09:16:33 -0500 |
commit | 2725f5047feb19d264cc94d3c3bb3299341c4ec6 (patch) | |
tree | d5a159cf96ba1ce438ff6ef7638b64bd08d1993a /system/culmus | |
parent | 6781139ab99d679a775fb04edab5f177ebd6b9cd (diff) |
system/culmus: Added (Hebrew scalable fonts)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/culmus')
-rw-r--r-- | system/culmus/README | 5 | ||||
-rw-r--r-- | system/culmus/culmus.SlackBuild | 73 | ||||
-rw-r--r-- | system/culmus/culmus.info | 10 | ||||
-rw-r--r-- | system/culmus/doinst.sh | 12 | ||||
-rw-r--r-- | system/culmus/slack-desc | 19 |
5 files changed, 119 insertions, 0 deletions
diff --git a/system/culmus/README b/system/culmus/README new file mode 100644 index 0000000000000..aee842c905a33 --- /dev/null +++ b/system/culmus/README @@ -0,0 +1,5 @@ +culmus-fonts (Hebrew scalable fonts) + +The Culmus project aims at providing the Hebrew-speaking +GNU/Linux and Unix community with a basic collection of Hebrew +fonts for X Windows. diff --git a/system/culmus/culmus.SlackBuild b/system/culmus/culmus.SlackBuild new file mode 100644 index 0000000000000..946335001f7f2 --- /dev/null +++ b/system/culmus/culmus.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/sh + +# Slackware build script for culmus +# Copyright 2012, Niv Ierushalmi, Haifa, Israel +# 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. + +# This script does not build anything, it only repackages the culmus fonts +# into a slackware package + +PRGNAM=culmus +VERSION=${VERSION:-0.130} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=${ARCH:-noarch} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 {} \; + +mkdir -p $PKG/usr/share/fonts/TTF/ +cp *.ttf $PKG/usr/share/fonts/TTF/ + +mkdir -p $PKG/usr/share/fonts/Type1/ +cp *.pfa *.afm $PKG/usr/share/fonts/Type1/ + +mkdir -p $PKG/etc/fonts/conf.avail/ +cp culmus.conf $PKG/etc/fonts/conf.avail/61-culmus.conf + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGES GNU-GPL LICENSE LICENSE-BITSTREAM \ + $PKG/usr/doc/$PRGNAM-$VERSION + +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/system/culmus/culmus.info b/system/culmus/culmus.info new file mode 100644 index 0000000000000..5b1298306b962 --- /dev/null +++ b/system/culmus/culmus.info @@ -0,0 +1,10 @@ +PRGNAM="culmus" +VERSION="0.130" +HOMEPAGE="http://culmus.sourceforge.net/" +DOWNLOAD="http://sourceforge.net/projects/culmus/files/culmus/0.130/culmus-0.130.tar.gz" +MD5SUM="58e672defde4caeae42017cd2f9436a6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Niv Ierushalmi" +EMAIL="niv.ierushalmi@gmail.com" diff --git a/system/culmus/doinst.sh b/system/culmus/doinst.sh new file mode 100644 index 0000000000000..978cbdd491519 --- /dev/null +++ b/system/culmus/doinst.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +fc-cache -f +cd /usr/share/fonts/TTF +/usr/bin/mkfontscale +/usr/bin/mkfontdir + +cd /usr/share/fonts/Type1 +/usr/bin/mkfontscale +/usr/bin/mkfontdir + +( cd /etc/fonts/conf.d ; ln -sf ../conf.avail/61-culmus.conf 61-culmus.conf ) diff --git a/system/culmus/slack-desc b/system/culmus/slack-desc new file mode 100644 index 0000000000000..720cfbfc0afec --- /dev/null +++ b/system/culmus/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------------------------------------------------------| +culmus: culmus (Hebrew scalable fonts) +culmus: +culmus: The Culmus project aims at providing the Hebrew-speaking +culmus: GNU/Linux and Unix community with a basic collection of +culmus: Hebrew fonts for X Windows. +culmus: +culmus: +culmus: for more info: http://culmus.sourceforge.net +culmus: +culmus: +culmus: |