[packages/fonts-TTF-Input] new (version 1.2)

atler atler at pld-linux.org
Sun Oct 9 15:07:41 CEST 2016


commit e0b1ee580f08ab33e3c7e3c04bf69ecc2813941c
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Oct 9 15:07:02 2016 +0200

    new (version 1.2)

 fonts-TTF-Input.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 get-source.sh        | 34 +++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)
---
diff --git a/fonts-TTF-Input.spec b/fonts-TTF-Input.spec
new file mode 100644
index 0000000..0781911
--- /dev/null
+++ b/fonts-TTF-Input.spec
@@ -0,0 +1,54 @@
+Summary:	Fonts for Code, from Font Bureau
+Name:		fonts-TTF-Input
+Version:	1.2
+Release:	1
+License:	Custom
+Group:		Fonts
+Source0:	Input-Font-%{version}.zip
+# NoSource0-md5:	e137f760dd6f3b25b73ef3aa3a7a7fd9
+NoSource:	0
+URL:		http://input.fontbureau.com/
+Requires(post,postun):	fontpostinst
+Requires:	%{_fontsdir}/TTF
+Requires:	fontconfig >= 1:2.10.1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_ttffontsdir	%{_fontsdir}/TTF
+
+%description
+Fonts for Code, from Font Bureau.
+
+%prep
+%setup -q -c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_ttffontsdir}
+
+cp -a Input_Fonts/*/*/*.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+fontpostinst TTF
+
+%postun
+fontpostinst TTF
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog.txt INSTALL.txt LICENSE.txt README.txt
+%{_ttffontsdir}/InputMono-*.ttf
+%{_ttffontsdir}/InputMonoCompressed-*.ttf
+%{_ttffontsdir}/InputMonoCondensed-*.ttf
+%{_ttffontsdir}/InputMonoNarrow-*.ttf
+%{_ttffontsdir}/InputSans-*.ttf
+%{_ttffontsdir}/InputSansCompressed-*.ttf
+%{_ttffontsdir}/InputSansCondensed-*.ttf
+%{_ttffontsdir}/InputSansNarrow-*.ttf
+%{_ttffontsdir}/InputSerif-*.ttf
+%{_ttffontsdir}/InputSerifCompressed-*.ttf
+%{_ttffontsdir}/InputSerifCondensed-*.ttf
+%{_ttffontsdir}/InputSerifNarrow-*.ttf
diff --git a/get-source.sh b/get-source.sh
new file mode 100755
index 0000000..bd85ee9
--- /dev/null
+++ b/get-source.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# abort on errors
+set -e
+# work in package dir
+dir=$(dirname "$0")
+cd "$dir"
+
+prefix='Input-Font'
+snap=$(date +%Y%m%d%H%M%S)
+tmptarget="$prefix-$snap.zip"
+
+url='http://input.fontbureau.com/build/?fontSelection=whole&a=0&g=0&i=0&l=0&zero=0&asterisk=0&braces=0&preset=default&line-height=1.2&accept=I+do&email='
+licname="Font Software License Agreement"
+licurl=http://input.fontbureau.com/license/
+
+cat <<EOF
+
+You must accept the $licname
+to download this software.
+
+$licurl
+
+Press "ENTER" to Accept License Agreement
+Press Ctrl-C to Decline License Agreement
+
+EOF
+read license
+
+wget "$url" -O "$tmptarget"
+version="$(unzip -c "$tmptarget" ChangeLog.txt | grep -m 1 '^\* v [0-9]\(\.[0-9]\)\+' | awk '{ print $3; }')"
+echo "Version determined: $version"
+mv "$tmptarget" "$prefix-$version.zip"
+echo "Saved $prefix-$version.zip"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fonts-TTF-Input.git/commitdiff/e0b1ee580f08ab33e3c7e3c04bf69ecc2813941c



More information about the pld-cvs-commit mailing list