From 0d082b66177c5037e4d0d540ceca20aae4ba5871 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 19 Jan 2015 14:23:53 +0000 Subject: font-fncp6-git → earnestly-font-collection-git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') 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 +} -- cgit v1.2.3-70-g09d2