diff options
author | Raymond W. Ko <raymond.w.ko@gmail.com> | 2015-06-10 10:23:52 -0400 |
---|---|---|
committer | Raymond W. Ko <raymond.w.ko@gmail.com> | 2015-06-10 10:23:52 -0400 |
commit | 160df2d4c94f2f5e1df684fb62f22848f87a11af (patch) | |
tree | 0622f6358d3dc953bc39362841ffd0dbc405298d | |
download | bdf-tewi-git-160df2d4c94f2f5e1df684fb62f22848f87a11af.tar.gz bdf-tewi-git-160df2d4c94f2f5e1df684fb62f22848f87a11af.tar.bz2 bdf-tewi-git-160df2d4c94f2f5e1df684fb62f22848f87a11af.zip |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | bdf-tewi-git.install | 10 |
4 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..e073462 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = bdf-tewi-git + pkgdesc = Bitmap font + pkgver = 0.197.90e0dfa + pkgrel = 1 + url = https://github.com/lucy/tewi-font + install = bdf-tewi-git.install + arch = any + license = custom:GPL3 + makedepends = git + depends = xorg-fonts-encodings + depends = xorg-font-utils + source = git+https://github.com/lucy/tewi-font.git + sha256sums = SKIP + +pkgname = bdf-tewi-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..025d0e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.xz +pkg +src +/tewi-font diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4ed3a62 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: lucy <lucy@luz.lu> + +pkgname=bdf-tewi-git +_gitname=tewi-font +pkgver=0.197.90e0dfa +pkgrel=1 +pkgdesc='Bitmap font' +arch=('any') +url="https://github.com/lucy/tewi-font" +license=('custom:GPL3') +depends=('xorg-fonts-encodings' 'xorg-font-utils') +makedepends=('git') +install="$pkgname.install" +source=('git+https://github.com/lucy/tewi-font.git') +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + echo "0.$(git rev-list --count HEAD).$(git describe --always)" +} + +package() { + cd "$srcdir/$_gitname" + install -T -Dm644 "COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -d -m755 "$pkgdir/usr/share/fonts/misc/" + install -m644 -t "$pkgdir/usr/share/fonts/misc/" \ + "tewi-bold-11.bdf" "tewi-normal-11.bdf" \ + "tewi2a-bold-11.bdf" "tewi2a-normal-11.bdf" \ + "tewifw-bold-11.bdf" "tewifw-normal-11.bdf" +} diff --git a/bdf-tewi-git.install b/bdf-tewi-git.install new file mode 100644 index 0000000..b181d92 --- /dev/null +++ b/bdf-tewi-git.install @@ -0,0 +1,10 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f + mkfontscale /usr/share/fonts/misc + mkfontdir /usr/share/fonts/misc + echo "done." +} + +post_upgrade() { post_install; } +post_remove() { post_install; } |