[arch-commits] Commit in ttf-fireflysung/trunk (PKGBUILD ttf.install)

Eric Bélanger eric at archlinux.org
Sun May 3 20:13:00 EDT 2009


    Date: Sunday, May 3, 2009 @ 20:13:00
  Author: eric
Revision: 37837

upgpkg: ttf-fireflysung 1.4.2-2
    Added license, Fixed install scriptlet

Modified:
  ttf-fireflysung/trunk/PKGBUILD
  ttf-fireflysung/trunk/ttf.install

-------------+
 PKGBUILD    |   12 +++++++-----
 ttf.install |    9 ++-------
 2 files changed, 9 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-04 00:04:33 UTC (rev 37836)
+++ PKGBUILD	2009-05-04 00:13:00 UTC (rev 37837)
@@ -3,10 +3,11 @@
 
 pkgname=ttf-fireflysung
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="firefly embedded (truetype) bitmap font"
 arch=("i686" "x86_64")
 url="http://www.study-area.org/apt/firefly-font/"
+license=('custom: Arphic Public_License')
 depends=(fontconfig xorg-font-utils)
 install=ttf.install
 #source=(${url}/fireflysung-${pkgver}.tar.gz)
@@ -14,8 +15,9 @@
 md5sums=('d60a23d5056f2303ae6fde469e6915b8')
 
 build() {
-  cd ${startdir}/src/opendesktop-fonts-${pkgver}
-  mkdir -p  ${startdir}/pkg/usr/share/fonts/TTF
-  install -m 644 *.ttf ${startdir}/pkg/usr/share/fonts/TTF
-  install -m 644 *.ttc ${startdir}/pkg/usr/share/fonts/TTF
+  cd ${srcdir}/opendesktop-fonts-${pkgver}
+  install -d ${pkgdir}/usr/share/fonts/TTF
+  install -m 644 *.ttf ${pkgdir}/usr/share/fonts/TTF
+  install -m 644 *.ttc ${pkgdir}/usr/share/fonts/TTF
+  install -D -m644 COPYRIGHT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }

Modified: ttf.install
===================================================================
--- ttf.install	2009-05-04 00:04:33 UTC (rev 37836)
+++ ttf.install	2009-05-04 00:13:00 UTC (rev 37837)
@@ -1,8 +1,8 @@
 post_install() {
   echo -n "Updating font cache... "
   fc-cache -f > /dev/null
-  mkfontscale /usr/share/fonts/TTF
-  mkfontdir /usr/share/fonts/TTF
+  mkfontscale usr/share/fonts/TTF
+  mkfontdir usr/share/fonts/TTF
   echo "done."
 }
 
@@ -13,8 +13,3 @@
 post_remove() {
   post_install $1
 }
-
-op=$1
-shift
-
-$op $*



More information about the arch-commits mailing list