xorg-fonts-{75,100}dpi: fix build.sh
This commit is contained in:
parent
38031d2024
commit
dd1e98cda0
@ -4,50 +4,35 @@ TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.0.3
|
||||
TERMUX_PKG_REVISION=22
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_SRCURL=("https://xorg.freedesktop.org/releases/individual/font/font-adobe-100dpi-1.0.3.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-adobe-utopia-100dpi-1.0.4.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-bh-100dpi-1.0.3.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-bh-lucidatypewriter-100dpi-1.0.3.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-bitstream-100dpi-1.0.3.tar.bz2")
|
||||
TERMUX_PKG_SHA256=("b2c08433eab5cb202470aa9f779efefce8d9cab2534f34f3aa4a31d05671c054"
|
||||
"d16f5e3f227cc6dd07a160a71f443559682dbc35f1c056a5385085aaec4fada5"
|
||||
"23c07162708e4b79eb33095c8bfa62c783717a9431254bbf44863734ea239481"
|
||||
"62a83363c2536095fda49d260d21e0847675676e4e3415054064cbdffa641fbb"
|
||||
"ebe0d7444e3d7c8da7642055ac2206f0190ee060700d99cd876f8fc9964cb6ce")
|
||||
TERMUX_PKG_DEPENDS="fontconfig-utils, xorg-font-util, xorg-fonts-alias, xorg-fonts-encodings, xorg-mkfontscale"
|
||||
TERMUX_PKG_CONFLICTS="xorg-fonts-lite"
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
font_sources=("font-adobe-100dpi-1.0.3.tar.bz2"
|
||||
"font-adobe-utopia-100dpi-1.0.4.tar.bz2"
|
||||
"font-bh-100dpi-1.0.3.tar.bz2"
|
||||
"font-bh-lucidatypewriter-100dpi-1.0.3.tar.bz2"
|
||||
"font-bitstream-100dpi-1.0.3.tar.bz2")
|
||||
|
||||
font_sources_sha256=("b2c08433eab5cb202470aa9f779efefce8d9cab2534f34f3aa4a31d05671c054"
|
||||
"d16f5e3f227cc6dd07a160a71f443559682dbc35f1c056a5385085aaec4fada5"
|
||||
"23c07162708e4b79eb33095c8bfa62c783717a9431254bbf44863734ea239481"
|
||||
"62a83363c2536095fda49d260d21e0847675676e4e3415054064cbdffa641fbb"
|
||||
"ebe0d7444e3d7c8da7642055ac2206f0190ee060700d99cd876f8fc9964cb6ce")
|
||||
|
||||
termux_step_post_extract_package() {
|
||||
local _base_url="https://xorg.freedesktop.org/releases/individual/font"
|
||||
|
||||
termux_step_get_source() {
|
||||
mkdir -p "$TERMUX_PKG_SRCDIR"
|
||||
local i
|
||||
for i in {0..4}; do
|
||||
local url="${_base_url}/${font_sources[i]}"
|
||||
local file="${TERMUX_PKG_CACHEDIR}/${font_sources[i]}"
|
||||
local checksum="${font_sources_sha256[i]}"
|
||||
|
||||
termux_download "${url}" "${file}" "${checksum}"
|
||||
tar xf "${file}" -C "${TERMUX_PKG_SRCDIR}"
|
||||
termux_download "${TERMUX_PKG_SRCURL[i]}" "$(basename "${TERMUX_PKG_SRCURL[i]}")" "${TERMUX_PKG_SHA256[i]}"
|
||||
tar xf "$(basename "${TERMUX_PKG_SRCURL[i]}")" -C "${TERMUX_PKG_SRCDIR}"
|
||||
done
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
if [ -z "$(command -v mkfontdir)" ]; then
|
||||
echo
|
||||
echo "Command 'mkfontdir' is not found."
|
||||
echo "Install it by running 'sudo apt install xfonts-utils'."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
local i
|
||||
for i in {0..4}; do
|
||||
local dir="${TERMUX_PKG_SRCDIR}/${font_sources[i]//.tar.bz2}"
|
||||
local file=$(basename "${TERMUX_PKG_SRCURL[i]}")
|
||||
local dir="${TERMUX_PKG_SRCDIR}/${file%%.tar.bz2}"
|
||||
|
||||
pushd "${dir}"
|
||||
./configure \
|
||||
|
@ -4,50 +4,35 @@ TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.0.3
|
||||
TERMUX_PKG_REVISION=22
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_SRCURL=("https://xorg.freedesktop.org/releases/individual/font/font-adobe-75dpi-1.0.3.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-adobe-utopia-75dpi-1.0.4.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-bh-75dpi-1.0.3.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-bh-lucidatypewriter-75dpi-1.0.3.tar.bz2"
|
||||
"https://xorg.freedesktop.org/releases/individual/font/font-bitstream-75dpi-1.0.3.tar.bz2")
|
||||
TERMUX_PKG_SHA256=("c6024a1e4a1e65f413f994dd08b734efd393ce0a502eb465deb77b9a36db4d09"
|
||||
"8732719c61f3661c8bad63804ebfd54fc7de21ab848e9a26a19b1778ef8b5c94"
|
||||
"3486aa51ac92c646a448fe899c5c3dae0024b1fef724d5100d52640d1cac721c"
|
||||
"4ac16afbe205480cc5572e2977ea63488c543d05be0ea8e5a94c845a6eebcb31"
|
||||
"ba3f5e4610c07bd5859881660753ec6d75d179f26fc967aa776dbb3d5d5cf48e")
|
||||
TERMUX_PKG_DEPENDS="fontconfig-utils, xorg-font-util, xorg-fonts-alias, xorg-fonts-encodings, xorg-mkfontscale"
|
||||
TERMUX_PKG_CONFLICTS="xorg-fonts-lite"
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
font_sources=("font-adobe-75dpi-1.0.3.tar.bz2"
|
||||
"font-adobe-utopia-75dpi-1.0.4.tar.bz2"
|
||||
"font-bh-75dpi-1.0.3.tar.bz2"
|
||||
"font-bh-lucidatypewriter-75dpi-1.0.3.tar.bz2"
|
||||
"font-bitstream-75dpi-1.0.3.tar.bz2")
|
||||
|
||||
font_sources_sha256=("c6024a1e4a1e65f413f994dd08b734efd393ce0a502eb465deb77b9a36db4d09"
|
||||
"8732719c61f3661c8bad63804ebfd54fc7de21ab848e9a26a19b1778ef8b5c94"
|
||||
"3486aa51ac92c646a448fe899c5c3dae0024b1fef724d5100d52640d1cac721c"
|
||||
"4ac16afbe205480cc5572e2977ea63488c543d05be0ea8e5a94c845a6eebcb31"
|
||||
"ba3f5e4610c07bd5859881660753ec6d75d179f26fc967aa776dbb3d5d5cf48e")
|
||||
|
||||
termux_step_post_extract_package() {
|
||||
local _base_url="https://xorg.freedesktop.org/releases/individual/font"
|
||||
|
||||
termux_step_get_source() {
|
||||
mkdir -p "$TERMUX_PKG_SRCDIR"
|
||||
local i
|
||||
for i in {0..4}; do
|
||||
local url="${_base_url}/${font_sources[i]}"
|
||||
local file="${TERMUX_PKG_CACHEDIR}/${font_sources[i]}"
|
||||
local checksum="${font_sources_sha256[i]}"
|
||||
|
||||
termux_download "${url}" "${file}" "${checksum}"
|
||||
tar xf "${file}" -C "${TERMUX_PKG_SRCDIR}"
|
||||
termux_download "${TERMUX_PKG_SRCURL[i]}" "$(basename "${TERMUX_PKG_SRCURL[i]}")" "${TERMUX_PKG_SHA256[i]}"
|
||||
tar xf "$(basename "${TERMUX_PKG_SRCURL[i]}")" -C "${TERMUX_PKG_SRCDIR}"
|
||||
done
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
if [ -z "$(command -v mkfontdir)" ]; then
|
||||
echo
|
||||
echo "Command 'mkfontdir' is not found."
|
||||
echo "Install it by running 'sudo apt install xfonts-utils'."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
local i
|
||||
for i in {0..4}; do
|
||||
local dir="${TERMUX_PKG_SRCDIR}/${font_sources[i]//.tar.bz2}"
|
||||
local file=$(basename "${TERMUX_PKG_SRCURL[i]}")
|
||||
local dir="${TERMUX_PKG_SRCDIR}/${file%%.tar.bz2}"
|
||||
|
||||
pushd "${dir}"
|
||||
./configure \
|
||||
|
Loading…
Reference in New Issue
Block a user