diff options
author | Mantissa | 2016-03-01 09:54:40 -0500 |
---|---|---|
committer | Mantissa | 2016-03-01 09:54:40 -0500 |
commit | 38536410de83900b3b4b0180e416e62aa5955b93 (patch) | |
tree | afed16aa1a83861311dfe524ca10e8c1cbbb31a5 | |
download | aur-38536410de83900b3b4b0180e416e62aa5955b93.tar.gz |
Initial commit, version 4.21.0.65
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | ttf.install | 15 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d8dbd7756f45 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Tue Mar 1 14:48:23 UTC 2016 +pkgbase = ttf-bookerly + pkgdesc = Amazon Kindle Fonts + pkgver = 4.21.0.65 + pkgrel = 1 + url = https://play.google.com/store/apps/details?id=com.amazon.kindle + install = ttf.install + arch = any + license = unknown + depends = fontconfig + depends = xorg-font-utils + source = amazonkindle.apk::http://www.apkmirror.com/wp-content/themes/APKMirror/download.php?id=60658 + sha256sums = 462e9da7d6eb7cf67aa8abb6f66b522104fa1d7465a10f338ca488a187387490 + +pkgname = ttf-bookerly + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a88329e031ac --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +pkgname=ttf-bookerly +pkgver=4.21.0.65 +pkgrel=1 +pkgdesc="Amazon Kindle Fonts" +arch=(any) +url="https://play.google.com/store/apps/details?id=com.amazon.kindle" +license=('unknown') +depends=(fontconfig xorg-font-utils) +install=ttf.install +source=("amazonkindle.apk::http://www.apkmirror.com/wp-content/themes/APKMirror/download.php?id=60658") +sha256sums=('462e9da7d6eb7cf67aa8abb6f66b522104fa1d7465a10f338ca488a187387490') + +package() { + cd "$srcdir/assets" + + # Prepare destination directory + install -dm755 "$pkgdir/usr/share/fonts/TTF" + + # Install fonts + install -m644 Bookerly*.ttf "$pkgdir/usr/share/fonts/TTF" +} diff --git a/ttf.install b/ttf.install new file mode 100644 index 000000000000..774ead982eef --- /dev/null +++ b/ttf.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -s > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |