summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenoliver9992017-09-07 15:52:15 +0100
committerbenoliver9992017-09-07 15:52:15 +0100
commit4a686543c61831a3808bfd511561250c8812b521 (patch)
tree6787955cbeebbe63aea767907b389191e774dfcc
downloadaur-4a686543c61831a3808bfd511561250c8812b521.tar.gz
Initial Commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD24
-rw-r--r--ttf-pf-agora-sans-pro-git.install15
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..86b533b5139
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ttf-pf-agora-sans-pro-git
+ pkgdesc = A free font from profont.net
+ pkgver = r4.1613ca7
+ pkgrel = 1
+ url = https://profont.net/family/pf-agora-sans-pro.html
+ install = ttf-pf-agora-sans-pro-git.install
+ arch = any
+ license = unknown
+ makedepends = git
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = git+https://github.com/benoliver999/pf-agora-sans-pro.git
+ md5sums = SKIP
+
+pkgname = ttf-pf-agora-sans-pro-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a92045c182c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Ben Oliver <ben@benoliver999.com>
+pkgname=ttf-pf-agora-sans-pro-git
+pkgrel=1
+pkgver=r4.1613ca7
+pkgdesc="A free font from profont.net"
+arch=('any')
+url='https://profont.net/family/pf-agora-sans-pro.html'
+license=('unknown')
+depends=(fontconfig xorg-font-utils )
+makedepends=('git')
+conflicts=()
+install=$pkgname.install
+source=('git+https://github.com/benoliver999/pf-agora-sans-pro.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "pf-agora-sans-pro"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ install -m755 -d "${pkgdir}/usr/share/fonts/ttf-pf-agora-sans-pro"
+ install -m644 -t "${pkgdir}/usr/share/fonts/ttf-pf-agora-sans-pro" "${srcdir}"/pf-agora-sans-pro/*.ttf
+}
diff --git a/ttf-pf-agora-sans-pro-git.install b/ttf-pf-agora-sans-pro-git.install
new file mode 100644
index 00000000000..83322116247
--- /dev/null
+++ b/ttf-pf-agora-sans-pro-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ mkfontscale /usr/share/fonts/TTF > /dev/null 2>&1
+ mkfontdir /usr/share/fonts/TTF > /dev/null 2>&1
+ fc-cache -s >/dev/null
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}