Skip to content

Instantly share code, notes, and snippets.

@nna774 nna774/PKGBUILD
Last active Aug 29, 2015

Embed
What would you like to do?
menma font pkgbuild
# Contributor: NoNameA 774 <nonamea774@gmail.com>
pkgname=ttf-menma
pkgver=1
pkgrel=1
pkgdesc="Japanese TrueType fonts created by menma"
arch=('any')
url="http://www.anohana.jp/tv/special/font.html"
license=('custom')
depends=('fontconfig' 'xorg-font-utils')
install=ttf.install
source=("http://www.anohana.jp/tv/special/img/menma_font.zip")
md5sums=('357a78c18cc17dd11bbb0c1f3cab6585' )
makedepends=('unzip')
prepare() {
unzip menma_font.zip
}
package() {
install -d ${pkgdir}/usr/share/fonts/TTF
install -m644 "$srcdir/"menma_font/menma.ttf ${pkgdir}/usr/share/fonts/TTF
install -D -m644 "$srcdir/"menma_font/readme.txt ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.txt
}
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.