Date: Thursday, March 28, 2019 @ 10:18:23
  Author: bisson
Revision: 445236

extra2community: Moving ttf-khmer from extra to community

Added:
  ttf-khmer/
  ttf-khmer/repos/
  ttf-khmer/trunk/
  ttf-khmer/trunk/PKGBUILD
  ttf-khmer/trunk/install

----------+
 PKGBUILD |   24 ++++++++++++++++++++++++
 install  |   13 +++++++++++++
 2 files changed, 37 insertions(+)

Added: ttf-khmer/trunk/PKGBUILD
===================================================================
--- ttf-khmer/trunk/PKGBUILD                            (rev 0)
+++ ttf-khmer/trunk/PKGBUILD    2019-03-28 10:18:23 UTC (rev 445236)
@@ -0,0 +1,24 @@
+# Maintainer: Gaetan Bisson <[email protected]>
+# Contributor: Firmicus <francois.archlinux.org>
+# Contributor: Damir Perisa <[email protected]>
+
+pkgname=ttf-khmer
+_pkgname=All_KhmerOS
+pkgver=5.0
+pkgrel=6
+pkgdesc='Fonts for Khmer and Latin alphabets'
+# url='http://www.khmeros.info/en/fonts' # dead
+url='https://sourceforge.net/projects/khmer/'
+license=('LGPL')
+arch=('any')
+depends=('xorg-fonts-encodings' 'xorg-fonts-alias' 'xorg-font-utils' 
'fontconfig')
+source=("https://downloads.sourceforge.net/project/khmer/Fonts%20-%20KhmerOS/KhmerOS%20Fonts%20${pkgver}-%20LGPL%20Licence/${_pkgname}_${pkgver}.zip";)
+sha256sums=('62fec2273016fb6e69b18635e696fd2c91953af9cbe757b341721aec2232432e')
+
+install=install
+
+package() {
+       cd "${srcdir}/${_pkgname}_${pkgver}"
+       install -dm755 "${pkgdir}"/usr/share/fonts/TTF
+       install -m644 *.ttf "${pkgdir}/"usr/share/fonts/TTF/
+}


Property changes on: ttf-khmer/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: ttf-khmer/trunk/install
===================================================================
--- ttf-khmer/trunk/install                             (rev 0)
+++ ttf-khmer/trunk/install     2019-03-28 10:18:23 UTC (rev 445236)
@@ -0,0 +1,13 @@
+post_install() {
+       fc-cache -s > /dev/null
+       mkfontscale usr/share/fonts/TTF
+       mkfontdir usr/share/fonts/TTF
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       post_install
+}

Reply via email to