大清理

This commit is contained in:
bgme 2025-06-22 19:25:21 +08:00
parent 3492e97b8d
commit 76b7a37012
27 changed files with 0 additions and 1866 deletions

View file

@ -1,21 +0,0 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=alhp-keyring
pkgver=20250509
pkgrel=1
pkgdesc='ALHP PGP keyring'
arch=(any)
url='https://somegit.dev/ALHP/alhp-keyring'
license=(GPL-3.0-or-later)
install="$pkgname.install"
source=(https://f.alhp.dev/$pkgname/$pkgname-$pkgver.tar.gz{,.sig})
b2sums=('1d12ae599d9da533aff66304f3111a19a80c1d132c933488549dd7fc7964a660d58e4d143a88a85f16cb6ef8dc28bab980f8f1702bdf17609e60fa603084bf81'
'SKIP')
validpgpkeys=('00B25193054EA4BC7BA870848CA32F8BF3BC8088') # Giovanni Harting <539@idlegandalf.com>
package() {
cd $pkgname-$pkgver
make PREFIX=/usr DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:

View file

@ -1,12 +0,0 @@
post_upgrade() {
if usr/bin/pacman-key -l >/dev/null 2>&1; then
usr/bin/pacman-key --populate alhp
usr/bin/pacman-key --updatedb
fi
}
post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
fi
}

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: alhp-keyring

View file

@ -1,22 +0,0 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=alhp-mirrorlist
pkgver=20241215
pkgrel=1
pkgdesc='ALHP mirror list for use by pacman'
arch=(any)
url='https://somegit.dev/ALHP/alhp-mirrorlist'
license=(GPL-2.0-or-later)
backup=(
'etc/pacman.d/alhp-mirrorlist'
'etc/pacman.d/alhp-mirrorlist.ipfs'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
b2sums=('4e1972517b13febd5369eb574e87b571199480f46cb62f9cbd93a46a28a9db2ff46b3cf719ecb4d2edd5a57d8afd42a9e984a6b560cd739f808fdbb4aaf045e8')
package() {
install -Dm644 alhp-mirrorlist/mirrorlist "$pkgdir"/etc/pacman.d/alhp-mirrorlist
install -Dm644 alhp-mirrorlist/mirrorlist.ipfs "$pkgdir"/etc/pacman.d/alhp-mirrorlist.ipfs
}
# vim:set ts=2 sw=2 et:

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: alhp-mirrorlist

View file

@ -1,20 +0,0 @@
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Operation = Remove
Target = systemd
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz-*
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/initcpio/*
[Action]
Description = Backup boot partition...
When = PreTransaction
Exec = /usr/share/libalpm/scripts/backup-boot-partition pre
AbortOnFail

View file

@ -1,32 +0,0 @@
v1.7 (2023/10/21):
- Introduce compatibility for users that have installed kernels other than the default linux kernel
- Removed install script which was merely used to notify users about a breaking change that was introduced 5 years ago in v1.4
- removed ncurses dependency alongside with it
v1.6 (2023/07/12):
- ncurses is a runtime dependency because `tput` is used in the .install script
- the config file is now listed in the `backup` PKGBUILD array to respect the user configuration on package upgrades
v1.5 (2020/09/20):
- rsync is no longer a dependency of this package.
- The previous version only stopped using it, without removing it as a dependency.
v1.4 (2018/08/01):
- Simplified package by dropping rsync dependency
- cp is now used in favor of rsync
- Removed possibility to customize backup source directory (always backup /boot)
v1.3 (2018/01/14):
- The hook trigger has been modified to match that of 90-linux.hook
- The hook names were changed in order to execute not too early/late
- In particular, execution order now plays nicely together with systemd-boot-pacman-hook AUR package
v1.2 (2018/01/07):
- The hook now also creates a backup after the package upgrade
The post hook is performed after the 90-linux.hook
v1.1 (2018/01/05):
- The location of the data to be backedup (and where to) can now be configured
v1.0 (2017/12/31):
- Initial release

View file

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2018 Markus Schanz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -1,35 +0,0 @@
# Maintainer: Markus Schanz <coksnuss@googlemail.com>
pkgname=pacman-boot-backup-hook
pkgver=1.7
pkgrel=1
pkgdesc="Pacman hook that creates a copy of the /boot directory prior and post to upgrades of the systemd package or when mkinitcpio is triggered."
arch=('any')
backup=(etc/pacman-boot-backup.conf)
license=('MIT')
changelog=CHANGELOG
source=('LICENSE'
'backup-boot-partition'
'50_bootbackup.hook'
'uu_bootbackup.hook'
'pacman-boot-backup.conf')
sha256sums=('c70e605b0f57a2e4a20f76ff77935cb3bfce4adcf8b654aba4ef4e5103b431f2'
'2445f388b4bc94382d25e01175babc804821090706d9ac69b5fadfbf5c60d5a9'
'bfdb5d9f83f1cd9d9a427cb302883b4ddfa53e4e39e45c3006066baf5b84ce81'
'a4b17a1dddaa6516258431fa67ecf236a128d3c7d640598423e13b2404e14e31'
'1cefb346964c3aa4db829bffa788c39839f7a0959f294c91cdb43ae591c8472d')
package() {
install -m 0755 -d $pkgdir/usr/share/licenses/$pkgname
install -m 0644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname
install -m 0755 -d $pkgdir/etc
install -m 0644 $srcdir/pacman-boot-backup.conf $pkgdir/etc
install -m 0755 -d $pkgdir/usr/share/libalpm/hooks
install -m 0644 $srcdir/50_bootbackup.hook $pkgdir/usr/share/libalpm/hooks
install -m 0644 $srcdir/uu_bootbackup.hook $pkgdir/usr/share/libalpm/hooks
install -m 0755 -d $pkgdir/usr/share/libalpm/scripts
install -m 0755 $srcdir/backup-boot-partition $pkgdir/usr/share/libalpm/scripts
}

View file

@ -1,10 +0,0 @@
#!/bin/bash
[[ "$1" != "pre" && "$1" != "post" ]] && exit 1
[[ -f /etc/pacman-boot-backup.conf ]] && . /etc/pacman-boot-backup.conf
BACKUP_PATH_DEST=${BACKUP_PATH_DEST:-/.bootbackup}/$1
rm -rf "${BACKUP_PATH_DEST}"
mkdir -p "${BACKUP_PATH_DEST}"
cp -aT /boot "${BACKUP_PATH_DEST}"

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: pacman-boot-backup-hook

View file

@ -1,11 +0,0 @@
# Configuration of pacman-boot-backup-hook
#
# Use this configuration to override the default directories from/to which
# backups are created/stored when the linux or systemd package is upgraded.
# By default the contents of /boot will be backed up to /.bootbackup
#
# Note: The script creates two subdirectories "pre" and "post" within the
# destination path. These directories will contain the backup of the source
# directory prior and after the package upgrade, respectively.
#BACKUP_PATH_DEST=/.bootbackup

View file

@ -1,19 +0,0 @@
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Operation = Remove
Target = systemd
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz-*
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/initcpio/*
[Action]
Description = Backup boot partition...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/backup-boot-partition post

View file

@ -1,21 +0,0 @@
# Maintainer: Davide Ferrero <bad.deid@gmail.com>
pkgname=quicktype
pkgver=15.0.261
pkgrel=5
pkgdesc="Generate types and converters from JSON, Schema, and GraphQL"
arch=(any)
url="https://github.com/quicktype/quicktype"
license=(Apache)
depends=(nodejs)
makedepends=(npm)
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
options=(!strip)
package() {
npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
chown -R root:root "${pkgdir}"
}
sha256sums=('26953ad6e2e61ed26c893c4bf593e2ff63680eef8c2f8ef014475dffa3983103')

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: quicktype

View file

@ -1,6 +0,0 @@
[rstudio-desktop]
source = "git"
git = "https://github.com/rstudio/rstudio.git"
prefix = "v"
from_pattern = '\+'
to_pattern = '.'

View file

@ -1,327 +0,0 @@
# Maintainer:
# Contributor: Aleksandr Beliaev <trap000d@gmail.com>
## links
# https://posit.co/products/open-source/rstudio/
# https://github.com/rstudio/rstudio
## options
: ${_nodeversion:=23}
: ${_pandocver:=current}
: ${_soci_version:=4.0.3}
: ${_quarto_branch:=release/rstudio-cranberry-hibiscus}
: ${_quarto:=false}
: ${_copilot_version:=1.300.0}
: ${_commit:=f0b76cc00df96fe7f0ee687d4bed0423bc3de1f8}
_pkgname="rstudio-desktop"
pkgname="$_pkgname"
pkgver=2025.05.0.496
pkgrel=1
pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language"
url="https://github.com/rstudio/rstudio"
license=('AGPL-3.0-only')
arch=('x86_64')
depends=("quarto-cli"
'dbus'
'hicolor-icon-theme'
'hunspell-en_US'
'libboost_chrono.so' # boost-libs
'libboost_filesystem.so' # boost-libs
'libboost_iostreams.so' # boost-libs
'libboost_program_options.so' # boost-libs
'libboost_thread.so' # boost-libs
'libcups'
'libyaml-cpp.so' # yaml-cpp
'mathjax2'
'nspr'
'nss'
'pandoc'
'r'
)
makedepends=(
'apache-ant'
'boost'
'cmake'
'git'
'java-environment'
'libcups'
'ninja'
'nvm'
'openssl'
'pam'
'postgresql-libs'
'python'
'python-setuptools'
'wget'
'yarn'
)
optdepends=(
'git: for git support'
'nodejs: for copilot support'
'openssh-askpass: for a git ssh access'
'postgresql-libs: for postgresql'
'quarto: for Quarto projects support'
'subversion: for subversion support'
)
if [[ "${_quarto::1}" == "t" ]]; then
makedepends+=('quarto') # AUR
fi
provides=("$_pkgname")
conflicts=("$_pkgname")
options=('!emptydirs' '!debug')
_source_main() {
_pkgsrc="rstudio-$_commit"
local _pkgext="tar.gz"
source=(
"rstudio-$pkgver-${_commit::7}.$_pkgext"::"https://github.com/rstudio/rstudio/archive/$_commit.$_pkgext"
"quarto"::"git+https://github.com/quarto-dev/quarto.git#branch=${_quarto_branch}"
)
sha256sums=(
'SKIP'
'SKIP'
)
}
_source_soci() {
local _pkgext_soci="tar.gz"
source+=("soci-$_soci_version.$_pkgext_soci"::"https://github.com/SOCI/soci/archive/refs/tags/v$_soci_version.$_pkgext_soci")
sha256sums+=('4b1ff9c8545c5d802fbe06ee6cd2886630e5c03bf740e269bb625b45cf934928')
_build_soci() (
echo "Building SOCI..."
local _opts_soci=(
-B "soci-$_soci_version/build"
-S "soci-$_soci_version"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-DSOCI_TESTS=OFF
-DSOCI_CXX11=ON
-DSOCI_EMPTY=OFF
-DWITH_BOOST=ON
-DWITH_POSTGRESQL=ON
-DWITH_SQLITE3=ON
-DWITH_DB2=OFF
-DWITH_MYSQL=OFF
-DWITH_ORACLE=OFF
-DWITH_FIREBIRD=OFF
-DWITH_ODBC=OFF
-DBUILD_SHARED_LIBS=OFF
-Wno-dev
)
cmake "${_opts_soci[@]}"
cmake --build "soci-$_soci_version/build"
)
}
_source_copilot() {
source+=("https://github.com/github/copilot-language-server-release/releases/download/${_copilot_version}/copilot-language-server-linux-x64-${_copilot_version}.zip")
sha256sums+=('SKIP')
}
_source_main
_source_soci
_source_copilot
_nvm_env() {
export HOME="$SRCDEST/node-home"
export NVM_DIR="$SRCDEST/node-nvm"
# set up nvm
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
nvm install $_nodeversion
nvm use $_nodeversion
_npm_path="$(which npm | sed -E 's&/[^/]+$&&')"
export RSTUDIO_NODE_VERSION=$(echo "$_npm_path" | sed -E 's&^\S+/v([0-9\.]+)/\S+$&\1&')
}
prepare() (
_nvm_env
#npm install yarn
cd "$_pkgsrc"
# Do not use outdated version name of pandoc
sed -E -e '/PANDOC_VERSION/s/"[0-9\.]+"/"'${_pandocver}'"/' -i "cmake/globals.cmake"
# Suppress _FORTIFY_SOURCE mismatch warnings
sed -i 's/D_FORTIFY_SOURCE=2/D_FORTIFY_SOURCE=3/' "src/cpp/CMakeLists.txt"
# fix npm/node paths
sed -E -e 's&set\(RSTUDIO_NODE_PATH .*\)&set(RSTUDIO_NODE_PATH "/usr/bin")&' \
-i cmake/globals.cmake
install -dm755 "$srcdir/$_pkgsrc/dependencies/common/node"
ln -sfT "$NVM_DIR/versions/node/v$RSTUDIO_NODE_VERSION" "$srcdir/$_pkgsrc/dependencies/common/node/${RSTUDIO_NODE_VERSION}-patched"
sed -E -e 's&^external-node-path=.*$&external-node-path=/usr/bin/node&' \
-i src/cpp/conf/rsession-dev.conf
sed -E -e 's&"\S+/common/node/\S+"&"/usr"&' \
-i src/cpp/session/SessionOptions.cpp
sed -E -e '/"node\.version"/s&value="[0-9\.]+"&value="Current"&' \
-e '/"node\.dir"/s&value="\S+"&value="/usr"&' \
-e 's&"\S+/common/node/\S+/bin/yarn"&"/usr/bin/yarn"&' \
-i src/gwt/build.xml
sed -E -e 's&PATHS "/opt/rstudio-tools/dependencies/common/node/\$\{RSTUDIO_NODE_VERSION\}"&PATHS "'"${_npm_path}"'"&' \
-e 's&"\S+CMAKE_CURRENT_LIST_DIR\S+/dependencies/common/node/\S+"&"'"${_npm_path}"'"&g' \
-e 's&set\(RSTUDIO_NODE_VERSION "[0-9\.]+"\)&set(RSTUDIO_NODE_VERSION "Current")&' \
-i src/node/CMakeNodeTools.txt
# needed for system yaml-cpp
sed '/add_subdirectory(src)/i find_package(yaml-cpp REQUIRED)' -i CMakeLists.txt
# fix os-release path
sed -E 's&(STRINGS) "/etc/os-release" (OS_RELEASE)&\1 "/usr/lib/os-release" \2&' \
-i cmake/modules/OsRelease.cmake
# bundled deps
cd "$srcdir/$_pkgsrc/dependencies"
install -d pandoc/${_pandocver}
ln -sfT /usr/bin/pandoc pandoc/${_pandocver}/pandoc
ln -sfT /usr/share/myspell/dicts dictionaries
ln -sfT /usr/share/mathjax2 mathjax-27
install -Dm755 "$srcdir/copilot-language-server" -t "copilot-language-server"
ln -sfT "$srcdir/soci-$_soci_version" "soci-$_soci_version"
# Panmirror is picked up now from Quarto repo
ln -sfT "$srcdir/quarto" "$srcdir/$_pkgsrc/src/gwt/lib/quarto"
)
build() (
export CMAKE_POLICY_VERSION_MINIMUM=3.5
_nvm_env
_run_if_exists _build_soci
# Quarto set up
if (pacman -Q quarto > /dev/null 2> /dev/null); then
_quarto="ON"
echo "Quarto is installed, linking for build"
cd "$srcdir/$_pkgsrc/dependencies"
install -d quarto/bin/tools
ln -sfT /usr/bin/quarto quarto/bin/quarto
ln -sfT /usr/bin/pandoc quarto/bin/tools/pandoc
else
_quarto="OFF"
echo "Quarto is not installed, using Pandoc"
cd "$srcdir/$_pkgsrc/dependencies"
install -d pandoc/${_pandocver}/bin/tools
ln -sfT /usr/bin/pandoc pandoc/${_pandocver}/bin/tools/pandoc
fi
cd "${srcdir}"
echo "Downloading and installing R packages..."
export R_LIBS_USER="$srcdir/$_pkgsrc/dependencies/R"
_JOBS="$(grep -oP -- "-j\s*\K[0-9]+" <<< "${MAKEFLAGS}")" || _JOBS="1"
mkdir -p "${R_LIBS_USER}"
local RPACKAGES=(
digest
purrr
rmarkdown
testthat
xml2
yaml
)
for RPKG in ${RPACKAGES[*]}; do
RINSTALLCMD="if("'!'"require($RPKG, quietly = TRUE)) { options(Ncpus = ${_JOBS} ); install.packages('$RPKG', lib='$R_LIBS_USER', repos='https://cran.rstudio.com/') }"
echo "> $RINSTALLCMD"
Rscript -e "$RINSTALLCMD"
done
export RSTUDIO_TOOLS_ROOT="$srcdir/$_pkgsrc/dependencies"
export RSTUDIO_NODE_PATH=/usr/
export RSTUDIO_VERSION_MAJOR=$(cut -d'.' -f1 <<< "$pkgver")
export RSTUDIO_VERSION_MINOR=$(cut -d'.' -f2 <<< "$pkgver")
export RSTUDIO_VERSION_PATCH=$(cut -d'.' -f3 <<< "$pkgver")
export RSTUDIO_VERSION_SUFFIX="+$(cut -d'.' -f4 <<< "$pkgver")"
export GIT_COMMIT="${_commit::7}"
export PACKAGE_OS=$(uname -om)
# node-gyp or node have a bug that prevents building with "text file busy"
# if the kernel is too fast, so we have to disable IO_URING support. This
# is cleary a hack and needs to be removed as soon as possible
# nodejs/node#48444 is the necro bumped thread
# originally from docker
# https://github.com/nodejs/node/issues/48444
export UV_USE_IO_URING=0
# -DCMAKE_INSTALL_PREFIX seems ignored for sub-dependencies,
# which results as empty '/usr/local/bin' in package
# Following override works for cmake >3.29
export CMAKE_INSTALL_PREFIX=/usr/lib/rstudio
local _opts_rstudio=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DRSTUDIO_TARGET=Electron
-DRSTUDIO_USE_SYSTEM_BOOST=ON
-DRSTUDIO_USE_SYSTEM_SOCI=OFF
-DRSTUDIO_USE_SYSTEM_YAML_CPP=ON
-DRSTUDIO_NODE_VERSION="Current"
-DQUARTO_ENABLED=${_quarto}
-DRSTUDIO_UNIT_TESTS_ENABLED=OFF
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_opts_rstudio[@]}"
cmake --build build
)
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/rstudio" << END
#!/usr/bin/env bash
# See following script for potentially useful flags.
# https://github.com/ozankiratli/dotfiles/blob/master/.config/sway/scripts/rstudio-wayland
name=rstudio
flags_file="\${XDG_CONFIG_HOME:-\$HOME/.config}/\${name}-flags.conf"
fallback_file="\${XDG_CONFIG_HOME:-\$HOME/.config}/electron-flags.conf"
lines=()
if [[ -f "\${flags_file}" ]]; then
mapfile -t lines < "\${flags_file}"
elif [[ -f "\${fallback_file}" ]]; then
mapfile -t lines < "\${fallback_file}"
fi
flags=()
for line in "\${lines[@]}"; do
if [[ ! "\${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "\${line}" ]]; then
flags+=("\${line}")
fi
done
: \${ELECTRON_IS_DEV:=0}
export ELECTRON_IS_DEV
: \${ELECTRON_FORCE_IS_PACKAGED:=true}
export ELECTRON_FORCE_IS_PACKAGED
exec /usr/lib/rstudio/rstudio "\${flags[@]}" "\$@"
END
}
_run_if_exists() {
if declare -F "$1" > /dev/null; then
eval "$1"
fi
}

View file

@ -1,8 +0,0 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
aur_pre_build()
add_depends(["quarto-cli"])

View file

@ -1,18 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
repo_depends:
- quarto-cli
build_prefix: archlinuxcn-x86_64
post_build: aur_post_build
time_limit_hours: 4
update_on:
- source: aur
aur: rstudio-desktop
- source: manual
manual: 3

View file

@ -1,17 +0,0 @@
# Maintainer: Federico Di Pierro <nierro92@gmail.com>
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
pkgname=systemd-boot-pacman-hook
pkgver=3
pkgrel=1
pkgdesc="Pacman hook to upgrade systemd-boot after systemd upgrade."
arch=("any")
license=("GPL")
depends=('systemd')
source=(systemd-boot.hook)
md5sums=('cd8b1e530ce6f239923362492fda3f4f')
package() {
install -m755 -d "${pkgdir}/usr/share/libalpm/hooks"
install -m644 "${srcdir}/systemd-boot.hook" "${pkgdir}/usr/share/libalpm/hooks/95-systemd-boot.hook"
}

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: systemd-boot-pacman-hook

View file

@ -1,9 +0,0 @@
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Gracefully upgrading systemd-boot...
When = PostTransaction
Exec = /usr/bin/systemctl restart systemd-boot-update.service

View file

@ -1,563 +0,0 @@
# Maintainer: RubenKelevra
# Contributor: jprt
# Contributor: Zepman <the_zep_man@hotmail.com>
# Contributor: Michael Lass <bevan@bi-co.net>
# Contributor: Doug Newgard <scimmia at archlinux dot info>
# Contributor: reflexing <reflexing@reflexing.ru>
# BUILD INSTRUCTIONS:
# -------------------
#
# Please note that the usage of Microsoft fonts outside the Windows system is prohibited
# by EULA (although in certain countries, EULA is invalid).
# Please consult the Microsoft license before using fonts.
#
# This PKGBUILD attempts to download fonts directly from Microsoft, by retrieving
# selective parts of the Windows 10 Enterprise 90-day evaluation edition. This only works
# if the user is allowed to mount filesystems through udisks2. This is determined by
# Polkit, which by default only allows users to do this when they are logged in locally
# (e.g., not through SSH).
#
# If it is possible to download fonts directly, around 200 MB of data will be downloaded.
# Downloading the fonts this way can take 820 minutes, even on a fast connection. Be
# patient. Note that for this method, it is necessary to mount an HTTP source and an ISO
# file as a loop device using FUSE. If the build fails, it might be that these must be
# unmounted manually. If you rerun the build, this cleanup is done automatically.
#
# To clean up manually run:
#
# $ udisksctl unmount -b /dev/loop0
# $ udisksctl loop-delete -b /dev/loop0
# $ fusermount -uz src/mnt/http
#
# Replace /dev/loop0 with the relevant loop device, which is reported during
# package build.
#
# For the download, HTTP is used instead of HTTPS because httpfs2 does not support modern
# TLS versions. A file integrity check is performed after the download. Due to the
# unconventional way that the data is downloaded, the verification is done in prepare().
#
# If fonts cannot be downloaded directly, the ISO fill will be fully downloaded. Due to
# that install.wim will be extracted from the ISO, it is assumed that twice its size
# (almost 8 GiB) is necessary as temporary disk space. A free disk space check is
# performed before the ISO is downloaded.
#
# Please ignore any 'ln' errors when building this package. This is expected behavior.
#
# If, for some reason, you want to download the full ISO file, please visit:
#
# http://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise
#
# This package is based on ttf-ms-win10. Use that package if font files from a local
# source need to be used.
#
# ttf-ms-win10 is considered to be upstream for this package, which is why its
# maintainers and contributors are added as contributors to this package.
# Without their effort, this package would not exist or be updated.
#
pkgbase=ttf-ms-win10-auto
pkgname=($pkgbase{,-japanese,-korean,-sea,-thai,-zh_cn,-zh_tw,-other})
pkgver=10.0.19042.789
pkgrel=7
arch=(any)
url='http://www.microsoft.com/typography/fonts/product.aspx?PID=164'
license=(custom)
provides=(ttf-font ttf-ms-win10)
conflicts=(ttf-vista-fonts ttf-ms-win11-auto ttf-ms-win11)
makedepends=(udisks2 p7zip httpfs2-2gbplus wget udftools util-linux)
# URL of ISO file from which to extract the fonts.
# Must be HTTP due to limitations of httpfs2.
_iso="http://software-static.download.prss.microsoft.com/pr/download/19042.631.201119-0144.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x86FRE_en-us.iso"
_ttf_ms_win10=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
arial.ttf arialbd.ttf ariali.ttf arialbi.ttf # Arial
ariblk.ttf # Arial Black
bahnschrift.ttf # Bahnschrift
calibri.ttf calibrib.ttf calibrii.ttf calibriz.ttf # Calibri
calibril.ttf calibrili.ttf # Calibri Light
cambria.ttc cambriab.ttf cambriai.ttf cambriaz.ttf # Cambria
Candara.ttf Candarab.ttf Candarai.ttf Candaraz.ttf # Candara
Candaral.ttf Candarali.ttf # Candara Light
comic.ttf comicbd.ttf comici.ttf comicz.ttf # Comic Sans MS
consola.ttf consolab.ttf consolai.ttf consolaz.ttf # Consolas
constan.ttf constanb.ttf constani.ttf constanz.ttf # Constantia
cour.ttf courbd.ttf couri.ttf courbi.ttf # Courier New
corbel.ttf corbelb.ttf corbeli.ttf corbelz.ttf # Corbel
corbell.ttf corbelli.ttf # Corbel Light
framd.ttf framdit.ttf # Franklin Gothic Medium
Gabriola.ttf # Gabriola
georgia.ttf georgiab.ttf georgiai.ttf georgiaz.ttf # Georgia
#holomdl2.ttf # HoloLens MDL2 Assets
impact.ttf # Impact
Inkfree.ttf # Ink Free
lucon.ttf # Lucida Console
l_10646.ttf # Lucida Sans Unicode
marlett.ttf # Marlett
micross.ttf # Microsoft Sans Serifc
pala.ttf palab.ttf palai.ttf palabi.ttf # Palatino Linotype
segoepr.ttf segoeprb.ttf # Segoe Print
segoesc.ttf segoescb.ttf # Segoe Script
segmdl2.ttf # Segoe MDL2 Assets
segoeui.ttf segoeuib.ttf segoeuii.ttf segoeuiz.ttf # Segoe UI
seguibl.ttf seguibli.ttf # Segoe UI Black
seguiemj.ttf # Segoe UI Emoji
seguihis.ttf # Segoe UI Historic
segoeuil.ttf seguili.ttf # Segoe UI Light
seguisb.ttf seguisbi.ttf # Segoe UI Semibold
segoeuisl.ttf seguisli.ttf # Segoe UI Semilight
seguisym.ttf # Segoe UI Symbol
Sitka.ttc SitkaB.ttc SitkaI.ttc SitkaZ.ttc # Sitka
sylfaen.ttf # Sylfaen
symbol.ttf # Symbol
tahoma.ttf tahomabd.ttf # Tahoma
times.ttf timesbd.ttf timesi.ttf timesbi.ttf # Times New Roman
trebuc.ttf trebucbd.ttf trebucit.ttf trebucbi.ttf # Trebuchet MS
verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf # Verdana
webdings.ttf # Webdings
wingding.ttf # Wingdings
)
_ttf_ms_win10_japanese=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
msgothic.ttc # MS Gothic
YuGothR.ttc YuGothB.ttc # Yu Gothic
YuGothM.ttc # Yu Gothic Medium
YuGothL.ttc # Yu Gothic Light
)
_ttf_ms_win10_korean=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
malgun.ttf malgunbd.ttf # Malgun Gothic
malgunsl.ttf # Malgun Gothic Semilight
)
_ttf_ms_win10_sea=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
javatext.ttf # Javanese Text
himalaya.ttf # Microsoft Himalaya
ntailu.ttf ntailub.ttf # Microsoft New Tai Lue
phagspa.ttf phagspab.ttf # Microsoft PhagsPa
taile.ttf taileb.ttf # Microsoft Tai Le
msyi.ttf # Microsoft Yi Baiti
monbaiti.ttf # Mongolian Baiti
mmrtext.ttf mmrtextb.ttf # Myanmar Text
Nirmala.ttf NirmalaB.ttf # Nirmala UI
NirmalaS.ttf # Nirmala UI Semilight
)
_ttf_ms_win10_thai=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
LeelawUI.ttf LeelaUIb.ttf # Leelawadee UI
LeelUIsl.ttf # Leelawadee UI Semilight
)
_ttf_ms_win10_zh_cn=( # Chinese (Simplified)
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
simsun.ttc # NSimSun
simsunb.ttf # SimSun-ExtB
msyh.ttc msyhbd.ttc # Microsoft YaHei
msyhl.ttc # Microsoft YaHei Light
)
_ttf_ms_win10_zh_tw=( # Chinese (Traditional)
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
msjh.ttc msjhbd.ttc # Microsoft JhengHei
msjhl.ttc # Microsoft JhengHei Light
mingliub.ttc # MingLiU_HKSCS-ExtB
)
_ttf_ms_win10_other=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
ebrima.ttf ebrimabd.ttf # Ebrima
gadugi.ttf gadugib.ttf # Gadugi
mvboli.ttf # MV Boli
)
DLAGENTS=('http::/usr/bin/true'
'file::/usr/bin/true')
source=("$_iso"
"${_ttf_ms_win10[@]/#/file://}"
"${_ttf_ms_win10_japanese[@]/#/file://}"
"${_ttf_ms_win10_korean[@]/#/file://}"
"${_ttf_ms_win10_sea[@]/#/file://}"
"${_ttf_ms_win10_thai[@]/#/file://}"
"${_ttf_ms_win10_zh_cn[@]/#/file://}"
"${_ttf_ms_win10_zh_tw[@]/#/file://}"
"${_ttf_ms_win10_other[@]/#/file://}"
file://license.rtf)
_sha256sums=('c9b76220a5be42ead4733611e417cd65c5fd8aeaa33eb56576ac378a37d130a1'
'766f06ac8761f82f25d032a220e89438f6064591af9915061f20b949efdedf69'
'79a5742b865cf06891d4ae43e42cac0e5169c7b7b06b5b3c24ef8e0966d27b62'
'e432c1b3568bd207e30e3d52d41e6431ea53a679eb52dd79b1a36aa6a4f3b994'
'10df702864b1f89cb29ba0d6b97c04228338d16807e13e8d8c74b91aba5e5f23'
'bff1ca87ea35e376691498c618556411f0ee71784b32aa351e6e8f9e8bd609dd'
'198e8dac512206f27c9bdbfeb3d5b3e55a33de9dcf58d801823ef8c5ef5a76dc'
'4d5c56c07c41315022cd5a24966ade3983ceebce8bc81524e56e4632dd3f242f'
'5c85b9adedde710e754b3163005291eca16cd0ccccc7c8d7ff526070e8980202'
'95b49ebc8244b88ef49372833e8964dad6a3d7fa53e948609c5c73d5a1439912'
'67374b8f4735eabfc7f173f28dc1789d7dbd4e2919532d173f6d697211cc3263'
'a49f79197a091a82c45779b3cca7bc2cc7b471cf1447b55378c565c4f06844a5'
'84e70ccc1664482f4a960442c7a166c91a1b2cf98ff88c33cb73f79403f66d7b'
'6685c657a7e292083e28f19bbf1a1e90509ce3e1130dbc4ed1c62ba3f9140543'
'6905f0ac846d1ec4326cd14a46cb7379204940aa293b098ee4c1a69723bbd165'
'fa90f376ad37f308a819b341c8185f788d30a1012829278592eab45a41818d1a'
'9f02f6bf076197ed2a1335fe59a3bdf88e7ad4a849bf68037a528f37cce36791'
'5346840fa85a1969699dc97635e838cd2c42dad7f8a4999d7368eb888fceb04b'
'fc68cb42582e1207bcc397df7b60870a74ae068b17d7bd79f2e9f63af89796b4'
'1614c0d3a6751eb46b2c52f09ae23dd61f769beda83058269cb0653c049eae43'
'0e14f663fa34460fe9a07bb32d0017a180a4a0c8457d279fbfc5d8452753b477'
'e8b17bc645c098bbc5167acfe13f0e3c63f0f417d539aab171db7eea3c40eab2'
'a7da3ef195158acd8432226a21f2940f1806a9c8d079f18d0a9ab475f50f9659'
'56567bc71e89fd173674c78f02b474123a02561b246526a22600c3a29b2fdc65'
'65aece2928246837317e093a11c6df5cbfc67035f1e045c9771f7c408be1faea'
'c691699eaf218e702b2d77c1f62d2c080be6248f1c11018b0b2556834a9cecb1'
'c6e6ce8119fdd47ec6a5449a08e2d2ad7f41ea03143aae193068ed9fa58eaebc'
'8fa803e5abc7fff0c78c62cd22d07c705f3273c53312380c36ff484246ed3c1b'
'81e2a95d3c49468029c07e58f71a5f0ca4cfcb617eaf6bd77576fb03aa430bb2'
'1df27cbcc8a9fb7f843bc24e257b78e8ff93de70e8c1ad2caab8379e7d6a1eab'
'495577bf8ef74deab6ecc2e7acf63cd966184148f9bc2044a1068cd58501577e'
'b6c66a1858370fe575629e19d53c05350738bf5105e18ceac07fe9efc9cd008d'
'2314a03c53506fa79525bc479ea4be9c036d1ebd86a1ffb5837ca5b43ff51f07'
'9311aadcbd919746f50d222fa0215fb44266d6993221c14a196f0725fdae464f'
'93c3ff526c19d03496c01c6a1bfd1031f97af021a13e859a89dfc717a0b6b6ec'
'716c08d704f154870bd9fb78b185d0b644912301dfa9c9e6daf45bdb4832a299'
'5861588608d3a3775d921a7e4acb8362b21630c6b63718bc68adb7137ce53beb'
'8fdb188252a2db0f020c89831bddb61cadfe290c3616fe534479b4d3b10d09c1'
'a183b77b655df66793639af7874828fb50f748dc4af57ae40f758156f7f34634'
'fa008372f8a94945d0daef9daf0bfb9e3fba3a25fd17f2607d47ac6861bd0303'
'9be778c9ed418770f6b5a02064d9c0b47a8fdea1137618f0bec9ac4072430a45'
'588f090ae3a6d31370457312683d14ee3a5bfbdaaa0a070b7c80225b55b23e78'
'0e36ddf90102e476c6739ca4c8cc18ba8309d880c12558981d2e4d42de78fc00'
'a031500bccd32b5d6e819699b774fc679c696ed4965b643d51a94eb398475550'
'bac844bd41f847cf138737026d41c983387a1065535c32e78aa22c48708b52ad'
'df59f9ea915957b22a389d68580bf40dc5bd05822cc65b5fdcc188c706a694e7'
'ddd852f9e43a5e81af62a3f6654324ba7553d7d66101ab848abc1bd2d626ac4b'
'38dffcaf1fac89492f7c56c600a14daf36ae42f7c21985cd4134ae113124a58f'
'72a6cd94fab6c179392075d3fb361e269cdddfad41bb7ab385fa22a37e49a900'
'd3e4bad27651d120ac8f2cea42cf4b4f077264fb243f66b3caffcfd35465f49b'
'3f9e512f82eaf6f1b7869b82013fb79f6eaf1a41e75a0e7b96f31f35b1022ae4'
'd8bbdb72e3f930157824b2e59677d3a912d4512c14a948e6656a2e3fb0c935ad'
'f23225869ceb58b78a836b84207d1726cc5d9c3f5fe2ae8a295ff62a98df09a0'
'2ca2cfde263fa420e8d39420f075ee9ac80bc0794272c53ac4571a88f8a075a6'
'97226e81f19eff8c8fb191745748bab920472c005d3ec4e23d9a50a12c471d92'
'b7397adf2dcc24ca790348a3c26deb2122b45e5728fd25fc588de4cf5a75b469'
'3f557479a768a1d9924af0f29d0d842e8c41988738ce891f6be3abb0f008b0d5'
'e47d594e2e2bc31b28f87b6f66483d32f925843ceb002f919c7a403aca48813d'
'8e14668bbae03f78ed668dbe3261218881960dcd9fb80ad6c1d1dfb4226a57c3'
'99f0af2d1941707fecda23da38bafbed5144a73a3720d773c05b9d4c445920ed'
'd0e722b91ffd5391cc2e7d6e976f274d5aee9fe0b8d0fedfffe093763e695cde'
'91046862e08fbade0bdd648e81c4efbe6a963947f8b6e32b64a28fe39073c468'
'3cced0162ddb9e5f1e63ee1b36fd6e581c090318dce1a0af01b77f5ea9952c80'
'd0dfad2f6bbe7ff7c0f96a0c80a28bd4f4624f900573a61abd9d29406d3775d7'
'91283e8af7f9eca8b14b498b484b35d49c3bd3144ab7e25aa4934297138ea28b'
'1fabce5448df08c9e000bf9749c07c365c5ffba31bfc73121c61b5b96ea498c0'
'ba32a222b23d727267cf1aba4e5296fe84ce99b9d910915103fc085d7931bc88'
'1b242874a2f57529060e770ba313e027a99d40b3c36e1c7e8b2dece16ad6ed88'
'9adf7d619c593ee38c96af06bb15b4bd893e4087bcc1a0b7becee8f4ae15bb1c'
'45e7504e9bbd70ead482ebbddbeec04b2bea9f490b994658a95146cdf0733449'
'e17738f092c8b02f4443867a7dfcdde66fb4cd6f6b10de8e40b2f3192f8a5835'
'33212faa85fad61785cd6917172378b798bc9f5d4c47c121437354f47980aa6f'
'7c0244dd8eeb7c6bdecdfc3f9e59833527fc18a66d0295ce47339069692a2b4f'
'1cbe547c648ff673c30ca91c6a4f091addd1a4b605a9798f84089add47e9b884'
'1a2231bbd4fad4a3ac8c0b8a93af0bce58324a8b3605df16038a9e660a0c072a'
'7726b24daa0c1f47e528d8df78b98717bdb4425bcf37e50330945e32c6d17d7c'
'9853283466bd43993b9813215281fb9c7090cbd8e9b5453f6d0d040622e117e2'
'9959977d9fcf8ebc5fe48f6ee418f05378132b47d21bd5dcc798ad7cff274006'
'38a85c09ee4fc558e7739ebdd1a15a06e2846ebb787cf73b1b6476a3a5b22000'
'9f84a0a9193fe1d6335967f46606997a208adde053d006b21c03f9375ec5d416'
'd2f8326a354456d93e78b0537c58793e7072c3617af7d9ee187f10d6d595f510'
'18f4d0f9de114e04a6f0b21955a96177154ff0f55fb4a94c68af5c51449bf107'
'eac5da16a297e4292decbf8c6735d0912f342c6ba9c2844d362126b3de1136ca'
'1581ff0e4ecc7ec2835c02678b62ee7c8e89937e4142aff11030548ff04d40a7'
'9ba07e98c2dfe00c7f00a44cc74da52a9818d39988a105c6af6974a63d04b9ad'
'c7a5df780936c04804287e32c1b77e78b9b0e46b8d2723a85bda987eec8de024'
'bbf1192965e5266fbf23370416337d2861fc1e8bd349def93f2994ba67382fc3'
'b890858df485549d20fcb0a2c519dffe9c5c155d16b55e0b9252d6e66db555e5'
'68f92341975acc275c7d4a2ec52a1569b70e992b521c42b30f29149806421674'
'2cff2a03d8034801979dd6d16f09b9a825c3d710fcf068f2ebfbf0e1425c87cf'
'621b4a765fef5d255d19530f4bf936104c6519f2e232a0eef1923474e5b9cf22'
'3a1c2bc8528bfa432e0414d4ec69bf5813563c474e16a9ad0f57ca262f8d24a2'
'2852329a38acf9252504669d9c23d5e88366cf77e8209d508f5e7198639648ea'
'fe3e8bdd64c1c9f3b9cf5189d06510c80d72cec28e03d04bffc560f77eec58d1'
'dfcc306777a594d2815368547dd897e2ac82aff8073e55d9e682569939e49b81'
'9c9dc0cd0fd6b1a06e8f406d04bb15a88aaf20328d3e166c12d6bc7994b781d2'
'87942234ab0cc4400088648bef8d1f7afc4c44e676c7ed6b32ca31462c18307d'
'6a8481fe107ee547893c018b13dba291c2020bec3de5da6525d9ac09f6bc2105'
'f3245f5f38f61bd1ceefb0f1338a5b88a21e6220832c2f43a38bbc7e1547c36f'
'14f2ebcdaa1b77e5993a8533662e4bd3ebfe2c5771b6daafd8ccb39b2ad588b9'
'd71f81c83ec63eaa32d36d5df7be1d9e71d3ea9150f47cebda2924923cbbf18a'
'67461fabd8329d0d8ad62689cac642b34fac81c754ff9077ad211160ec62282d'
'9bcd6064e3b52fa30a347edd6e82506e2ec8b1602930b423c629a82c10468a5b'
'4bde3e6392b96910fb59094c6c1a4dbfae18fee78d0bf13dc30616837c4f95db'
'1e5a4b342c6417bb9352e8c29cb839413987a06438e7b48fd0320925827f289c'
'15157483588f2778a180f2b401256df12b582513fa0655f8172937c85521b80b'
'3e7d80ef5a1615134800c1b1b3b9d9ee870085e8486b884258de2519dd62b1cb'
'7a06352c79894d1a5d0f3199061fe43a327ded93c0ff316541ce31cf314968cc'
'0086c19e81d293a542e7d75564c645fb58070cc850aefebf8fa1c397858e510c'
'a541834fb9cdde9bd6d2c3ff1565cb0bb5ccf7a15e4e9daf2cb58d9b1cf282aa'
'a7217a2e590c86141bddadc74a2bcdff2efe210db48469a77a749e0446d91ea9'
'df8d94382f73e6d2197b60653c3d55c28ab5cf127a82e65b8af4ed1b52fdc412'
'fdec3a7efacd57913d3c14111837908ccbabea5b0b44ec62527eb73acf743afb'
'de0b632015447f28c2db41c8e07c745cedb05ead5dbc2e73f19da14d2e5f2151'
'cfc2acbf9ae0205a0a258e564bdbf5466a4e49a95281a1d2e72690f149ec837b'
'538949482d964e9f353a3a8d860bb3eda93b46b830f3b677e4f53eb2ff3a6e7d'
'03e4e45bb8ebb6d055a5584166cc26712bf7e746ea29cb6e548341361d31dc85'
'f5151d081f6afea4c26464e0cd5e695f57a99209cfeea2f483c3108684660eb6'
'1878842d8dbdf8489794af0bace95a956db270dfa506ddcaabf94fa827b769ac'
'80aef1c25135b945e9de7d09e6445c386405eb2e0ea7032d4cd00a2fe3eef0ae'
'707585b9acfc1507d9bd943bb5435f75768274b1a12b1f71de76ad78be4d7e7b'
'3ed4612d44f71851d33a126bb483b08a623feb0b2731025a73a41898dec7cee7'
'f56f3c5a1c1896f83c977f90bf7ab39729f7ea2c39f4d7484b06635c7c6fc0bd'
'290ab4239acf6145d080713cb79cf13be95f320d1ae47afea1f5dee4ad20ecc5'
'07e0e53736a610b4c688fbac85159462d264b81359c76095639c6bce7e20d1e9'
'c4b4a8d284a24a754fd745fcbbfe300df81b2be04c82278ee5d857b29cd64e64'
'796dc7e97b357f9c2ad10044d01a86d3fb49cf80e3693011eb055c466c995de0'
'16d0c83e99ca3cd56a85966c4ff2c5f0c0f8a5a7140a7594b2ec3e404c8e96a0'
'2e2fabd71aa30f0d7039b879ee58441a791e095a6656064eb9d4a84a071e5e8f'
'2e3cc9dbd787c827f73496f01633bba430e15c5db4d4f6ed9938386ea01f0171'
'5f12f95e02fd187b9f46d623c9a9acac5830bf5239b92938a4a8de0237dc9430'
'e4b3b9d058750fb80899c24f68e35beda606ca92694eff0e9f7f91eec7a846aa'
'06e1a30f687ab7d39f533447b21e84d51e0cecdaa6bfa060c87136b168811bdc'
'2db3f3100589c5795f7917ebc25779d23b69dd19047a963190d9357a5e0dc34c'
'0b50839f0e13f9e1607b46568aa953fc1491eb3f867f2737e6a4ff9eb3696aa9'
'920f472051f70e33887909a4f2c91541a2b3afa7a4faf577acf350020cd29d46'
'd3b01af9bfc265ee4057b76c897243ed42f14d62a78b7306084e54dba37a548e'
'814fc6cc5407d2137022a1ff8587cfa43d5a2736b2ab5378ea49ceb5c072de37'
'a97f0f43503d9f6ef87c1534eedc753084fa6154ca3fd0b6e51156621e28584a'
'1e016947ceedd2b46dd098b5a033526ef4f0c0e7d58968a2203ab69443949350'
'ef2c245c5b895e4cb4fd67b1842141921ff17e5812d8daca7f1f7f760e848552'
'21b256efb2eaaf7bbbf99865bcda5a3e04bb78d9740929d0d6e37d4cc50ae7b0'
'a5b742323c8da0fe29b0003fb0073969b757865fbf91789d32206397593c4d6a'
'e542a214d8b3b18c8eaec07489c773a8344b7f44850208c7c3e8badcaa35e355')
_totalSource=$(expr \
1 + \
${#_ttf_ms_win10[@]} + \
${#_ttf_ms_win10_japanese[@]} + \
${#_ttf_ms_win10_korean[@]} + \
${#_ttf_ms_win10_sea[@]} + \
${#_ttf_ms_win10_thai[@]} + \
${#_ttf_ms_win10_zh_cn[@]} + \
${#_ttf_ms_win10_zh_tw[@]} + \
${#_ttf_ms_win10_other[@]} + \
1)
sha256sums=($(awk "BEGIN{for(c=0;c<${_totalSource};c++) printf \"SKIP\n\"}"))
prepare() {
echo "- Examininging locally available fonts"
for _font in \
${_ttf_ms_win10[@]} \
${_ttf_ms_win10_japanese[@]} \
${_ttf_ms_win10_korean[@]} \
${_ttf_ms_win10_sea[@]} \
${_ttf_ms_win10_thai[@]} \
${_ttf_ms_win10_zh_cn[@]} \
${_ttf_ms_win10_zh_tw[@]} \
${_ttf_ms_win10_other[@]} \
; do
_allFiles+=( $_font )
[ ! -f $_font ] && _missingFonts+=( $_font )
done
allFiles+=( license.rtf )
if [ ${#_missingFonts[@]} -gt 0 ]; then
echo "- Fonts are missing"
echo -ne "- Mount filesystems as a non-privileged user: "
touch test.mount
_mount=
udisksctl loop-setup -r -f test.mount --no-user-interaction >/dev/null 2>&1 && _mount=true
rm test.mount
if [ $_mount ]; then
echo "allowed"
echo "- Checking for old loop devices created by by this package"
for loop_device in $(losetup --list | grep "${pkgbase}" | awk '{print $1}')
do
echo -ne " - deleting '$loop_device'..."
udisksctl loop-delete -b "$loop_device"
echo " done."
done
for fuse_mount_points in $(cat /etc/mtab | grep "${pkgbase}" | awk '{print $2}')
do
echo -ne " - unmounting '$fuse_mount_points'..."
fusermount -u "$fuse_mount_points"
echo " done."
done
echo "- Downloading fonts directly"
mkdir -p mnt/http
echo " - Mounting HTTP file"
httpfs2 -c /dev/null "$_iso" mnt/http
echo " - Creating loop device"
_isoFile="mnt/http/$(echo "$_iso" | awk -F "/" '{print $NF}')"
_loopDev=$(udisksctl loop-setup -r -f "${_isoFile}" --no-user-interaction 2>/dev/null | awk '{print $NF}')
_loopDev=$(losetup --list | grep "$_isoFile" | awk '{print $1}')
echo " - Mounting loop device: $_loopDev"
_mountpoint=$(udisksctl mount -t udf -b "$_loopDev" --no-user-interaction | awk '{print $NF}')
echo " - Loop device mounted as ISO at: $_mountpoint"
echo " - Extracting files from online Windows installation image"
7z e "${_mountpoint}/sources/install.wim" \
Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf}
echo " - Unmounting loop device $_loopDev as ISO at: $_mountpoint"
udisksctl unmount -b "$_loopDev" --no-user-interaction
echo " - Deleting loop devices..."
for loop_device in $(losetup --list | grep "${pkgbase}" | awk '{print $1}')
do
echo -ne " - deleting '$loop_device'..."
udisksctl loop-delete -b "$loop_device"
echo " done."
done
echo " - Unmounting HTTP files..."
for fuse_mount_points in $(cat /etc/mtab | grep "${pkgbase}" | awk '{print $2}')
do
echo -ne " - unmounting '$fuse_mount_points'..."
fusermount -u "$fuse_mount_points"
echo " done."
done
rmdir -p mnt/http
else
echo "not allowed"
echo "- Preparing download of full ISO"
echo " - Checking free disk space required for download and extraction"
_freeDiskSpace=$(($(stat -f --format="%a*%S" .)))
_downloadSize=$(curl -sI "$_iso" | grep Content-Length | awk '{print $2}' | tr -d '\r\n')
[ -z $_downloadSize ] && echo -ne "Unable to determine file size of:\n${_iso}\n" && exit 255
_requiredDiskSpace=$((${_downloadSize}*2))
if [ $_requiredDiskSpace -gt $_freeDiskSpace ]; then
echo "Not enough free disk space"
echo "Needed: $((${_requiredDiskSpace}/1048576)) MiB"
echo "Available: $((${_freeDiskSpace/1048576)) MiB"
exit 255
fi
echo " - Downloading ISO"
wget --no-verbose -c --tries=20 --waitretry=20 --timeout=60 "$_iso"
echo " - Extracting Windows installation image"
7z x $(echo "$_iso" | awk -F "/" '{print $NF}') sources/install.wim
echo " - Extracting files from local Windows installation image"
7z e sources/install.wim \
Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf}
echo " - Cleaning up temporary files"
rm $(echo "$_iso" | awk -F "/" '{print $NF}')
rm -rf sources
fi
fi
echo "- Verifying file integrity"
for _i in ${!_allFiles[@]}; do
echo -ne " - ${_allFiles[$_i]}: "
if [ ! -f ${_allFiles[$_i]} ]; then
echo "MISSING"
_fail=1
elif [ "${_sha256sums[$_i]}" == "SKIP" ]; then
echo "Skipped"
elif [ "${_sha256sums[$_i]}" == "$(sha256sum ${_allFiles[$_i]} | cut -d' ' -f1)" ]; then
echo "Pass"
else
echo "FAIL"
_fail=1
fi
done
if [ $_fail ]; then
echo "One or more files fail the integrity check or are missing. Exiting."
exit 255
fi
}
_package() {
conflicts+=(${pkgname/10/8} ttf-win7-fonts${pkgname##*10})
install -Dm644 $@ -t "$pkgdir/usr/share/fonts/TTF"
install -Dm644 license.rtf -t "$pkgdir/usr/share/licenses/$pkgname"
}
package_ttf-ms-win10-auto() {
pkgdesc='Microsoft Windows 10 TrueType fonts'
provides+=(ttf-tahoma ttf-ms-fonts)
conflicts+=(ttf-tahoma ttf-ms-fonts)
_package ${_ttf_ms_win10[@]}
}
package_ttf-ms-win10-auto-japanese() {
pkgdesc='Microsoft Windows 10 Japanese TrueType fonts'
provides=(ttf-ms-win10-japanese)
conflicts=(ttf-ms-win10-japanese)
_package ${_ttf_ms_win10_japanese[@]}
}
package_ttf-ms-win10-auto-korean() {
pkgdesc='Microsoft Windows 10 Korean TrueType fonts'
provides=(ttf-ms-win10-korean)
conflicts=(ttf-ms-win10-korean)
_package ${_ttf_ms_win10_korean[@]}
}
package_ttf-ms-win10-auto-sea() {
pkgdesc='Microsoft Windows 10 Southeast Asian TrueType fonts'
provides=(ttf-ms-win10-sea)
conflicts=(ttf-ms-win10-sea)
_package ${_ttf_ms_win10_sea[@]}
}
package_ttf-ms-win10-auto-thai() {
pkgdesc='Microsoft Windows 10 Thai TrueType fonts'
provides=(ttf-ms-win10-thai)
conflicts=(ttf-ms-win10-thai)
_package ${_ttf_ms_win10_thai[@]}
}
package_ttf-ms-win10-auto-zh_cn() {
pkgdesc='Microsoft Windows 10 Simplified Chinese TrueType fonts'
provides=(ttf-ms-win10-zh_cn)
conflicts=(ttf-ms-win10-zh_cn)
_package ${_ttf_ms_win10_zh_cn[@]}
}
package_ttf-ms-win10-auto-zh_tw() {
pkgdesc='Microsoft Windows 10 Traditional Chinese TrueType fonts'
provides=(ttf-ms-win10-zh_tw)
conflicts=(ttf-ms-win10-zh_tw)
_package ${_ttf_ms_win10_zh_tw[@]}
}
package_ttf-ms-win10-auto-other() {
pkgdesc='Microsoft Windows 10 Other TrueType fonts'
provides=(ttf-ms-win10-other)
conflicts=(ttf-ms-win10-other)
_package ${_ttf_ms_win10_other[@]}
}
# vim: ts=4 sw=4 et

View file

@ -1,18 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
repo_depends:
- httpfs2-2gbplus
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
time_limit_hours: 2
update_on:
- source: aur
aur: ttf-ms-win10-auto

View file

@ -1,558 +0,0 @@
# Maintainer: Loryeam <loryeam aaaatttt gmail ddooottt com>
# Maintainer: Christopher Snowhill <kode54@gmail.com>
# Contributor: Vaporeon <vaporeon@vaporeon.io>
# Contributor: Zepman <the_zep_man@hotmail.com>
# Contributor: Michael Lass <bevan@bi-co.net>
# Contributor: Doug Newgard <scimmia at archlinux dot info>
# Contributor: reflexing <reflexing@reflexing.ru>
# Instructions were copied from ttf-ms-win10-auto and slightly modified:
#
# BUILD INSTRUCTIONS:
# -------------------
#
# Please note, that usage of Microsoft fonts outside running Windows
# system is prohibited by EULA (although in certain countries EULA is invalid).
# Please consult Microsoft license before using fonts.
#
# This PKGBUILD attempts to download fonts directly from Microsoft, by
# retrieving selective parts of the Windows 11 Enterprise 90-day evaluation
# edition. This only works if the user is allowed to mount filesystems through
# udisks2. This is determined by Polkit, which by default only allows users to
# do this when they are logged in locally (e.g. not through SSH).
#
# If it is possible to download fonts directly, around 200 MiB of data will be
# downloaded. Downloading the fonts this way can take 8-20 minutes, even on a
# fast connection. Be patient. Note that for this method, it is necessary to
# mount an HTTP source and an ISO file as a loop device using FUSE. If the
# build fails, it might be that these must be unmounted manually. This can be
# done with:
#
# $ udisksctl unmount -b /dev/loopX
# $ udisksctl loop-delete -b /dev/loopX
# $ fusermount -uz src/mnt/http
#
# Replace /dev/loopX with the relevant loop device, which is reported during
# package build. If it isn't reported then loop device creation is not yet
# finished and it errored out due to timeout. It usually happens due to slow or
# inconsistent network. In such a case, you can do one of the following:
# 1. wait for the loop device to be created and run the above commands, or
# 2. just run the above 'fusermount' command (doing this might leave redundant
# loop devices which can be later removed with a simple system reboot);
# and then try building the package again.
#
# A file integrity check is performed after download. Due to the unconventional
# way that the data is downloaded, the verification is done in prepare().
#
# This package uses HTTPDirFS with permanent cache. Due to this the maximum
# download speed is around 15MiB/s. To disable cache, find and remove the
# '--cache' option from httpdirfs. Read more about HTTPDirFS permanent cache
# here: https://github.com/fangfufu/httpdirfs#permanent-cache-system
#
# If fonts cannot be downloaded directly, the ISO fill will be fully
# downloaded. Due to that install.wim will be extracted from the ISO, it is
# assumed that twice its size (almost 8 GiB) is necessary as temporary disk
# space. A free disk space check is performed before the ISO is downloaded.
#
# Please ignore any 'ln' errors when building this package. This is expected
# behavior.
#
# If for some reason you want to download the full ISO file, please visit:
#
# https://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-enterprise
#
# This package is based on ttf-ms-win11. Use that package if font files from
# a local source need to be used.
#
# ttf-ms-win11 and ttf-ms-win10-auto are considered to be upstream for this
# package, which is why its maintainers and contributors are added as
# contributors to this package. Without their effort this package would not
# exist, nor be updated.
#
pkgbase=ttf-ms-win11-auto
pkgname=($pkgbase{,-japanese,-korean,-sea,-thai,-zh_cn,-zh_tw,-other})
pkgver=10.0.22631.2428
pkgrel=2
arch=(any)
url='https://www.microsoft.com/typography/fonts/product.aspx?PID=164'
license=(custom)
provides=(ttf-font ttf-ms-win11)
conflicts=(ttf-vista-fonts)
makedepends=(udisks2 p7zip httpdirfs)
# URL of ISO file from which to extract the fonts.
_iso="https://software-static.download.prss.microsoft.com/dbazure/888969d5-f34g-4e03-ac9d-1f9786c66749/22631.2428.231001-0608.23H2_NI_RELEASE_SVC_REFRESH_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
_ttf_ms_win11=(
########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
########################################################################################
arial.ttf arialbd.ttf ariali.ttf arialbi.ttf # Arial
ariblk.ttf # Arial Black
bahnschrift.ttf # Bahnschrift
calibri.ttf calibrib.ttf calibrii.ttf calibriz.ttf # Calibri
calibril.ttf calibrili.ttf # Calibri Light
cambria.ttc cambriab.ttf cambriai.ttf cambriaz.ttf # Cambria
Candara.ttf Candarab.ttf Candarai.ttf Candaraz.ttf # Candara
Candaral.ttf Candarali.ttf # Candara Light
comic.ttf comicbd.ttf comici.ttf comicz.ttf # Comic Sans MS
consola.ttf consolab.ttf consolai.ttf consolaz.ttf # Consolas
constan.ttf constanb.ttf constani.ttf constanz.ttf # Constantia
corbel.ttf corbelb.ttf corbeli.ttf corbelz.ttf # Corbel
corbell.ttf corbelli.ttf # Corbel Light
cour.ttf courbd.ttf couri.ttf courbi.ttf # Courier New
framd.ttf framdit.ttf # Franklin Gothic Medium
Gabriola.ttf # Gabriola
georgia.ttf georgiab.ttf georgiai.ttf georgiaz.ttf # Georgia
#holomdl2.ttf # HoloLens MDL2 Assets
impact.ttf # Impact
Inkfree.ttf # Ink Free
l_10646.ttf # Lucida Sans Unicode
lucon.ttf # Lucida Console
marlett.ttf # Marlett
micross.ttf # Microsoft Sans Serifc
pala.ttf palab.ttf palai.ttf palabi.ttf # Palatino Linotype
segmdl2.ttf # Segoe MDL2 Assets
SegoeIcons.ttf # Segoe Fluent Icons
segoepr.ttf segoeprb.ttf # Segoe Print
segoesc.ttf segoescb.ttf # Segoe Script
segoeui.ttf segoeuib.ttf segoeuii.ttf segoeuiz.ttf # Segoe UI
segoeuil.ttf seguili.ttf # Segoe UI Light
segoeuisl.ttf seguisli.ttf # Segoe UI Semilight
seguibl.ttf seguibli.ttf # Segoe UI Black
seguiemj.ttf # Segoe UI Emoji
seguihis.ttf # Segoe UI Historic
seguisb.ttf seguisbi.ttf # Segoe UI Semibold
seguisym.ttf # Segoe UI Symbol
SegUIVar.ttf # Segoe UI Variable
SitkaVF.ttf SitkaVF-Italic.ttf # Sitka
sylfaen.ttf # Sylfaen
symbol.ttf # Symbol
tahoma.ttf tahomabd.ttf # Tahoma
times.ttf timesbd.ttf timesi.ttf timesbi.ttf # Times New Roman
trebuc.ttf trebucbd.ttf trebucit.ttf trebucbi.ttf # Trebuchet MS
verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf # Verdana
webdings.ttf # Webdings
wingding.ttf # Wingdings
)
_ttf_ms_win11_japanese=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
msgothic.ttc # MS Gothic
YuGothR.ttc YuGothB.ttc # Yu Gothic
YuGothM.ttc # Yu Gothic Medium
YuGothL.ttc # Yu Gothic Light
)
_ttf_ms_win11_korean=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
malgun.ttf malgunbd.ttf # Malgun Gothic
malgunsl.ttf # Malgun Gothic Semilight
)
_ttf_ms_win11_sea=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
javatext.ttf # Javanese Text
himalaya.ttf # Microsoft Himalaya
ntailu.ttf ntailub.ttf # Microsoft New Tai Lue
phagspa.ttf phagspab.ttf # Microsoft PhagsPa
taile.ttf taileb.ttf # Microsoft Tai Le
msyi.ttf # Microsoft Yi Baiti
monbaiti.ttf # Mongolian Baiti
mmrtext.ttf mmrtextb.ttf # Myanmar Text
Nirmala.ttf NirmalaB.ttf # Nirmala UI
NirmalaS.ttf # Nirmala UI Semilight
)
_ttf_ms_win11_thai=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
LeelawUI.ttf LeelaUIb.ttf # Leelawadee UI
LeelUIsl.ttf # Leelawadee UI Semilight
)
_ttf_ms_win11_zh_cn=( # Chinese (Simplified)
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
simsun.ttc # NSimSun
simsunb.ttf # SimSun-ExtB
msyh.ttc msyhbd.ttc # Microsoft YaHei
msyhl.ttc # Microsoft YaHei Light
)
_ttf_ms_win11_zh_tw=( # Chinese (Traditional)
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
msjh.ttc msjhbd.ttc # Microsoft JhengHei
msjhl.ttc # Microsoft JhengHei Light
mingliub.ttc # MingLiU_HKSCS-ExtB
)
_ttf_ms_win11_other=(
#########################################################################################
# Normal Bold Italic Bold+Italic # Full name #
#########################################################################################
ebrima.ttf ebrimabd.ttf # Ebrima
gadugi.ttf gadugib.ttf # Gadugi
mvboli.ttf # MV Boli
)
DLAGENTS=('http::/usr/bin/true'
'https::/usr/bin/true'
'file::/usr/bin/true')
source=("$_iso"
"${_ttf_ms_win11[@]/#/file://}"
"${_ttf_ms_win11_japanese[@]/#/file://}"
"${_ttf_ms_win11_korean[@]/#/file://}"
"${_ttf_ms_win11_sea[@]/#/file://}"
"${_ttf_ms_win11_thai[@]/#/file://}"
"${_ttf_ms_win11_zh_cn[@]/#/file://}"
"${_ttf_ms_win11_zh_tw[@]/#/file://}"
"${_ttf_ms_win11_other[@]/#/file://}"
file://license.rtf)
_sha256sums=('baa251526d6862712a58e613ef451d8a2b60482142ec6aab1d47fb8e23e21a7c'
'8df7a2c69fc4044835814899534e5fee6e72f78285b5a6dcb19531142b51d742'
'090b89742910172c69e1fd3b1814ad4e482a1c712b87d24e96b377beaac3a6d1'
'94d0872622e6d592f01440b58dac8f5d7e010509bd76bb71cbed71fc5f4dc173'
'10df702864b1f89cb29ba0d6b97c04228338d16807e13e8d8c74b91aba5e5f23'
'6147a218696424127035e25c4be335c73a7d69b052b714d05806b3c17898b49f'
'df2c69a18a462e5cbc97d04a033f3bd7cd0abfe818381641f8c2dee7b7c43dbd'
'5e8b2eb430f543eb304f08f44f5eb02ccbc39ffdc95400aae96f5dcd2aea73d8'
'21390a7e84b61224916e810fd00344ad9ad4f1d9115151a551845a4387d20b10'
'b699a59faad65272ee48a4d118d6bc743d4cc4ba338cb1c6347deec58aa1e1a0'
'744d3ec1b277e3652ba8f8d45c89f83c99b7ecf3eb2dfa27306d7be56d3ee030'
'67ac784ac390f6c48119e76f9e34589f9a86b8974f561a6159545b858ab4cd41'
'84e70ccc1664482f4a960442c7a166c91a1b2cf98ff88c33cb73f79403f66d7b'
'6685c657a7e292083e28f19bbf1a1e90509ce3e1130dbc4ed1c62ba3f9140543'
'6905f0ac846d1ec4326cd14a46cb7379204940aa293b098ee4c1a69723bbd165'
'fa90f376ad37f308a819b341c8185f788d30a1012829278592eab45a41818d1a'
'9f02f6bf076197ed2a1335fe59a3bdf88e7ad4a849bf68037a528f37cce36791'
'5346840fa85a1969699dc97635e838cd2c42dad7f8a4999d7368eb888fceb04b'
'fc68cb42582e1207bcc397df7b60870a74ae068b17d7bd79f2e9f63af89796b4'
'1614c0d3a6751eb46b2c52f09ae23dd61f769beda83058269cb0653c049eae43'
'0e14f663fa34460fe9a07bb32d0017a180a4a0c8457d279fbfc5d8452753b477'
'e8b17bc645c098bbc5167acfe13f0e3c63f0f417d539aab171db7eea3c40eab2'
'a7da3ef195158acd8432226a21f2940f1806a9c8d079f18d0a9ab475f50f9659'
'56567bc71e89fd173674c78f02b474123a02561b246526a22600c3a29b2fdc65'
'65aece2928246837317e093a11c6df5cbfc67035f1e045c9771f7c408be1faea'
'c691699eaf218e702b2d77c1f62d2c080be6248f1c11018b0b2556834a9cecb1'
'c6e6ce8119fdd47ec6a5449a08e2d2ad7f41ea03143aae193068ed9fa58eaebc'
'8fa803e5abc7fff0c78c62cd22d07c705f3273c53312380c36ff484246ed3c1b'
'81e2a95d3c49468029c07e58f71a5f0ca4cfcb617eaf6bd77576fb03aa430bb2'
'1df27cbcc8a9fb7f843bc24e257b78e8ff93de70e8c1ad2caab8379e7d6a1eab'
'495577bf8ef74deab6ecc2e7acf63cd966184148f9bc2044a1068cd58501577e'
'b6c66a1858370fe575629e19d53c05350738bf5105e18ceac07fe9efc9cd008d'
'2314a03c53506fa79525bc479ea4be9c036d1ebd86a1ffb5837ca5b43ff51f07'
'9311aadcbd919746f50d222fa0215fb44266d6993221c14a196f0725fdae464f'
'a183b77b655df66793639af7874828fb50f748dc4af57ae40f758156f7f34634'
'fa008372f8a94945d0daef9daf0bfb9e3fba3a25fd17f2607d47ac6861bd0303'
'9be778c9ed418770f6b5a02064d9c0b47a8fdea1137618f0bec9ac4072430a45'
'588f090ae3a6d31370457312683d14ee3a5bfbdaaa0a070b7c80225b55b23e78'
'0e36ddf90102e476c6739ca4c8cc18ba8309d880c12558981d2e4d42de78fc00'
'a031500bccd32b5d6e819699b774fc679c696ed4965b643d51a94eb398475550'
'93c3ff526c19d03496c01c6a1bfd1031f97af021a13e859a89dfc717a0b6b6ec'
'716c08d704f154870bd9fb78b185d0b644912301dfa9c9e6daf45bdb4832a299'
'5861588608d3a3775d921a7e4acb8362b21630c6b63718bc68adb7137ce53beb'
'8fdb188252a2db0f020c89831bddb61cadfe290c3616fe534479b4d3b10d09c1'
'bac844bd41f847cf138737026d41c983387a1065535c32e78aa22c48708b52ad'
'df59f9ea915957b22a389d68580bf40dc5bd05822cc65b5fdcc188c706a694e7'
'ddd852f9e43a5e81af62a3f6654324ba7553d7d66101ab848abc1bd2d626ac4b'
'38dffcaf1fac89492f7c56c600a14daf36ae42f7c21985cd4134ae113124a58f'
'72a6cd94fab6c179392075d3fb361e269cdddfad41bb7ab385fa22a37e49a900'
'd3e4bad27651d120ac8f2cea42cf4b4f077264fb243f66b3caffcfd35465f49b'
'3f9e512f82eaf6f1b7869b82013fb79f6eaf1a41e75a0e7b96f31f35b1022ae4'
'd8bbdb72e3f930157824b2e59677d3a912d4512c14a948e6656a2e3fb0c935ad'
'c8ab96bc49ec1dc36936b5973fc143ca222c1a33ab27b87071a3bbc44d34ca9a'
'97226e81f19eff8c8fb191745748bab920472c005d3ec4e23d9a50a12c471d92'
'2ca2cfde263fa420e8d39420f075ee9ac80bc0794272c53ac4571a88f8a075a6'
'b7397adf2dcc24ca790348a3c26deb2122b45e5728fd25fc588de4cf5a75b469'
'b41c5227ddfca092a57603067ae59933473b1a63d54c9cc90b174e5741088853'
'e47d594e2e2bc31b28f87b6f66483d32f925843ceb002f919c7a403aca48813d'
'8e14668bbae03f78ed668dbe3261218881960dcd9fb80ad6c1d1dfb4226a57c3'
'99f0af2d1941707fecda23da38bafbed5144a73a3720d773c05b9d4c445920ed'
'd0e722b91ffd5391cc2e7d6e976f274d5aee9fe0b8d0fedfffe093763e695cde'
'a2efc8b8e51fbd031a7142a1ade8866fa904c0c349511abc579ee53f8a926f31'
'54a7c523a178cfff110935a58ba7682b9d6bfae4a85ce72b00a733c09462f44a'
'91046862e08fbade0bdd648e81c4efbe6a963947f8b6e32b64a28fe39073c468'
'3cced0162ddb9e5f1e63ee1b36fd6e581c090318dce1a0af01b77f5ea9952c80'
'b24aa49a4bcb99a0ffc60cad77f00941e4b121153d8b0a519c03719d9be6004e'
'6cd482205e1390b32a2b6327e1e5039424e346172c187074eac12006bc51935e'
'74f2b3d0c20cf7380eb121a09fd7cdfdc1ccdd12a00db83caec0feb48b4db9f7'
'd105038ae445a7ab3e7c037eae9c6a436f71f603136f353e8338cfca40e6ca18'
'821ee79ea06ea1ce24964baf760d740086e8e1e6b88528978307cf1729cfaf1d'
'79872dff519fde7a0c7cc8ed4f454a5fd7fd7628c527dc74473056a32a9eeb38'
'fe28fdf790453728a07233877c0a708477319fa798363ae4a1657d04fd173416'
'd3366c28fc5d73644465fe08bc2d8571710955238e525dec4c9d6b5d22fb92fa'
'483bb4800d30031ae1970dbd44a64f2f476a9fcba326bd0a216dac6e0b92e333'
'254ad309e8f6b49cf0379a565adaf85a78994b4420b98a94119f45449d7b70ab'
'e17738f092c8b02f4443867a7dfcdde66fb4cd6f6b10de8e40b2f3192f8a5835'
'33212faa85fad61785cd6917172378b798bc9f5d4c47c121437354f47980aa6f'
'742dcdad8a12b0dad5869d3748a74a19b8ee19a659b23eb3fb20feaef9cf7f01'
'fec0897934d26625b17bb3e4ffb3a7b0b6a138f6e61d5eff7535417cfbbc7884'
'b381730d47408ced8f104b62c9042a6abbbd08501a37f14b76858760a6cf176c'
'60cd474595d07bbdfa9d87de1a1e24c876e218d117c4a3098e0ac937157a1b9d'
'd2f8326a354456d93e78b0537c58793e7072c3617af7d9ee187f10d6d595f510'
'27ca1ab4bd5ad3b0404ee6a9a03b143408dbd7e5a4c9e4b2054639c03fc0f682'
'be1f89db95982d7ee568de72219457f7330260c4b742707ef3c5b5438a453840'
'd8d27dc02f26f9f4c30a2b86d93e99492eef702a107af42f4df8a4e049c4e1dc'
'55be3490211845a51960c129be1d793782765383b2dfcc969228d4ab5ae8fe64'
'bbf1192965e5266fbf23370416337d2861fc1e8bd349def93f2994ba67382fc3'
'f936530a7ede296580f897c47e7a3fa48a9483166080ce05105673a1339cbf0c'
'a05f9206c44ba5795690f03fc767f5e5209bf913e23cf61f45d2ed84c3a424e5'
'43a890795ad133d73568d169a35924f40416be8a6950a1a03263052ec8e95b8a'
'56735cfcb1d3feac66d5d9bb446c8598e522dc03c54923943899217c227bdfab'
'f3a1bbc53e7c3c21262f033c4d73a55a990952cbd4644ea42cb9f0c4c4640e40'
'914ae3beb26a5948dbf67d87a7f86f10abe9407d420fa6a448f974e41d0f3727'
'fe3e8bdd64c1c9f3b9cf5189d06510c80d72cec28e03d04bffc560f77eec58d1'
'dfcc306777a594d2815368547dd897e2ac82aff8073e55d9e682569939e49b81'
'9c9dc0cd0fd6b1a06e8f406d04bb15a88aaf20328d3e166c12d6bc7994b781d2'
'87942234ab0cc4400088648bef8d1f7afc4c44e676c7ed6b32ca31462c18307d'
'6a8481fe107ee547893c018b13dba291c2020bec3de5da6525d9ac09f6bc2105'
'f3245f5f38f61bd1ceefb0f1338a5b88a21e6220832c2f43a38bbc7e1547c36f'
'14f2ebcdaa1b77e5993a8533662e4bd3ebfe2c5771b6daafd8ccb39b2ad588b9'
'd71f81c83ec63eaa32d36d5df7be1d9e71d3ea9150f47cebda2924923cbbf18a'
'67461fabd8329d0d8ad62689cac642b34fac81c754ff9077ad211160ec62282d'
'9bcd6064e3b52fa30a347edd6e82506e2ec8b1602930b423c629a82c10468a5b'
'4bde3e6392b96910fb59094c6c1a4dbfae18fee78d0bf13dc30616837c4f95db'
'27c9b8e4cc7c5cbd846d1fa978b7713938e8ae766875962c70c3986b004bbc85'
'9d0437d151ddd907d72ba9ba348d670575a86e4f5cbf018de18645f2353140e5'
'14afc5b98fc53165a2f760fcff11f6ed55ab80f20ae46a2a4a08b7af2b9044d5'
'95392428a804b937919526fec91bab64200664f7f22f777211da6bb244988f56'
'0086c19e81d293a542e7d75564c645fb58070cc850aefebf8fa1c397858e510c'
'a541834fb9cdde9bd6d2c3ff1565cb0bb5ccf7a15e4e9daf2cb58d9b1cf282aa'
'a7217a2e590c86141bddadc74a2bcdff2efe210db48469a77a749e0446d91ea9'
'df8d94382f73e6d2197b60653c3d55c28ab5cf127a82e65b8af4ed1b52fdc412'
'fdec3a7efacd57913d3c14111837908ccbabea5b0b44ec62527eb73acf743afb'
'de0b632015447f28c2db41c8e07c745cedb05ead5dbc2e73f19da14d2e5f2151'
'cfc2acbf9ae0205a0a258e564bdbf5466a4e49a95281a1d2e72690f149ec837b'
'538949482d964e9f353a3a8d860bb3eda93b46b830f3b677e4f53eb2ff3a6e7d'
'03e4e45bb8ebb6d055a5584166cc26712bf7e746ea29cb6e548341361d31dc85'
'f5151d081f6afea4c26464e0cd5e695f57a99209cfeea2f483c3108684660eb6'
'1878842d8dbdf8489794af0bace95a956db270dfa506ddcaabf94fa827b769ac'
'80aef1c25135b945e9de7d09e6445c386405eb2e0ea7032d4cd00a2fe3eef0ae'
'707585b9acfc1507d9bd943bb5435f75768274b1a12b1f71de76ad78be4d7e7b'
'37598a7b023c80f3e56c44ed91e01936a96b3e81c888bee82f85113da39f9468'
'b4329b395966137485b324d0c15817e99f0167d559d81a01e90d8761d52261b9'
'70f53470e5467d6b0dc2af2f58cdf2622629be2a131652615d9ef8c00a410fec'
'e0b00c65dbf786eadb4345f62e456d7462b960a5b15c9e07fa5c8809481b9a5f'
'78709a285aef168b5c2d8073dce837359997a14244d6ed904883717d60eed3b9'
'796dc7e97b357f9c2ad10044d01a86d3fb49cf80e3693011eb055c466c995de0'
'16d0c83e99ca3cd56a85966c4ff2c5f0c0f8a5a7140a7594b2ec3e404c8e96a0'
'2e2fabd71aa30f0d7039b879ee58441a791e095a6656064eb9d4a84a071e5e8f'
'05068fa1acae212120dcc7e98c884b174a6eca252a636b4b64030235473ec27e'
'd75bef7991a4acc6aec7be5cea3698d97d7a7fd791050a64a8cb926731dfcfa2'
'3084f1f88369af6bf9989c909024164d953d1e38d08734f05f28ef24b2f9d577'
'519309b7ab0479c4dc3ace5e291de5a8702175be5586e165bc810267bd4619a5'
'f25f39a6d56ec6d1b356254dd776219d71b7e6f3584b3ec1b83aab0ceb08881a'
'0b50839f0e13f9e1607b46568aa953fc1491eb3f867f2737e6a4ff9eb3696aa9'
'73293967f4bb2ceb68a40d642d7dbe410ea55abb1410ba94c02d9d88e4d055bf'
'd3b01af9bfc265ee4057b76c897243ed42f14d62a78b7306084e54dba37a548e'
'814fc6cc5407d2137022a1ff8587cfa43d5a2736b2ab5378ea49ceb5c072de37'
'6406c765cfb81bf302d767cb2383a5a51e26e50d7239ed22233dbae689ae1f05'
'9090931d496a272ab9f1382480332e6029e636a9191fe21d158adbf148acf0df'
'0ec2bdbfc2ba99d9fb05b6f7c511e7ab8b7c055e2d644570ad777455d6e9796d'
'c96226cba7f50e94b534a5f8ade6a54f48a03be7c73360524eda5cbce4de34b6'
'5dfd7a4c708caeefae42cdb9540946de042beeb8c069dfde0dbc14c2fa0705ae'
'e542a214d8b3b18c8eaec07489c773a8344b7f44850208c7c3e8badcaa35e355')
_totalSource=$(expr \
1 + \
${#_ttf_ms_win11[@]} + \
${#_ttf_ms_win11_japanese[@]} + \
${#_ttf_ms_win11_korean[@]} + \
${#_ttf_ms_win11_sea[@]} + \
${#_ttf_ms_win11_thai[@]} + \
${#_ttf_ms_win11_zh_cn[@]} + \
${#_ttf_ms_win11_zh_tw[@]} + \
${#_ttf_ms_win11_other[@]} + \
1)
sha256sums=($(awk "BEGIN{for(c=0;c<${_totalSource};c++) printf \"SKIP\n\"}"))
prepare() {
echo "- Examining locally available fonts"
for _font in \
${_ttf_ms_win11[@]} \
${_ttf_ms_win11_japanese[@]} \
${_ttf_ms_win11_korean[@]} \
${_ttf_ms_win11_sea[@]} \
${_ttf_ms_win11_thai[@]} \
${_ttf_ms_win11_zh_cn[@]} \
${_ttf_ms_win11_zh_tw[@]} \
${_ttf_ms_win11_other[@]} \
; do
_allFiles+=( $_font )
[ ! -f $_font ] && _missingFonts+=( $_font )
done
allFiles+=( license.rtf )
if [ ${#_missingFonts[@]} -gt 0 ]; then
echo "- Fonts are missing"
echo -ne "- Mount filesystems as a non-privileged user: "
touch test.mount
_unprivilegedMountAllowed=false
_udisksctlOutput=$(udisksctl loop-setup -r -f test.mount --no-user-interaction) && {
_unprivilegedMountAllowed=true
_testLoopDev=$(echo "$_udisksctlOutput" | awk '{print $NF}' RS='.\n')
udisksctl loop-delete -b "$_testLoopDev" --no-user-interaction
}
rm test.mount
if [ "$_unprivilegedMountAllowed" = "true" ]; then
echo "allowed"
echo "- Downloading fonts directly"
mkdir -p mnt/http
echo " - Mounting HTTP file"
# Remove '--cache' here to disable HTTPDirFS permanent cache.
httpdirfs --cache --single-file-mode "$_iso" mnt/http
echo " - Creating loop device"
_isoFile="mnt/http/$(echo "$_iso" | awk -F "/" '{print $NF}')"
_loopDev=$(udisksctl loop-setup -r -f "${_isoFile}" --no-user-interaction 2>&1 | grep -oE "'.*'" | sed -e "s/'//g")
# Wait for the loop device to be automatically mounted.
sleep 5
# Mount the loop device if not automatically mounted.
if ! grep -qs $_loopDev /proc/mounts; then
echo " - Mounting loop device: $_loopDev"
udisksctl mount -t udf -b "$_loopDev" --no-user-interaction
fi
_mountpoint=$(findmnt -nfr -o target -S $_loopDev)
echo " - Loop device mounted as ISO at: $_mountpoint"
echo " - Extracting files from online Windows installation image"
7z e -aoa "${_mountpoint}/sources/install.wim" \
Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf}
echo " - Unmounting loop device $_loopDev as ISO at: $_mountpoint"
udisksctl unmount -b "$_loopDev" --no-user-interaction
echo " - Deleting loop device: $_loopDev"
udisksctl loop-delete -b "$_loopDev" --no-user-interaction
echo " - Unmounting HTTP file"
fusermount -uz mnt/http
rmdir -p mnt/http
else
echo "not allowed"
echo "- Preparing download of full ISO"
echo " - Checking free disk space required for download and extraction"
_freeDiskSpace=$(($(stat -f --format="%a*%S" .)))
_downloadSize=$(curl -sIL "$_iso" | grep -i Content-Length | tail -n1 | awk '{print $2}' | tr -d '\r\n')
[ -z $_downloadSize ] && echo -ne "Unable to determine file size of:\n${_iso}\n" && exit 255
_requiredDiskSpace=$((${_downloadSize}*2))
if [ $_requiredDiskSpace -gt $_freeDiskSpace ]; then
echo "Not enough free disk space"
echo "Needed: $((${_requiredDiskSpace}/1048576)) MiB"
echo "Available: $((${_freeDiskSpace}/1048576)) MiB"
exit 255
fi
echo " - Downloading ISO"
curl -JLO "$_iso"
echo " - Extracting Windows installation image"
7z x $(echo "$_iso" | awk -F "/" '{print $NF}') sources/install.wim
echo " - Extracting files from local Windows installation image"
7z e sources/install.wim \
Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf}
echo " - Cleaning up temporary files"
rm $(echo "$_iso" | awk -F "/" '{print $NF}')
rm -rf sources
fi
fi
echo "- Verifying file integrity"
for _i in ${!_allFiles[@]}; do
echo -ne " - ${_allFiles[$_i]}: "
if [ ! -f ${_allFiles[$_i]} ]; then
echo "MISSING"
_fail=1
elif [ "${_sha256sums[$_i]}" == "SKIP" ]; then
echo "Skipped"
elif [ "${_sha256sums[$_i]}" == "$(sha256sum ${_allFiles[$_i]} | cut -d' ' -f1)" ]; then
echo "Pass"
else
echo "FAIL"
_fail=1
fi
done
if [ $_fail ]; then
echo "One or more files fail the integrity check or are missing. Exiting."
exit 255
fi
}
_package() {
conflicts+=(${pkgname/11/8} ${pkgname/11/10} ttf-win7-fonts${pkgname##*11})
install -Dm644 $@ -t "$pkgdir/usr/share/fonts/TTF"
install -Dm644 license.rtf -t "$pkgdir/usr/share/licenses/$pkgname"
}
package_ttf-ms-win11-auto() {
pkgdesc='Microsoft Windows 11 TrueType fonts'
provides+=(emoji-font ttf-tahoma ttf-ms-fonts)
conflicts+=(ttf-tahoma ttf-ms-fonts)
_package ${_ttf_ms_win11[@]}
}
package_ttf-ms-win11-auto-japanese() {
pkgdesc='Microsoft Windows 11 Japanese TrueType fonts'
provides=(ttf-ms-win11-japanese)
conflicts=(ttf-ms-win11-japanese)
_package ${_ttf_ms_win11_japanese[@]}
}
package_ttf-ms-win11-auto-korean() {
pkgdesc='Microsoft Windows 11 Korean TrueType fonts'
provides=(ttf-ms-win11-korean)
conflicts=(ttf-ms-win11-korean)
_package ${_ttf_ms_win11_korean[@]}
}
package_ttf-ms-win11-auto-sea() {
pkgdesc='Microsoft Windows 11 Southeast Asian TrueType fonts'
provides=(ttf-ms-win11-sea)
conflicts=(ttf-ms-win11-sea)
_package ${_ttf_ms_win11_sea[@]}
}
package_ttf-ms-win11-auto-thai() {
pkgdesc='Microsoft Windows 11 Thai TrueType fonts'
provides=(ttf-ms-win11-thai)
conflicts=(ttf-ms-win11-thai)
_package ${_ttf_ms_win11_thai[@]}
}
package_ttf-ms-win11-auto-zh_cn() {
pkgdesc='Microsoft Windows 11 Simplified Chinese TrueType fonts'
provides=(ttf-ms-win11-zh_cn)
conflicts=(ttf-ms-win11-zh_cn)
_package ${_ttf_ms_win11_zh_cn[@]}
}
package_ttf-ms-win11-auto-zh_tw() {
pkgdesc='Microsoft Windows 11 Traditional Chinese TrueType fonts'
provides=(ttf-ms-win11-zh_tw)
conflicts=(ttf-ms-win11-zh_tw)
_package ${_ttf_ms_win11_zh_tw[@]}
}
package_ttf-ms-win11-auto-other() {
pkgdesc='Microsoft Windows 11 Other TrueType fonts'
provides=(ttf-ms-win11-other)
conflicts=(ttf-ms-win11-other)
_package ${_ttf_ms_win11_other[@]}
}
# vim: ts=4 sw=4 et

View file

@ -1,35 +0,0 @@
from lilaclib import *
import subprocess
def apply_patch(filename, patch):
patch_proc = subprocess.Popen(["patch", "-p1", filename], stdin=subprocess.PIPE, text=True)
patch_proc.communicate(patch)
def pre_build():
aur_pre_build()
apply_patch('PKGBUILD', PATCH)
PATCH=r"""
diff --git a/PKGBUILD b/PKGBUILD
index 7c63329..457ba24 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -401,13 +401,11 @@ prepare() {
echo "- Fonts are missing"
echo -ne "- Mount filesystems as a non-privileged user: "
touch test.mount
- _unprivilegedMountAllowed=false
- _testLoopDev=$(udisksctl loop-setup -r -f test.mount --no-user-interaction | awk '{print $NF}') && _unprivilegedMountAllowed=true
- _testLoopDev=${_testLoopDev::-1}
- udisksctl loop-delete -b "$_testLoopDev" --no-user-interaction
+ _mount=
+ udisksctl loop-setup -r -f test.mount --no-user-interaction >/dev/null 2>&1 && _mount=true
rm test.mount
- if [ $_unprivilegedMountAllowed ]; then
+ if [ $_mount ]; then
echo "allowed"
echo "- Downloading fonts directly"
mkdir -p mnt/http
"""

View file

@ -1,18 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
repo_depends:
- httpdirfs
build_prefix: extra-x86_64
post_build: aur_post_build
time_limit_hours: 2
update_on:
- source: aur
aur: ttf-ms-win11-auto
- source: manual
manual: 0.1