diff options
author | jopejoe1 | 2022-12-22 02:53:54 +0100 |
---|---|---|
committer | jopejoe1 | 2022-12-22 02:55:16 +0100 |
commit | d553bb0b01e1709605b5b5ebbc57a6d21ae20d2e (patch) | |
tree | d9b6377054ec9ad090ba3c28ffb8117b3001ee72 | |
download | aur-d553bb0b01e1709605b5b5ebbc57a6d21ae20d2e.tar.gz |
Init commit
-rw-r--r-- | .SRCINFO | 114 | ||||
-rw-r--r-- | PKGBUILD | 123 | ||||
-rw-r--r-- | activate | 69 |
3 files changed, 306 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..68c429ad5b99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,114 @@ +pkgbase = noto-fonts-git + pkgdesc = Noto fonts git version + pkgver = r5.efa9c9f + pkgrel = 1 + url = https://github.com/notofonts/ + arch = any + license = OFL + makedepends = git + makedepends = python + makedepends = python-pip + makedepends = python-cairocffi + depends = noto-fonts-config-files + provides = noto-fonts- + provides = noto-fonts--extra + provides = noto-fonts- + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + source = git+https://github.com/jopejoe1-aur/noto-fonts + source = activate + md5sums = SKIP + md5sums = 3f4a8c4eeb43639a1d910a6d462ffd0d + +pkgname = noto-fonts-hinted-git + pkgdesc = Noto fonts git version (hinted) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-unhinted-git + conflicts = noto-fonts-unhinted-variable-git + conflicts = noto-fonts-unhinted-variable-slim-git + conflicts = noto-fonts-full-git + conflicts = noto-fonts-full-variable-git + conflicts = noto-fonts-full-variable-slim-git + +pkgname = noto-fonts-unhinted-git + pkgdesc = Noto fonts git version (unhinted) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-hinted-git + conflicts = noto-fonts-unhinted-variable-git + conflicts = noto-fonts-unhinted-variable-slim-git + conflicts = noto-fonts-full-git + conflicts = noto-fonts-full-variable-git + conflicts = noto-fonts-full-variable-slim-git + +pkgname = noto-fonts-unhinted-variable-git + pkgdesc = Noto fonts git version (unhinted variable) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-hinted-git + conflicts = noto-fonts-unhinted-git + conflicts = noto-fonts-unhinted-variable-slim-git + conflicts = noto-fonts-full-git + conflicts = noto-fonts-full-variable-git + conflicts = noto-fonts-full-variable-slim-git + +pkgname = noto-fonts-unhinted-variable-slim-git + pkgdesc = Noto fonts git version (unhinted variable slim) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-hinted-git + conflicts = noto-fonts-unhinted-git + conflicts = noto-fonts-unhinted-variable-git + conflicts = noto-fonts-full-git + conflicts = noto-fonts-full-variable-git + conflicts = noto-fonts-full-variable-slim-git + +pkgname = noto-fonts-full-git + pkgdesc = Noto fonts git version (full) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-hinted-git + conflicts = noto-fonts-unhinted-git + conflicts = noto-fonts-unhinted-variable-git + conflicts = noto-fonts-unhinted-variable-slim-git + conflicts = noto-fonts-full-variable-git + conflicts = noto-fonts-full-variable-slim-git + +pkgname = noto-fonts-full-variable-git + pkgdesc = Noto fonts git version (full variable) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-hinted-git + conflicts = noto-fonts-unhinted-git + conflicts = noto-fonts-unhinted-variable-git + conflicts = noto-fonts-unhinted-variable-slim-git + conflicts = noto-fonts-full-git + conflicts = noto-fonts-full-variable-slim-git + +pkgname = noto-fonts-full-variable-slim-git + pkgdesc = Noto fonts git version (full variable slim) + conflicts = noto-fonts + conflicts = noto-fonts-extra + conflicts = noto-fonts + conflicts = ttf-croscore + conflicts = noto-fonts-hinted-git + conflicts = noto-fonts-unhinted-git + conflicts = noto-fonts-unhinted-variable-git + conflicts = noto-fonts-unhinted-variable-slim-git + conflicts = noto-fonts-full-git + conflicts = noto-fonts-full-variable-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f5e3a4260982 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,123 @@ +# Maintainer: Johannes Jöns <johannes@joens.email> +pkgbase=noto-fonts-git +pkgname=('noto-fonts-hinted-git' 'noto-fonts-unhinted-git' 'noto-fonts-unhinted-variable-git' 'noto-fonts-unhinted-variable-slim-git' 'noto-fonts-full-git' 'noto-fonts-full-variable-git' 'noto-fonts-full-variable-slim-git') +pkgver=r5.efa9c9f +pkgrel=1 +pkgdesc="Noto fonts git version" +arch=(any) +url="https://github.com/notofonts/" +license=('OFL') +depends=('noto-fonts-config-files') +makedepends=('git' 'python' 'python-pip' 'python-cairocffi') +conflicts=(noto-fonts{,-extra,} ttf-croscore) +provides=(noto-fonts-{,-extra,}) +source=("git+https://github.com/jopejoe1-aur/noto-fonts" "activate") +md5sums=('SKIP' '3f4a8c4eeb43639a1d910a6d462ffd0d') + +_blocklist=( Arimo test armenian Cousine hanifi-rohingya multani old-hungarian-ui Tinos ) + +pkgver() { + cd "${srcdir}/noto-fonts" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}" + rm -rf "venv" + cd "noto-fonts" + git submodule update --init --recursive + + + for font in "${_blocklist[@]}"; do + rm -rf $font + done + + for dir in */ + do + cd $dir + rm -rf "subset-files" + rm -rf "venv" + mkdir "subset-files" + cd "subset-files" + ln -s "${srcdir}/noto-fonts/latin-greek-cyrillic" + cd ../.. + done +} + +build() { + cd "$srcdir/noto-fonts" + for dir in */ + do + cd $dir + if [ -e $srcdir/venv/bin/activate ]; then + input="$srcdir/noto-fonts/$dir/venv" + activate=$(cat "$srcdir/activate") + activate="${activate//§TO_BE_REPLACED/$input}" + rm $srcdir/venv/bin/activate + echo "$activate" >> $srcdir/venv/bin/activate + ln -s "${srcdir}/venv" + make build + else + make build + mv venv ${srcdir} + ln -s "${srcdir}/venv" + fi + cd .. + done +} + +package_noto-fonts-hinted-git() { + pkgdesc+=' (hinted)' + conflicts+=(noto-fonts-unhinted-git noto-fonts-unhinted-variable-git noto-fonts-unhinted-variable-slim-git noto-fonts-full-git noto-fonts-full-variable-git noto-fonts-full-variable-slim-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/hinted/ttf/* +} + +package_noto-fonts-unhinted-git() { + pkgdesc+=' (unhinted)' + conflicts+=(noto-fonts-hinted-git noto-fonts-unhinted-variable-git noto-fonts-unhinted-variable-slim-git noto-fonts-full-git noto-fonts-full-variable-git noto-fonts-full-variable-slim-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/unhinted/ttf/* +} + +package_noto-fonts-unhinted-variable-git() { + pkgdesc+=' (unhinted variable)' + conflicts+=(noto-fonts-hinted-git noto-fonts-unhinted-git noto-fonts-unhinted-variable-slim-git noto-fonts-full-git noto-fonts-full-variable-git noto-fonts-full-variable-slim-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/unhinted/variable-ttf/* +} + +package_noto-fonts-unhinted-variable-slim-git() { + pkgdesc+=' (unhinted variable slim)' + conflicts+=(noto-fonts-hinted-git noto-fonts-unhinted-git noto-fonts-unhinted-variable-git noto-fonts-full-git noto-fonts-full-variable-git noto-fonts-full-variable-slim-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/unhinted/slim-variable-ttf/* +} + +package_noto-fonts-full-git() { + pkgdesc+=' (full)' + conflicts+=(noto-fonts-hinted-git noto-fonts-unhinted-git noto-fonts-unhinted-variable-git noto-fonts-unhinted-variable-slim-git noto-fonts-full-variable-git noto-fonts-full-variable-slim-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/full/ttf/* +} + +package_noto-fonts-full-variable-git() { + pkgdesc+=' (full variable)' + conflicts+=(noto-fonts-hinted-git noto-fonts-unhinted-git noto-fonts-unhinted-variable-git noto-fonts-unhinted-variable-slim-git noto-fonts-full-git noto-fonts-full-variable-slim-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/full/variable-ttf/* +} + +package_noto-fonts-full-variable-slim-git() { + pkgdesc+=' (full variable slim)' + conflicts+=(noto-fonts-hinted-git noto-fonts-unhinted-git noto-fonts-unhinted-variable-git noto-fonts-unhinted-variable-slim-git noto-fonts-full-git noto-fonts-full-variable-git) + + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ + ${srcdir}/noto-fonts/*/fonts/*/full/slim-variable-ttf/* +} diff --git a/activate b/activate new file mode 100644 index 000000000000..bcbb3f4f1d90 --- /dev/null +++ b/activate @@ -0,0 +1,69 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then + PATH="${_OLD_VIRTUAL_PATH:-}" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null + fi + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="§TO_BE_REPLACED" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME:-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1:-}" + PS1="(venv) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(venv) " + export VIRTUAL_ENV_PROMPT +fi + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null +fi |