diff options
author | ShadowKyogre | 2015-06-08 07:41:50 -0700 |
---|---|---|
committer | ShadowKyogre | 2015-06-08 07:41:50 -0700 |
commit | 76b24b61fc075c976c0036f401bb9d7417166593 (patch) | |
tree | f959d9657cf37c219746bf8cdab177d229436461 | |
download | aur-76b24b61fc075c976c0036f401bb9d7417166593.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | ttf-optimusprinceps.install | 20 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..79f286b18c26 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ttf-optimusprinceps + pkgdesc = Optimus Princeps font by Manfred Klein + pkgver = 1.0 + pkgrel = 1 + url = http://www.dafont.com/optimusprinceps.font + install = ttf-optimusprinceps.install + arch = any + license = custom + makedepends = unzip + depends = fontconfig + depends = xorg-font-utils + source = optimusprinceps.zip::http://img.dafont.com/dl/?f=optimusprinceps + md5sums = 42b921226539e25d43e48bef2d19a816 + +pkgname = ttf-optimusprinceps + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2bd26711f761 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: markzz <mark dot weiman at markzz dot com> +# Contributor: ShadowKyogre <shadowkyogre@aim.com> + +pkgname=ttf-optimusprinceps +pkgver=1.0 +pkgrel=1 +pkgdesc="Optimus Princeps font by Manfred Klein" +arch=('any') +url="http://www.dafont.com/optimusprinceps.font" +license=('custom') +makedepends=('unzip') +depends=(fontconfig xorg-font-utils) +source=("optimusprinceps.zip::http://img.dafont.com/dl/?f=optimusprinceps") +md5sums=('42b921226539e25d43e48bef2d19a816') +install=$pkgname.install + +package() { + install -dm755 "$pkgdir/usr/share/fonts/TTF" + + install -m644 "$srcdir/OptimusPrinceps.ttf" "$pkgdir/usr/share/fonts/TTF/OptimusPrinceps.ttf" + install -m644 "$srcdir/OptimusPrincepsSemiBold.ttf" "$pkgdir/usr/share/fonts/TTF/OptimusPrincepsSemiBold.ttf" +} + +# vim:set ts=2 sw=2 et: diff --git a/ttf-optimusprinceps.install b/ttf-optimusprinceps.install new file mode 100644 index 000000000000..4f5212ef22ba --- /dev/null +++ b/ttf-optimusprinceps.install @@ -0,0 +1,20 @@ +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 $* |