diff options
author | Lennard Hofmann | 2020-07-19 12:24:07 +0200 |
---|---|---|
committer | Lennard Hofmann | 2020-07-19 12:24:07 +0200 |
commit | 6d3a6bb258bfd4d7103d172704705fc8c7bd6007 (patch) | |
tree | aa1a26a103e8324f190ebb32131ecbe40a1fd82a | |
parent | 834727a29148e1d8a1a8cbb59de0622164a52590 (diff) | |
download | aur-6d3a6bb258bfd4d7103d172704705fc8c7bd6007.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
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 12 insertions, 33 deletions
@@ -1,14 +1,12 @@ pkgbase = ebgaramond-otf - pkgdesc = EB Garamond (OTF version) by Octavio Pardo & Georg Duffner + pkgdesc = font (OTF version) by Octavio Pardo & Georg Duffner pkgver = 1.0 pkgrel = 1 url = https://github.com/octaviopardo/EBGaramond12 arch = any - license = custom:OFL - depends = fontconfig - depends = xorg-font-utils - source = https://github.com/octaviopardo/EBGaramond12/archive/master.zip - sha256sums = a08f5d1e0ad1976330e1c5e57faf384a27628323eaacf797644a3c42bcabac73 + license = OFL + source = https://github.com/octaviopardo/EBGaramond12/archive/8e8d2aff04abb39fceca0b1e8da1f444e466fb3b.zip + sha256sums = 08c82a332338a474862f7123f0b6c5c7a4256288f890049bcf989d1564c73856 pkgname = ebgaramond-otf @@ -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/" } |