summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBehnam Momeni2016-08-08 10:41:54 +0430
committerBehnam Momeni2016-08-08 10:41:54 +0430
commit3bef5f5fc68d2b4733eca54fcec350982aa3bfa6 (patch)
tree24b3a50d0d14c799fb9b9f748d00d5327b74658b
downloadaur-3bef5f5fc68d2b4733eca54fcec350982aa3bfa6.tar.gz
Creating the ttf-yas font package
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD19
-rw-r--r--ttf-yas.install12
4 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..b3eae1f80d05
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Mon Aug 8 06:10:38 UTC 2016
+pkgbase = ttf-yas
+ pkgdesc = The Yas Persian Font (with hollow zero)
+ pkgver = 4.00
+ pkgrel = 1
+ url = https://fontlibrary.org/en/font/yas
+ install = ttf-yas.install
+ arch = any
+ groups = persian-fonts
+ license = GPL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = https://fontlibrary.org/assets/downloads/yas/6d496aade0637f6ff0aed373a19aa54a/yas.zip
+ sha256sums = 37290f03d6ecdc231832de4ef9c73678fe8cf180cfb33523129de874aa1bf65a
+
+pkgname = ttf-yas
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..d5d18225ac99
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.zip
+*.pkg.tar.xz
+*~
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d81d82a9e525
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>
+
+pkgname=ttf-yas
+pkgver=4.00
+pkgrel=1
+pkgdesc="The Yas Persian Font (with hollow zero)"
+arch=('any')
+url="https://fontlibrary.org/en/font/yas"
+license=('GPL')
+groups=(persian-fonts)
+depends=('fontconfig' 'xorg-font-utils')
+install=$pkgname.install
+source=('https://fontlibrary.org/assets/downloads/yas/6d496aade0637f6ff0aed373a19aa54a/yas.zip')
+sha256sums=('37290f03d6ecdc231832de4ef9c73678fe8cf180cfb33523129de874aa1bf65a')
+
+package() {
+ install -m 644 -Dt $pkgdir/usr/share/fonts/$pkgname/ $srcdir/*.ttf
+}
+
diff --git a/ttf-yas.install b/ttf-yas.install
new file mode 100644
index 000000000000..d00d1939b319
--- /dev/null
+++ b/ttf-yas.install
@@ -0,0 +1,12 @@
+post_install() {
+ fc-cache -f > /dev/null
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+