aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-07-24 02:27:56 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-07-24 01:00:51 +0000
commit0af34c69552ffbc3944b96fff8ff350a3c140f91 (patch)
treecaedd854671756ca8e6ae825234ad8c73a0fdf52
parent19265f67846178fdd76efdc30a6d9c2eb33475d3 (diff)
community/ttf-opensans: modernize
- use SPDX license identifier - update url to use https - fix linter warnings
-rw-r--r--community/ttf-opensans/APKBUILD20
-rw-r--r--community/ttf-opensans/ttf-opensans.post-install1
2 files changed, 8 insertions, 13 deletions
diff --git a/community/ttf-opensans/APKBUILD b/community/ttf-opensans/APKBUILD
index e9ad4b1678d..e3bdb70b41d 100644
--- a/community/ttf-opensans/APKBUILD
+++ b/community/ttf-opensans/APKBUILD
@@ -2,25 +2,19 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ttf-opensans
pkgver=1.10
-pkgrel=0
+pkgrel=1
pkgdesc="Open Sans is a humanist sans serif typeface designed by Steve Matteson"
-url="http://opensans.com/"
+url="https://opensans.com/"
+options="!check" # no test suite
arch="noarch"
-license="Apache"
+license="Apache-2.0"
depends="fontconfig mkfontdir mkfontscale"
makedepends="font-util-dev"
install="$pkgname.post-install"
-source="http://ftp.frugalware.org/pub/frugalware/frugalware-current/source/xlib-extra/open-sans/$pkgname-$pkgver.zip"
-builddir="$srcdir"
-
-build() {
- cd "$builddir"
- return 0
-}
+source="http://ftp.frugalware.org/pub/frugalware/frugalware-current/source/xlib-extra/open-sans/ttf-opensans-$pkgver.zip"
package() {
- cd "$builddir"
- install -d "$pkgdir/usr/share/fonts/TTF"
- install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF/"
+ install -Dm644 -t "$pkgdir"/usr/share/fonts/TTF "$srcdir"/*.ttf
}
+
sha512sums="6e14d6bc8ed225d04016c237a43909032aae434111bd21b9e4a0889fa84b1dc6d4487d8c465f53308523ee93e7f45cf1f2e78a0db6c64b9a5d7f13a6b2579688 ttf-opensans-1.10.zip"
diff --git a/community/ttf-opensans/ttf-opensans.post-install b/community/ttf-opensans/ttf-opensans.post-install
index 984457d3e1b..3d4c10cf45f 100644
--- a/community/ttf-opensans/ttf-opensans.post-install
+++ b/community/ttf-opensans/ttf-opensans.post-install
@@ -1,4 +1,5 @@
#!/bin/sh
+
fc-cache -f > /dev/null
mkfontscale /usr/share/fonts/TTF
mkfontdir /usr/share/fonts/TTF