diff options
author | Stefan Husmann | 2015-06-09 00:59:30 +0200 |
---|---|---|
committer | Stefan Husmann | 2015-06-09 00:59:30 +0200 |
commit | e821532dd3f07ddbc53def886271f2033e066655 (patch) | |
tree | 1360505d856b18e627a11a1cf8400f27d17839e3 | |
download | aur-e821532dd3f07ddbc53def886271f2033e066655.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | ttf-lekton.install | 15 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..53fbf792b786 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ttf-lekton + pkgdesc = Lekton font + pkgver = 1.0 + pkgrel = 2 + url = http://www.fontsquirrel.com/fonts/lekton + install = ttf-lekton.install + arch = any + license = custom + depends = fontconfig + depends = xorg-font-utils + source = http://www.fontsquirrel.com/fonts/download/lekton + md5sums = 815898ca5ce291f6c101ad3a1d7a92bb + +pkgname = ttf-lekton + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a86c72d2d642 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=ttf-lekton +pkgver=1.0 +pkgrel=2 +pkgdesc="Lekton font" +arch=('any') +depends=('fontconfig' 'xorg-font-utils') +url='http://www.fontsquirrel.com/fonts/lekton' +source=("http://www.fontsquirrel.com/fonts/download/lekton") +md5sums=('815898ca5ce291f6c101ad3a1d7a92bb') +install=$pkgname.install +license=('custom') + +package() { + install -d "$pkgdir/usr/share/fonts/TTF" + cp -dpr --no-preserve=ownership "$srcdir"/*.ttf \ + "$pkgdir/usr/share/fonts/TTF/" + install -Dm644 "$srcdir/SIL Open Font License.txt" \ + "$pkgdir/usr/share/licenses/$pkgname/SIL_Open_Font_License.txt" +} diff --git a/ttf-lekton.install b/ttf-lekton.install new file mode 100644 index 000000000000..1aae7e73bcb5 --- /dev/null +++ b/ttf-lekton.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -fs >/dev/null + mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1 + mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1 + echo "done" +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |