summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorValdemar Erk2019-05-09 15:13:31 +0200
committerValdemar Erk2019-05-09 15:13:31 +0200
commit34911edead36b2db424f1292a3dcfc242144c280 (patch)
treec25d6b4b4a9e5e05517dc6e116c09ba772dae6c1
parent22d6ddd7fb2feeea999d93e370e11433e1584c8f (diff)
downloadaur-ttf-ibm-plex-git.tar.gz
Updated package, thanks to connaisseur
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 14 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 882cba342c2..4ebefb6bb08 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ttf-ibm-plex-git
pkgdesc = IBM Plex
- pkgver = 1.0.1
+ pkgver = 1.4.1.r2.gdec2bc78
pkgrel = 1
url = https://ibm.github.io/type/
arch = any
@@ -8,7 +8,7 @@ pkgbase = ttf-ibm-plex-git
makedepends = git
depends = fontconfig
depends = xorg-font-utils
- source = git://github.com/IBM/plex.git
+ source = ttf-ibm-plex-git::git+https://github.com/IBM/plex.git
sha256sums = SKIP
pkgname = ttf-ibm-plex-git
diff --git a/PKGBUILD b/PKGBUILD
index 71fc7366a2b..b491f5bb813 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: erk <valdemarerk at gmail dot com>
pkgname=ttf-ibm-plex-git
-pkgver=1.0.1
+pkgver=1.4.1.r2.gdec2bc78
pkgrel=1
pkgdesc="IBM Plex"
arch=('any')
@@ -9,15 +9,20 @@ license=('SIL Open Font License, Version 1.1')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('git')
-source=("git://github.com/IBM/plex.git")
+source=("${pkgname}"::"git+https://github.com/IBM/plex.git")
sha256sums=(SKIP)
+pkgver() {
+ cd "${pkgname}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
package() {
install -d ${pkgdir}/usr/share/fonts/TTF
install -d ${pkgdir}/usr/share/licenses/${pkgname}
- install -Dm644 ${srcdir}/plex/IBM-Plex-Mono/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
- install -Dm644 ${srcdir}/plex/IBM-Plex-Sans-Condensed/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
- install -Dm644 ${srcdir}/plex/IBM-Plex-Sans/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
- install -Dm644 ${srcdir}/plex/IBM-Plex-Serif/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
- install -Dm644 ${srcdir}/plex/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}
+ install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Mono/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
+ install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Sans-Condensed/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
+ install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Sans/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
+ install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Serif/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
+ install -Dm644 ${srcdir}/${pkgname}/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}
}