diff --git a/ttf-raleway/PKGBUILD b/ttf-raleway/PKGBUILD new file mode 100644 index 000000000..16d283946 --- /dev/null +++ b/ttf-raleway/PKGBUILD @@ -0,0 +1,18 @@ +# Platform packages for Chakra + +pkgname=ttf-raleway +pkgver=1 +pkgrel=1 +pkgdesc="A sans-serif typeface" +arch=('any') +url="http://theleagueofmoveabletype.com/raleway/" +license=('OFL') +depends=('fontconfig' 'xorg-font-utils') +install=ttf.install +source=('http://theleagueofmoveabletype.com/raleway/download') +md5sums=('ff280d51659a149751a3fe194d2944b4') + +package() { + install -d ${pkgdir}/usr/share/fonts/TTF/ + install -m644 ${srcdir}/theleagueof-raleway-40afd9d/*.ttf ${pkgdir}/usr/share/fonts/TTF/ +} diff --git a/ttf-raleway/ttf.install b/ttf-raleway/ttf.install new file mode 100644 index 000000000..a98c0cdf7 --- /dev/null +++ b/ttf-raleway/ttf.install @@ -0,0 +1,21 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +op=$1 +shift + +$op $* +