summaryrefslogtreecommitdiffstats
path: root/webcore-fonts-installer
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2013-11-15 12:38:53 +0000
committer Eric Hameleers <alien@slackware.com>2013-11-15 12:38:53 +0000
commit17c5c33a771c1bda8f4543f226f52c9bcfd23792 (patch)
treea3914837630b0ce8d0b6a8e3de003f0d09daf8a7 /webcore-fonts-installer
parent0450a670448c706974e9a0e63de1d023788d3c4a (diff)
downloadasb-17c5c33a771c1bda8f4543f226f52c9bcfd23792.tar.gz
asb-17c5c33a771c1bda8f4543f226f52c9bcfd23792.tar.xz
By adding placeholder files inside the package, ensure that 'removepkg' will also remove the downloaded font files
Diffstat (limited to 'webcore-fonts-installer')
-rwxr-xr-xwebcore-fonts-installer/build/webcore-fonts-installer.SlackBuild21
1 files changed, 19 insertions, 2 deletions
diff --git a/webcore-fonts-installer/build/webcore-fonts-installer.SlackBuild b/webcore-fonts-installer/build/webcore-fonts-installer.SlackBuild
index bc596287..b248450e 100755
--- a/webcore-fonts-installer/build/webcore-fonts-installer.SlackBuild
+++ b/webcore-fonts-installer/build/webcore-fonts-installer.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright (c) 2013 Eric Hameleers, Eindhoven, NL
+# Copyright 2013 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -32,6 +32,9 @@
# Changelog:
# 3.0-1: 03/Nov/2013 by Eric Hameleers <alien@slackware.com>
# * Initial build.
+# 3.0-2: 15/Nov/2013 by Eric Hameleers <alien@slackware.com>
+# * By adding placeholder files inside the package, ensure that
+# 'removepkg' will also remove the downloaded fonts.
#
# Run 'sh webcore-fonts-installer.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -42,7 +45,7 @@
PRGNAM=webcore-fonts-installer
VERSION=${VERSION:-3.0}
ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -98,6 +101,20 @@ echo "++"
# the fonts. This way, no license is breached - you as the enduser are free
# to download and use the MS fonts.
+# This command was used to create zero-byte placeholder files for the downloade
+# fonts, so that "removepkg webcore-fonts-installer" will actually remove the
+# downloaded font files as well:
+# mkdir -p tmp/usr/share/fonts/TTF/{}
+# tar -ztvf webcore-fonts-3.0.tar.gz | grep -E '/vista/|/fonts/' | rev | cut -d/ -f1 | rev |xargs -I{} touch tmp/usr/share/fonts/TTF/{}
+# (cd tmp && tar -zcvf ../_webcore-fonts-installer.tar.gz .)
+
+# Explode the package framework:
+if [ -f $SRCDIR/_$PRGNAM.tar.gz ]; then
+ cd $PKG
+ explodepkg $SRCDIR/_$PRGNAM.tar.gz
+ cd -
+fi
+
# Post-install script:
mkdir -p $PKG/install
cat <<EOT > $PKG/install/doinst.sh