summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormorealaz2015-07-08 16:37:48 +0430
committermorealaz2015-07-08 16:37:48 +0430
commit15bf7eefd13f1e93b4c7d55283508cd8830e0727 (patch)
treef1bf71310d3bc4990491b4365732fc0219eb886f
downloadaur-15bf7eefd13f1e93b4c7d55283508cd8830e0727.tar.gz
Initial import
-rw-r--r--.SRCINFO81
-rw-r--r--PKGBUILD68
-rw-r--r--ttf-x2.install15
3 files changed, 164 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..eee483eb24da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,81 @@
+pkgbase = ttf-x2
+ pkgdesc = X Series 2 fonts are built on freely available fonts and extended to support Persian, Arabic, Urdu, Pashto, Dari, Uzbek, Kurdish, Uighur, old Turkish (Ottoman) and modern Turkish (Roman).
+ pkgver = 1.0
+ pkgrel = 0
+ url = http://wiki.irmug.com/index.php?title=X_Series_2
+ install = ttf-x2.install
+ arch = any
+ groups = persian-fonts
+ license = custom:OFL
+ depends = fontconfig
+ depends = xorg-font-utils
+ depends = unzip
+ noextract = zar.zip
+ noextract = niloofar.zip
+ noextract = khoramshahr.zip
+ noextract = kayhan.zip
+ noextract = yaghut.zip
+ noextract = riyaz.zip
+ noextract = roya.zip
+ noextract = shafigh.zip
+ noextract = shafigh-kurd.zip
+ noextract = shafigh-uzbek.zip
+ noextract = shiraz.zip
+ noextract = sols.zip
+ noextract = tabriz.zip
+ noextract = titre.zip
+ noextract = traffic.zip
+ noextract = paatch.zip
+ noextract = vahid.zip
+ noextract = vosta.zip
+ noextract = yekan.zip
+ noextract = yermook.zip
+ noextract = yas.zip
+ noextract = ziba.zip
+ source = zar.zip::http://dl.irmug.com/dl.php?id=21
+ source = niloofar.zip::http://dl.irmug.com/dl.php?id=3
+ source = khoramshahr.zip::http://dl.irmug.com/dl.php?id=2
+ source = kayhan.zip::http://dl.irmug.com/dl.php?id=1
+ source = yaghut.zip::http://dl.irmug.com/dl.php?id=17
+ source = riyaz.zip::http://dl.irmug.com/dl.php?id=5
+ source = roya.zip::http://dl.irmug.com/dl.php?id=6
+ source = shafigh.zip::http://dl.irmug.com/dl.php?id=7
+ source = shafigh-kurd.zip::http://dl.irmug.com/dl.php?id=9
+ source = shafigh-uzbek.zip::http://dl.irmug.com/dl.php?id=8
+ source = shiraz.zip::http://dl.irmug.com/dl.php?id=10
+ source = sols.zip::http://dl.irmug.com/dl.php?id=11
+ source = tabriz.zip::http://dl.irmug.com/dl.php?id=12
+ source = titre.zip::http://dl.irmug.com/dl.php?id=13
+ source = traffic.zip::http://dl.irmug.com/dl.php?id=14
+ source = paatch.zip::http://dl.irmug.com/dl.php?id=4
+ source = vahid.zip::http://dl.irmug.com/dl.php?id=15
+ source = vosta.zip::http://dl.irmug.com/dl.php?id=16
+ source = yekan.zip::http://dl.irmug.com/dl.php?id=19
+ source = yermook.zip::http://dl.irmug.com/dl.php?id=20
+ source = yas.zip::http://dl.irmug.com/dl.php?id=18
+ source = ziba.zip::http://dl.irmug.com/dl.php?id=22
+ md5sums = 8e08f1d30a07e687d0a858558a852ce1
+ md5sums = 443e92a9b431497a28b6d9e7d1384c40
+ md5sums = 4a91b8b194a156fd4023b4debd567c63
+ md5sums = c432b18c9fe7f69c5d07a19c2022cce8
+ md5sums = 7d5524e06e12553cc11e840bb13cc0c6
+ md5sums = 6e5bb6523f718c4b714d3c21b2f28d6e
+ md5sums = 7cfc3b472fe2bd493791f332ccabd387
+ md5sums = 75d4c47f48ff3e35c8c602e2d8700e08
+ md5sums = 221061d0eb93bc05ca18f45f5f7667c2
+ md5sums = 90cbb8e150a83eab7fd74f784e8d203e
+ md5sums = 255383be1f0a0fafe171c7f60fc2ca48
+ md5sums = 1e74c51fabf865444c38bfa9976c9390
+ md5sums = 8dac005c7e360f5f086d20c67bd35c35
+ md5sums = 5a044355abe553785f5d215cec157eb4
+ md5sums = 474d4ded68d37332a4c97ae9d929af53
+ md5sums = 9ec31680d5e9a44a2b4237d78b4722ad
+ md5sums = 1455e778dd31ce54c4c040b839faed37
+ md5sums = 49841f03bbdeed85be15499e258147a9
+ md5sums = 83a4d9e86174a28f7e27b16523eb38fc
+ md5sums = 078da267d9c01d3651e235f0be966c8f
+ md5sums = b4ba9c744edec0245d911fdd1a4e20e9
+ md5sums = e5642b4ec4b144b2debeaebee4eff6ae
+
+pkgname = ttf-x2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..af4cd811a6d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Mohammadreza Abdollahzadeh <morealaz@gmail.com>
+
+pkgname=ttf-x2
+pkgver=1.0
+pkgrel=0
+pkgdesc="X Series 2 fonts are built on freely available fonts and extended to support Persian, Arabic, Urdu, Pashto, Dari, Uzbek, Kurdish, Uighur, old Turkish (Ottoman) and modern Turkish (Roman)."
+arch=('any')
+url="http://wiki.irmug.com/index.php?title=X_Series_2"
+license=('custom:OFL')
+groups=(persian-fonts)
+depends=('fontconfig' 'xorg-font-utils' 'unzip')
+source=("zar.zip::http://dl.irmug.com/dl.php?id=21"
+ "niloofar.zip::http://dl.irmug.com/dl.php?id=3"
+ "khoramshahr.zip::http://dl.irmug.com/dl.php?id=2"
+ "kayhan.zip::http://dl.irmug.com/dl.php?id=1"
+ "yaghut.zip::http://dl.irmug.com/dl.php?id=17"
+ "riyaz.zip::http://dl.irmug.com/dl.php?id=5"
+ "roya.zip::http://dl.irmug.com/dl.php?id=6"
+ "shafigh.zip::http://dl.irmug.com/dl.php?id=7"
+ "shafigh-kurd.zip::http://dl.irmug.com/dl.php?id=9"
+ "shafigh-uzbek.zip::http://dl.irmug.com/dl.php?id=8"
+ "shiraz.zip::http://dl.irmug.com/dl.php?id=10"
+ "sols.zip::http://dl.irmug.com/dl.php?id=11"
+ "tabriz.zip::http://dl.irmug.com/dl.php?id=12"
+ "titre.zip::http://dl.irmug.com/dl.php?id=13"
+ "traffic.zip::http://dl.irmug.com/dl.php?id=14"
+ "paatch.zip::http://dl.irmug.com/dl.php?id=4"
+ "vahid.zip::http://dl.irmug.com/dl.php?id=15"
+ "vosta.zip::http://dl.irmug.com/dl.php?id=16"
+ "yekan.zip::http://dl.irmug.com/dl.php?id=19"
+ "yermook.zip::http://dl.irmug.com/dl.php?id=20"
+ "yas.zip::http://dl.irmug.com/dl.php?id=18"
+ "ziba.zip::http://dl.irmug.com/dl.php?id=22")
+noextract=("${source[@]%%::*}")
+install=$pkgname.install
+md5sums=('8e08f1d30a07e687d0a858558a852ce1'
+ '443e92a9b431497a28b6d9e7d1384c40'
+ '4a91b8b194a156fd4023b4debd567c63'
+ 'c432b18c9fe7f69c5d07a19c2022cce8'
+ '7d5524e06e12553cc11e840bb13cc0c6'
+ '6e5bb6523f718c4b714d3c21b2f28d6e'
+ '7cfc3b472fe2bd493791f332ccabd387'
+ '75d4c47f48ff3e35c8c602e2d8700e08'
+ '221061d0eb93bc05ca18f45f5f7667c2'
+ '90cbb8e150a83eab7fd74f784e8d203e'
+ '255383be1f0a0fafe171c7f60fc2ca48'
+ '1e74c51fabf865444c38bfa9976c9390'
+ '8dac005c7e360f5f086d20c67bd35c35'
+ '5a044355abe553785f5d215cec157eb4'
+ '474d4ded68d37332a4c97ae9d929af53'
+ '9ec31680d5e9a44a2b4237d78b4722ad'
+ '1455e778dd31ce54c4c040b839faed37'
+ '49841f03bbdeed85be15499e258147a9'
+ '83a4d9e86174a28f7e27b16523eb38fc'
+ '078da267d9c01d3651e235f0be966c8f'
+ 'b4ba9c744edec0245d911fdd1a4e20e9'
+ 'e5642b4ec4b144b2debeaebee4eff6ae')
+
+prepare() {
+ unzip -o -qq -LL -j '*.zip' -d $srcdir/$pkgname/
+}
+
+package() {
+ chmod 644 "$srcdir/$pkgname/"*.*
+ install -dm755 "$pkgdir/usr/share/fonts/TTF"
+ cp -dpr --no-preserve=ownership "$srcdir/$pkgname/"*.ttf "$pkgdir/usr/share/fonts/TTF/"
+ install -D "$srcdir/$pkgname/ofl.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}
diff --git a/ttf-x2.install b/ttf-x2.install
new file mode 100644
index 000000000000..1aae7e73bcb5
--- /dev/null
+++ b/ttf-x2.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs >/dev/null
+ mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1
+ mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}