[arch-commits] Commit in adobe-source-serif-pro-fonts/trunk (PKGBUILD fonts.install)

Jan Steffens heftig at archlinux.org
Thu Jan 12 17:55:00 UTC 2017


    Date: Thursday, January 12, 2017 @ 17:54:59
  Author: heftig
Revision: 285910

1.017-2

Modified:
  adobe-source-serif-pro-fonts/trunk/PKGBUILD
Deleted:
  adobe-source-serif-pro-fonts/trunk/fonts.install

---------------+
 PKGBUILD      |   18 +++++++++---------
 fonts.install |   11 -----------
 2 files changed, 9 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-12 17:53:27 UTC (rev 285909)
+++ PKGBUILD	2017-01-12 17:54:59 UTC (rev 285910)
@@ -3,20 +3,20 @@
 
 pkgname=adobe-source-serif-pro-fonts
 pkgver=1.017
-pkgrel=1
-pkgdesc="A set of serif OpenType fonts designed to complement Source Sans Pro"
+_relver=1.017R
+pkgrel=2
+pkgdesc="Serif typeface for setting text. Designed to complement Source Sans Pro"
+url="https://adobe-fonts.github.io/source-serif-pro/"
 arch=(any)
-url="http://adobe-fonts.github.io/source-serif-pro/"
 license=(custom)
-depends=(fontconfig)
-install=fonts.install
-source=(https://github.com/adobe-fonts/source-serif-pro/archive/${pkgver}R.tar.gz)
+_tarname=source-serif-pro-${_relver//\//-}
+source=("$_tarname.tar.gz::https://github.com/adobe-fonts/source-serif-pro/archive/$_relver.tar.gz")
 sha256sums=('2f4f75b53983a399472e6972829de4e9a4aac76ad70bd111688e50c97d240212')
 
 package() {
-  cd source-serif-pro-${pkgver}R
-  install -d "$pkgdir/usr/share/fonts/adobe-source-serif-pro"
-  install -t "$pkgdir/usr/share/fonts/adobe-source-serif-pro" -m644 OTF/*.otf
+  cd $_tarname
+  install -d "$pkgdir/usr/share/fonts/${pkgname%-fonts}"
+  install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 OTF/*.otf
   install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 

Deleted: fonts.install
===================================================================
--- fonts.install	2017-01-12 17:53:27 UTC (rev 285909)
+++ fonts.install	2017-01-12 17:54:59 UTC (rev 285910)
@@ -1,11 +0,0 @@
-post_install() {
-  fc-cache -s
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}



More information about the arch-commits mailing list