aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-09 02:47:04 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-09 02:47:58 +0100
commit187fc4c1a57e189f6b77772b64ae7bfdaa37b355 (patch)
treef9be8560cc84cb2ce4eeac2ae1c99838966e4c86 /testing
parentbeb2a1c1e07d302d19dbf00a4c3c7f44031b97b5 (diff)
downloadaports-187fc4c1a57e189f6b77772b64ae7bfdaa37b355.tar.bz2
aports-187fc4c1a57e189f6b77772b64ae7bfdaa37b355.tar.xz
testing/ttf-inconsolata: fix source files to have unique name
Diffstat (limited to 'testing')
-rw-r--r--testing/ttf-inconsolata/APKBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/testing/ttf-inconsolata/APKBUILD b/testing/ttf-inconsolata/APKBUILD
index 3ca5ea8b05..7b8122cdec 100644
--- a/testing/ttf-inconsolata/APKBUILD
+++ b/testing/ttf-inconsolata/APKBUILD
@@ -3,22 +3,26 @@
pkgname=ttf-inconsolata
pkgver=20160814
_gitref=c6c7e432a29bd7c817feed0963f568a6d710625c
-pkgrel=0
+pkgrel=1
pkgdesc="Inconsolata fonts"
url="https://www.google.com/fonts/specimen/Inconsolata"
license="OFL"
arch="noarch"
-source="https://github.com/google/fonts/raw/$_gitref/ofl/inconsolata/Inconsolata-Regular.ttf
- https://github.com/google/fonts/raw/$_gitref/ofl/inconsolata/Inconsolata-Bold.ttf"
+source="Inconsolata-Regular.ttf+$_gitref::https://github.com/google/fonts/raw/$_gitref/ofl/inconsolata/Inconsolata-Regular.ttf
+ Inconsolata-Bold.ttf+$_gitref::https://github.com/google/fonts/raw/$_gitref/ofl/inconsolata/Inconsolata-Bold.ttf"
package() {
- install -d "$pkgdir"/usr/share/fonts/truetype/inconsolata
- install -D -t "$pkgdir"/usr/share/fonts/truetype/inconsolata "$srcdir"/*.ttf
+ cd "$srcdir"
+
+ local file; for file in *.ttf+*; do
+ install -m 644 -D $file \
+ "$pkgdir"/usr/share/fonts/truetype/inconsolata/${file%%+*} || return 1
+ done
}
-md5sums="c6623d74820bb62d25c969a50bafbb46 Inconsolata-Bold.ttf
-b0639eb725c0df94f68b779889679457 Inconsolata-Regular.ttf"
-sha256sums="0db9dc0cf39efef147a7b368c98e1b7588afd2bc4d30e4c9e313f5511e599a87 Inconsolata-Bold.ttf
-346eff8b8292ef2b8026cf1dbea3fc0c79eba444270d38d73da895ddcba74e15 Inconsolata-Regular.ttf"
-sha512sums="937ddafda60c85a404658b420a46f7e5c9836d0e060ad29ade5b0c989777daca22c230409ce5973cd655295def1ef9f59fbd796d171e647ae8a42055e3fa2dab Inconsolata-Bold.ttf
-7aeb0b16def1e454735f40375099b636834eb838d518592f7869e58a587f8a5c7b7d2289c9edc812bf3390d8c9cbb124c2819e2b7e77e938b3396ba6472c4b41 Inconsolata-Regular.ttf"
+md5sums="b0639eb725c0df94f68b779889679457 Inconsolata-Regular.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c
+c6623d74820bb62d25c969a50bafbb46 Inconsolata-Bold.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c"
+sha256sums="346eff8b8292ef2b8026cf1dbea3fc0c79eba444270d38d73da895ddcba74e15 Inconsolata-Regular.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c
+0db9dc0cf39efef147a7b368c98e1b7588afd2bc4d30e4c9e313f5511e599a87 Inconsolata-Bold.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c"
+sha512sums="7aeb0b16def1e454735f40375099b636834eb838d518592f7869e58a587f8a5c7b7d2289c9edc812bf3390d8c9cbb124c2819e2b7e77e938b3396ba6472c4b41 Inconsolata-Regular.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c
+937ddafda60c85a404658b420a46f7e5c9836d0e060ad29ade5b0c989777daca22c230409ce5973cd655295def1ef9f59fbd796d171e647ae8a42055e3fa2dab Inconsolata-Bold.ttf+c6c7e432a29bd7c817feed0963f568a6d710625c"