aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-19 14:23:53 +0000
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:46 +0200
commit0d082b66177c5037e4d0d540ceca20aae4ba5871 (patch)
treee23ecf22110fd191c4222d12c063703cbd5591c6
downloadpkgbuilds-0d082b66177c5037e4d0d540ceca20aae4ba5871.tar.xz
font-fncp6-git → earnestly-font-collection-gitearnestly-font-collection-git
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD40
-rw-r--r--fonts.install11
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..c17bcca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 14:57:32 UTC 2015
+pkgbase = earnestly-font-collection-git
+ pkgdesc = Collection of Earnestly’s fonts
+ pkgver = 0.r16.9ef8993
+ pkgrel = 1
+ url = https://github.com/Earnestly/fonts
+ install = fonts.install
+ arch = any
+ license = custom
+ makedepends = fontforge
+ depends = fontconfig
+ provides = font-fncp6
+ provides = font-fncp7
+ conflicts = font-fncp6
+ conflicts = font-fncp7
+ source = git+https://github.com/Earnestly/fonts.git
+ sha256sums = SKIP
+
+pkgname = earnestly-font-collection-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..f6903d3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+pkgname=earnestly-font-collection-git
+pkgver=0.r16.9ef8993
+pkgrel=1
+
+pkgdesc="Collection of Earnestly’s fonts"
+arch=('any')
+url="https://github.com/Earnestly/fonts"
+license=('custom')
+
+provides=('font-fncp6' 'font-fncp7')
+conflicts=('font-fncp6' 'font-fncp7')
+
+depends=('fontconfig')
+makedepends=('fontforge')
+
+install=fonts.install
+
+source=('git+https://github.com/Earnestly/fonts.git')
+
+sha256sums=('SKIP')
+
+pkgver() {
+ cd fonts
+ printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git describe --always)"
+}
+
+build() {
+ for font in fncp6 fncp7; do
+ cd "$srcdir"/fonts/"$font"
+ make
+ done
+}
+
+package() {
+ for font in fncp6 fncp7; do
+ cd "$srcdir"/fonts/"$font"
+ install -d "$pkgdir"/usr/share/fonts/"$font"
+ install -m644 *.otf -t "$pkgdir"/usr/share/fonts/"$font"
+ done
+}
diff --git a/fonts.install b/fonts.install
new file mode 100644
index 0000000..428fda9
--- /dev/null
+++ b/fonts.install
@@ -0,0 +1,11 @@
+post_install() {
+ fc-cache
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}