summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLennard Hofmann2020-07-19 12:24:07 +0200
committerLennard Hofmann2020-07-19 12:24:07 +0200
commit6d3a6bb258bfd4d7103d172704705fc8c7bd6007 (patch)
treeaa1a26a103e8324f190ebb32131ecbe40a1fd82a /PKGBUILD
parent834727a29148e1d8a1a8cbb59de0622164a52590 (diff)
downloadaur-ebgaramond-otf.tar.gz
Download specifc commit not master (not a VCS package), cleanup
- Update description to contain the word “font” and not be self-referencing - OFL is treated as a common license, see https://wiki.archlinux.org/index.php/PKGBUILD#license - Dependencies and install functions are not needed anymore, see https://wiki.archlinux.org/index.php/Font_package_guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 8 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9fe0e5251e9..f1abbdc11f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,19 @@
# Maintainer: Sam Simons <contact at sam-simons dot nl>
-# (Loosely) based on otf-inter by Ward Segers & otf-eb-garamond by OmeGa
+# Maintainer: Lennard Hofmann <lennard dot hofmann at web dot de>
pkgname=ebgaramond-otf
_pkgname=EBGaramond12
+_commit=8e8d2aff04abb39fceca0b1e8da1f444e466fb3b
pkgver=1.0
pkgrel=1
-pkgdesc='EB Garamond (OTF version) by Octavio Pardo & Georg Duffner'
+pkgdesc='font (OTF version) by Octavio Pardo & Georg Duffner'
arch=('any')
url='https://github.com/octaviopardo/EBGaramond12'
-license=('custom:OFL')
-depends=('fontconfig' 'xorg-font-utils')
-source=("https://github.com/octaviopardo/$_pkgname/archive/master.zip")
-sha256sums=('a08f5d1e0ad1976330e1c5e57faf384a27628323eaacf797644a3c42bcabac73')
+license=('OFL')
+source=("https://github.com/octaviopardo/$_pkgname/archive/$_commit.zip")
+sha256sums=('08c82a332338a474862f7123f0b6c5c7a4256288f890049bcf989d1564c73856')
package() {
- cd "$_pkgname-master"
+ cd "$_pkgname-$_commit"
install -Dm644 OFL.txt "$pkgdir/usr/share/licenses/$pkgname/OFL.txt"
-
- cd "fonts/otf"
- install -d "$pkgdir/usr/share/fonts/$_pkgname-otf"
- install -m644 *.otf "$pkgdir/usr/share/fonts/$_pkgname-otf/"
-}
-
-post_install() {
- echo -n "Updating font cache... "
- fc-cache -s
- mkfontscale "/usr/share/fonts/$_pkgname-otf"
- mkfontdir "/usr/share/fonts/$_pkgname-otf"
- echo "done."
-}
-
-post_upgrade() {
- post_install $1
-}
-
-post_remove() {
- post_install $1
+ install -Dm644 fonts/otf/*.otf -t "$pkgdir/usr/share/fonts/$_pkgname-otf/"
}