diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 33 insertions, 17 deletions
@@ -1,18 +1,20 @@ # Generated by mksrcinfo v8 -# Fri Apr 29 14:30:55 UTC 2016 +# Sat Dec 10 05:25:22 UTC 2016 pkgbase = ttf-iran-nastaliq - pkgdesc = A free Unicode calligraphic Persian font created by Iran Supreme Council of Information and Communication Technology (SCICT). - pkgver = 2.0b - pkgrel = 3 - url = http://www.scict.ir/portal/Home/Default.aspx?CategoryID=c7a865b2-7b95-4169-ad94-f9de320528d7 + pkgdesc = A free Unicode calligraphic Persian font. + pkgver = r14.891dc4f + pkgrel = 1 + epoch = 1 + url = https://github.com/font-store/font-IranNastaliq install = ttf-iran-nastaliq.install arch = any groups = persian-fonts - license = custom + license = OFL + makedepends = git depends = fontconfig depends = xorg-font-utils - source = irannastaliq.ttf::http://www.scict.ir/portal/File/ShowFile.aspx?ID=5624fa86-e0d3-4f09-a68c-6d8998773265 - md5sums = 8d7d8fa0b9ddb8ec258ad6b8b9b6d254 + source = ttf-iran-nastaliq::git+https://github.com/font-store/font-IranNastaliq.git + md5sums = SKIP pkgname = ttf-iran-nastaliq @@ -1,19 +1,33 @@ -# Maintainer: Mohammadreza Abdollahzadeh <morealaz@gmail.com> +# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com> # Contributer: Ebrahim Byagowi <ebrahim@gnu.org> pkgname=ttf-iran-nastaliq -pkgver=2.0b -pkgrel=3 -pkgdesc="A free Unicode calligraphic Persian font created by Iran Supreme Council of Information and Communication Technology (SCICT)." +pkgver=r14.891dc4f +pkgrel=1 +epoch=1 +pkgdesc="A free Unicode calligraphic Persian font." arch=('any') -url="http://www.scict.ir/portal/Home/Default.aspx?CategoryID=c7a865b2-7b95-4169-ad94-f9de320528d7" -license=('custom') +url="https://github.com/font-store/font-IranNastaliq" +license=('OFL') groups=(persian-fonts) depends=('fontconfig' 'xorg-font-utils') +makedepends=('git') install=$pkgname.install -source=('irannastaliq.ttf::http://www.scict.ir/portal/File/ShowFile.aspx?ID=5624fa86-e0d3-4f09-a68c-6d8998773265') -md5sums=('8d7d8fa0b9ddb8ec258ad6b8b9b6d254') +source=("${pkgname}::git+https://github.com/font-store/font-IranNastaliq.git") +md5sums=('SKIP') + +pkgver() { + cd $srcdir/$pkgname + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} package() { - install -Dm 644 $srcdir/irannastaliq.ttf $pkgdir/usr/share/fonts/$pkgname/irannastaliq.ttf + cd $srcdir/$pkgname + install -d $pkgdir/usr/share/fonts/$pkgname + cp -a ./old/*.ttf $pkgdir/usr/share/fonts/$pkgname/ + cp -a ./WebFonts/{*.ttf,*.woff*} $pkgdir/usr/share/fonts/$pkgname + install -Dm644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } |