summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c1c2f9bbf2a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ttf-yosemite-san-francisco-font-git
+ pkgdesc = San Francisco font - the Apple Watch font
+ pkgver = 1.0.r2.g5a6e8ca
+ pkgrel = 1
+ url = https://github.com/smith-neil/YosemiteSanFranciscoFont
+ arch = any
+ license = GPL
+ makedepends = git
+ provides = YosemiteSanFranciscoFont
+ source = git+https://github.com/smith-neil/YosemiteSanFranciscoFont.git
+ md5sums = SKIP
+
+pkgname = ttf-yosemite-san-francisco-font-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6bf870f4230
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Šimon Leitgeb <leitgeb.simon at gmail dot com>
+
+_pkgname=YosemiteSanFranciscoFont
+
+pkgname=ttf-yosemite-san-francisco-font-git
+pkgver=1.0.r2.g5a6e8ca
+pkgrel=1
+pkgdesc="San Francisco font - the Apple Watch font"
+arch=('any')
+url="https://github.com/smith-neil/YosemiteSanFranciscoFont"
+license=('GPL')
+groups=()
+depends=()
+makedepends=('git')
+provides=($_pkgname)
+source=('git+https://github.com/smith-neil/YosemiteSanFranciscoFont.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g'
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -d "$pkgdir/usr/share/fonts/TTF"
+ install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF"
+}