diff options
author | Roman Mikhayloff | 2016-12-21 18:38:42 +0300 |
---|---|---|
committer | Roman Mikhayloff | 2016-12-21 18:38:42 +0300 |
commit | 6d508487781aa8cd9440cce9c9f246baf8ef93fb (patch) | |
tree | 7856b6a17fec18fe8b978a17b21fa22c8bbe5420 | |
download | aur-6d508487781aa8cd9440cce9c9f246baf8ef93fb.tar.gz |
add ttf-xo-courser package
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | ttf-xo-courser.install | 15 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9b413986fec1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = ttf-xo-courser + pkgdesc = XO Courser font created considering trends of modern typography from «Новые облачные технологии» + pkgver = 1.00 + pkgrel = 1 + url = https://fonts.myoffice.ru + install = ttf-xo-courser.install + arch = any + license = custom: XO FONTS Open License + makedepends = dos2unix + makedepends = glibc + depends = fontconfig + depends = xorg-font-utils + source = XO_Courser-1.00.zip::http://fonts.myoffice.ru/wp-content/themes/template/fonts_page/files/XO_Courser.zip + sha256sums = e089d34cb498005a3499137a482ecc5f2dcac59f405c1d5145f6228306b0eb35 + +pkgname = ttf-xo-courser + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d630b89f0f0a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Roman Mikhayloff <rimf@inbox.ru> + +pkgname=ttf-xo-courser +pkgver=1.00 # The fake version, the original is unversioned. +pkgrel=1 +pkgdesc="XO Courser font created considering trends of modern typography from «Новые облачные технологии»" +arch=('any') +url="https://fonts.myoffice.ru" +license=('custom: XO FONTS Open License') +depends=('fontconfig' 'xorg-font-utils') +makedepends=('dos2unix' 'glibc') +source=("XO_Courser-${pkgver}.zip::http://fonts.myoffice.ru/wp-content/themes/template/fonts_page/files/XO_Courser.zip") +sha256sums=('e089d34cb498005a3499137a482ecc5f2dcac59f405c1d5145f6228306b0eb35') +install=${pkgname}.install + +prepare() { + iconv -f cp1251 -t utf8 -o LICENSE XO_Fonts_License.txt + dos2unix LICENSE +} + +package() { + install -dm755 "${pkgdir}"/usr/share/fonts/TTF + + cd "${srcdir}" + install -m644 *.ttf "${pkgdir}"/usr/share/fonts/TTF/ + + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/ttf-xo-courser.install b/ttf-xo-courser.install new file mode 100644 index 000000000000..724145fffa8a --- /dev/null +++ b/ttf-xo-courser.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 +} |