summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Mikhayloff2016-12-21 18:42:29 +0300
committerRoman Mikhayloff2016-12-21 18:42:29 +0300
commitba1bb432457915d5acaa1d7d28d278bb4703861f (patch)
tree2b699b3d142f465134f609f45a026fcc8126a737
downloadaur-ba1bb432457915d5acaa1d7d28d278bb4703861f.tar.gz
add ttf-xo-oriel package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
-rw-r--r--ttf-xo-oriel.install15
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b9d2311c5bf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ttf-xo-oriel
+ pkgdesc = XO Oriel font created considering trends of modern typography from «Новые облачные технологии»
+ pkgver = 1.00
+ pkgrel = 1
+ url = https://fonts.myoffice.ru
+ install = ttf-xo-oriel.install
+ arch = any
+ license = custom: XO FONTS Open License
+ makedepends = dos2unix
+ makedepends = glibc
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = XO_Oriel-1.00.zip::http://fonts.myoffice.ru/wp-content/themes/template/fonts_page/files/XO_Oriel.zip
+ sha256sums = c4353cff43714a02f03478037a348285b600c284e4573ff950411d9af381c534
+
+pkgname = ttf-xo-oriel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..21ea385bd35
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Roman Mikhayloff <rimf@inbox.ru>
+
+pkgname=ttf-xo-oriel
+pkgver=1.00 # The fake version, the original is unversioned.
+pkgrel=1
+pkgdesc="XO Oriel 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_Oriel-${pkgver}.zip::http://fonts.myoffice.ru/wp-content/themes/template/fonts_page/files/XO_Oriel.zip")
+sha256sums=('c4353cff43714a02f03478037a348285b600c284e4573ff950411d9af381c534')
+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-oriel.install b/ttf-xo-oriel.install
new file mode 100644
index 00000000000..724145fffa8
--- /dev/null
+++ b/ttf-xo-oriel.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
+}