Create font configuration package for SLPSans.
authorMyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
Tue, 11 Jan 2011 11:31:11 +0000 (20:31 +0900)
committerMyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
Tue, 11 Jan 2011 11:31:11 +0000 (20:31 +0900)
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/default-fonts-fc-slp.install [new file with mode: 0644]
debian/default-fonts-fc-slp.postinst [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]
sdk_fonts_fc/99-slp.conf [new file with mode: 0755]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..772ff88
--- /dev/null
@@ -0,0 +1,6 @@
+default-fonts-fc-slp for Debian
+-------------------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- unknown <myoungwoon.kim@samsung.com>  Thu, 09 Sep 2010 20:53:06 +0900
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..c84a56e
--- /dev/null
@@ -0,0 +1,7 @@
+default-fonts-fc-sdk (0.0.1-1) unstable; urgency=low
+
+  * Initial release
+  * Git: 165.213.180.234:slp/sdk/default-fonts-fc-sdk
+  * Tag: default-fonts-fc-sdk_0.0.1-1
+
+ -- MyoungWoon Roy Kim <myoungwoon.kim@samsung.com>  Tue, 11 Jan 2011 20:22:57 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..0227237
--- /dev/null
@@ -0,0 +1,15 @@
+Source: default-fonts-fc-sdk
+Section: misc
+Priority: extra
+Maintainer: MyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
+Uploaders: 
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+Homepage: N/A
+
+Package: default-fonts-fc-sdk
+Section: misc
+Architecture: any
+Depends: default-fonts-sdk
+Description: Font configuration package for fontconfig
+ This package is maintained by SDK team
diff --git a/debian/default-fonts-fc-slp.install b/debian/default-fonts-fc-slp.install
new file mode 100644 (file)
index 0000000..aa796c6
--- /dev/null
@@ -0,0 +1,2 @@
+usr/etc/fonts/conf.d/*
+usr/etc/fonts/conf.avail/*
diff --git a/debian/default-fonts-fc-slp.postinst b/debian/default-fonts-fc-slp.postinst
new file mode 100644 (file)
index 0000000..d50cb31
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+FONT_FILES="99-slp.conf"
+
+if [ ${USER} == "root" ]
+then
+       # Change file owner
+       # Font files
+       for file in `echo $FONT_FILES`
+       do
+               chown root:root /usr/etc/fonts/conf.d/$file
+       done
+fi
+
+# Font files
+for file in `echo $FONT_FILES`
+do
+       chmod 644 /usr/etc/fonts/conf.d/$file
+done
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..ca882bb
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..f41458e
--- /dev/null
@@ -0,0 +1,85 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+INSTALL_DIR = $(CURDIR)/debian/tmp
+CONFIG_NAME = 99-slp.conf
+
+configure: configure-stamp
+
+configure-stamp:
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       -rm -rf $(INSTALL_DIR) clean
+       -rm -rf $(CURDIR)/debian/default-fonts-fc-sdk
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/default-fonts-fc-slp.
+       mkdir -p $(INSTALL_DIR)/usr/etc/fonts/conf.d/
+       mkdir -p $(INSTALL_DIR)/usr/etc/fonts/conf.avail/ && cp -a $(CURDIR)/sdk_fonts_fc/* $(INSTALL_DIR)/usr/etc/fonts/conf.avail/
+       cd $(INSTALL_DIR)/usr/etc/fonts/conf.d/
+       ln -s ../conf.avail/$(CONFIG_NAME) $(INSTALL_DIR)/usr/etc/fonts/conf.d/$(CONFIG_NAME)
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+       dh_install --sourcedir=debian/tmp
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/sdk_fonts_fc/99-slp.conf b/sdk_fonts_fc/99-slp.conf
new file mode 100755 (executable)
index 0000000..8af20ca
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- 
+ Accept deprecated 'SLP' alias, replacing it with 'Helvetica'
+ -->
+       <match target="pattern">
+               <!-- check to see if the font is just regular -->
+               <test qual="any" name="family">
+                       <string>SLP</string>
+               </test>
+               <edit name="family" mode="assign">
+                       <string>SLPSans</string>
+               </edit>
+       </match>
+</fontconfig>