[arch-commits] Commit in fonts-tlwg/trunk (PKGBUILD install)

Gaëtan Bisson bisson at archlinux.org
Sat Nov 26 18:24:12 UTC 2016


    Date: Saturday, November 26, 2016 @ 18:24:11
  Author: bisson
Revision: 282091

upstream update

Added:
  fonts-tlwg/trunk/install
Modified:
  fonts-tlwg/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-26 18:06:22 UTC (rev 282090)
+++ PKGBUILD	2016-11-26 18:24:11 UTC (rev 282091)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=fonts-tlwg
+pkgver=0.6.3
+pkgrel=1
+pkgdesc='Collection of scalable Thai fonts'
+url='https://linux.thai.net/projects/fonts-tlwg'
+arch=('any')
+license=('GPL' 'custom')
+makedepends=('fontforge')
+depends=('xorg-fonts-encodings' 'xorg-fonts-alias' 'xorg-font-utils' 'fontconfig')
+source=("https://linux.thai.net/pub/thailinux/software/${pkgname}/${pkgname}-${pkgver}.tar.xz")
+sha1sums=('89e98f61395a371c0b5e190a6905bd273aed2a47')
+
+conflicts=('ttf-tlwg')
+provides=('ttf-tlwg')
+replaces=('ttf-tlwg')
+
+install=install
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--with-ttfdir=/usr/share/fonts/TTF \
+
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+
+	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}

Added: install
===================================================================
--- install	                        (rev 0)
+++ install	2016-11-26 18:24:11 UTC (rev 282091)
@@ -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
+}



More information about the arch-commits mailing list