diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | ttf-rajdhani.install | 15 |
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5705a3f2cd9a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = ttf-rajdhani + pkgdesc = Rajdhani font by ITFoundry + pkgver = 2.000 + pkgrel = 0 + url = https://github.com/itfoundry/rajdhani + install = ttf-rajdhani.install + arch = any + license = SIL Open Font License v1.1 + depends = fontconfig + depends = xorg-fonts-encodings + depends = xorg-mkfontdir + depends = xorg-mkfontscale + source = https://github.com/itfoundry/rajdhani/releases/download/v2.000/Rajdhani-2_000.zip + sha256sums = 2dd0b14ed9989319fde8518e4b596467ae635571ffe7733d7968201d8cdeb9cf + +pkgname = ttf-rajdhani + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cedf62abf90a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Ben Cooper <contactme@bengcooper.co.uk> +pkgname=ttf-rajdhani +pkgver=2.000 +pkgrel=0 +pkgdesc='Rajdhani font by ITFoundry' +arch=('any') +url='https://github.com/itfoundry/rajdhani' +license=('SIL Open Font License v1.1') +depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-mkfontdir' 'xorg-mkfontscale') +install=ttf-rajdhani.install +source=('https://github.com/itfoundry/rajdhani/releases/download/v2.000/Rajdhani-2_000.zip') +sha256sums=('2dd0b14ed9989319fde8518e4b596467ae635571ffe7733d7968201d8cdeb9cf') + +package() { + install -dm 755 "${pkgdir}"/usr/share/fonts/OTF + install -m 644 *.otf "${pkgdir}"/usr/share/fonts/OTF/ +} diff --git a/ttf-rajdhani.install b/ttf-rajdhani.install new file mode 100644 index 000000000000..67445cf458e1 --- /dev/null +++ b/ttf-rajdhani.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -fs > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done" +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |