summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Christensen2015-06-08 10:58:54 -0600
committerDevin Christensen2015-06-08 10:58:54 -0600
commiteb5ae1d8a75878d8e27b7fd3f6094f9d96086503 (patch)
tree36065441cb4d87f476638eb81d941d2f937c6ac9
downloadaur-eb5ae1d8a75878d8e27b7fd3f6094f9d96086503.tar.gz
Create package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD25
-rw-r--r--otf-inconsolata-dz-powerline-git.install15
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..453e9f94137
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = otf-inconsolata-dz-powerline-git
+ pkgdesc = Inconsolata-dz for Powerline
+ pkgver = r71.39c99c0
+ pkgrel = 1
+ url = https://github.com/powerline/fonts
+ install = otf-inconsolata-dz-powerline-git.install
+ arch = any
+ license = custom:SIL Open Font License, Version 1.0
+ makedepends = git
+ depends = fontconfig
+ depends = xorg-font-utils
+ conflicts = powerline-fonts
+ conflicts = powerline-fonts-git
+ source = git://github.com/powerline/fonts.git
+ md5sums = SKIP
+
+pkgname = otf-inconsolata-dz-powerline-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d24edb9ba58
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Devin Christensen <quixoten at gmail dot com>
+pkgname=otf-inconsolata-dz-powerline-git
+pkgver=r71.39c99c0
+pkgrel=1
+pkgdesc="Inconsolata-dz for Powerline"
+arch=('any')
+url=('https://github.com/powerline/fonts')
+license=('custom:SIL Open Font License, Version 1.0')
+depends=(fontconfig xorg-font-utils )
+makedepends=('git')
+conflicts=(powerline-fonts powerline-fonts-git)
+install=$pkgname.install
+source=('git://github.com/powerline/fonts.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd fonts
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd $srcdir/fonts/InconsolataDz
+ find . -iname '*.otf' -execdir install -Dm644 {} $pkgdir/usr/share/fonts/OTF/{} \;
+ install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/otf-inconsolata-dz-powerline-git.install b/otf-inconsolata-dz-powerline-git.install
new file mode 100644
index 00000000000..f8ecdd439d8
--- /dev/null
+++ b/otf-inconsolata-dz-powerline-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ mkfontscale /usr/share/fonts/OTF > /dev/null 2>&1
+ mkfontdir /usr/share/fonts/OTF > /dev/null 2>&1
+ fc-cache -s >/dev/null
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}