summaryrefslogtreecommitdiff
path: root/desktop/un-fonts-core/un-fonts-core.SlackBuild
diff options
context:
space:
mode:
authorChristophe Nguyen <cnguyenminhtan@free.fr>2010-05-13 00:23:16 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:23:16 +0200
commit13d0404eeec342bb241a19d7c9cef07ef253bd4d (patch)
treee237a700608960331ce307191a525b0e632c5ee2 /desktop/un-fonts-core/un-fonts-core.SlackBuild
parentdb6eedae69f6ffff9eeeb26e517238fcde328bfb (diff)
downloadslackbuilds-13d0404eeec342bb241a19d7c9cef07ef253bd4d.tar.gz
desktop/un-fonts-core: Updated for version 1.0
Diffstat (limited to 'desktop/un-fonts-core/un-fonts-core.SlackBuild')
-rw-r--r--desktop/un-fonts-core/un-fonts-core.SlackBuild24
1 files changed, 8 insertions, 16 deletions
diff --git a/desktop/un-fonts-core/un-fonts-core.SlackBuild b/desktop/un-fonts-core/un-fonts-core.SlackBuild
index c77a38c240..208e15c9aa 100644
--- a/desktop/un-fonts-core/un-fonts-core.SlackBuild
+++ b/desktop/un-fonts-core/un-fonts-core.SlackBuild
@@ -23,12 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=un-fonts-core
-PRGNAMALT=un-fonts
VERSION=1.0
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAME=un-fonts
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -39,9 +40,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAMALT
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAMALT
+rm -rf $SRCNAME
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $SRCNAME
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -49,17 +50,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-
-# To determinate Xorg's location
-XPREF=$(pkg-config --variable=prefix x11) || true
-if [ "$XPREF" == "/usr" ]; then
- FONTDIR="$PKG/usr/share/fonts/TTF"
-else
- FONTDIR="$PKG/usr/X11R6/lib/X11/fonts/TTF"
-fi
-
-mkdir -p $FONTDIR/
-cp -a *.ttf $FONTDIR/
+mkdir -p $PKG/usr/share/fonts/TTF
+cp -a *.ttf $PKG/usr/share/fonts/TTF
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
@@ -70,4 +62,4 @@ 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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}