Skip to content

Instantly share code, notes, and snippets.

@jeremyd2019
Last active June 29, 2021 18:10
Show Gist options
  • Save jeremyd2019/329c26f21d4b059b371cc804c4c60546 to your computer and use it in GitHub Desktop.
Save jeremyd2019/329c26f21d4b059b371cc804c4c60546 to your computer and use it in GitHub Desktop.
Scripts to bootstrap a clang prefix
#!/bin/bash -x
declare -a pkgs
pkgs=(libmangle-git
tools-git
headers-git
crt-git
winpthreads-git
winstorecompat-git
ntldd-git
termcap
libiconv
pkgconf
expat
gettext
bzip2
zlib
xz
lz4
libuv
rhash
zstd
libtre-git
libsystre
ncurses
gmp
nettle
openssl
libarchive
jsoncpp
c-ares
brotli
libunistring
libidn2
libmetalink
libpsl
libssh2
jansson
jemalloc
nghttp2
gnutls
rtmpdump-git
curl
cmake
libffi
mpdecimal
readline
tcl
tk
sqlite3
python
python-six
python-setuptools
python-pyparsing
python-attrs
python-packaging
python-ordered-set
python-appdirs
python-certifi
python-wincertstore
ninja
meson
libtasn1
p11-kit
ca-certificates
libxml2
libgpg-error
libgcrypt
libxslt
itstool
docbook-xml
docbook-xsl
python-pytz
python-babel
python-colorama
python-docutils
python-imagesize
python-markupsafe
python-jinja
python-pygments
python-idna
python-pyasn1
python-ply
python-pycparser
python-cffi
python-asn1crypto
python-toml
python-semantic-version
$( true || [[ $MSYSTEM == *ARM* ]] || echo "python-setuptools-rust" )
python-cryptography
python-pyopenssl
python-ndg-httpsclient
python-funcsigs
python-pbr
python-mock
python-urllib3
python-chardet
python-requests
python-snowballstemmer
python-webencodings
python-html5lib
python-sphinx-alabaster-theme
python-sphinxcontrib-applehelp
python-sphinxcontrib-devhelp
python-sphinxcontrib-htmlhelp
python-sphinxcontrib-jsmath
python-sphinxcontrib-moderncmakedomain
python-sphinxcontrib-serializinghtml
python-sphinxcontrib-qthelp
python-sphinx
python-sphinxcontrib-svg2pdfconverter
gtk-doc
z3
wineditline
pcre
lua
swig
$( [[ $MSYSTEM == *ARM* ]] || echo "uasm" )
clang
$( true || [[ $MSYSTEM == *ARM* ]] || echo "rust" )
libssp)
for p in "${pkgs[@]}"; do
pushd mingw-w64-$p
time makepkg --config /etc/makepkg_mingw.conf --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild --install -f || break
rm -rf src pkg
popd
done
#!/bin/bash -x
declare -a pkgs
pkgs=(ntldd-git
termcap
libiconv
pkgconf
expat
gettext
bzip2
zlib
xz
lz4
libuv
rhash
cmake
zstd
libtre-git
libsystre
ncurses
gmp
nettle
openssl
libarchive
jsoncpp
c-ares
brotli
libunistring
libidn2
libmetalink
libpsl
libssh2
jansson
jemalloc
nghttp2
curl
libffi
mpdecimal
readline
tcl
tk
sqlite3
python
python-six
python-setuptools
python-pyparsing
python-attrs
python-packaging
python-ordered-set
python-appdirs
python-certifi
python-wincertstore
ninja
meson
libtasn1
p11-kit
ca-certificates
libxml2
libgpg-error
libgcrypt
libxslt
itstool
docbook-xml
docbook-xsl
python-pytz
python-babel
python-colorama
python-docutils
python-imagesize
python-markupsafe
python-jinja
python-pygments
python-idna
python-pyasn1
python-ply
python-pycparser
python-cffi
python-asn1crypto
python-toml
python-semantic-version
python-cryptography
python-pyopenssl
python-ndg-httpsclient
python-funcsigs
python-pbr
python-mock
python-urllib3
python-chardet
python-requests
python-snowballstemmer
python-webencodings
python-html5lib
python-sphinx-alabaster-theme
python-sphinxcontrib-applehelp
python-sphinxcontrib-devhelp
python-sphinxcontrib-htmlhelp
python-sphinxcontrib-jsmath
python-sphinxcontrib-moderncmakedomain
python-sphinxcontrib-serializinghtml
python-sphinxcontrib-qthelp
python-sphinx
python-sphinxcontrib-svg2pdfconverter
gtk-doc
gnutls
rtmpdump-git
z3
wineditline
pcre
lua
swig
$( [[ $MSYSTEM == *ARM* ]] || echo "uasm" )
clang
$( true || [[ $MSYSTEM == *ARM* ]] || echo "rust" \
"python-setuptools-rust")
libssp)
for p in "${pkgs[@]}"; do
pushd mingw-w64-$p
time makepkg --config /etc/makepkg_mingw.conf --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild --install -f || break
rm -rf src pkg
popd
done
#!/bin/bash -x
declare -a pkgs
pkgs=(libmangle-git
tools-git
headers-git
crt-git
winpthreads-git
winstorecompat-git
ntldd-git
termcap
libiconv
pkgconf
expat
gettext
bzip2
zlib
xz
lz4
libuv
rhash
zstd
libtre-git
libsystre
ncurses
gmp
nettle
openssl
libarchive
jsoncpp
c-ares
brotli
libunistring
libidn2
libmetalink
libpsl
libssh2
jansson
jemalloc
nghttp2
gnutls
rtmpdump-git
curl
cmake
libffi
mpdecimal
readline
tcl
tk
sqlite3
python
python-six
python-setuptools
python-pyparsing
python-attrs
python-packaging
python-ordered-set
python-appdirs
python-certifi
python-wincertstore
ninja
meson
libtasn1
p11-kit
ca-certificates
libxml2
libgpg-error
libgcrypt
libxslt
itstool
docbook-xml
docbook-xsl
python-pytz
python-babel
python-colorama
python-docutils
python-imagesize
python-markupsafe
python-jinja
python-pygments
python-idna
python-pyasn1
python-ply
python-pycparser
python-cffi
python-asn1crypto
python-toml
python-semantic-version
$( true || [[ $MSYSTEM == *ARM* ]] || echo "python-setuptools-rust" )
python-cryptography
python-pyopenssl
python-ndg-httpsclient
python-funcsigs
python-pbr
python-mock
python-urllib3
python-chardet
python-requests
python-snowballstemmer
python-webencodings
python-html5lib
python-sphinx-alabaster-theme
python-sphinxcontrib-applehelp
python-sphinxcontrib-devhelp
python-sphinxcontrib-htmlhelp
python-sphinxcontrib-jsmath
python-sphinxcontrib-moderncmakedomain
python-sphinxcontrib-serializinghtml
python-sphinxcontrib-qthelp
python-sphinx
python-sphinxcontrib-svg2pdfconverter
gtk-doc
z3
wineditline
pcre
lua
swig
$( [[ $MSYSTEM == *ARM* ]] || echo "uasm" )
clang
$( true || [[ $MSYSTEM == *ARM* ]] || echo "rust" )
libssp)
mkdir -p packages
for p in "${pkgs[@]}"; do
set +x
_build=0
for q; do
if [[ "mingw-w64-$p" == "$q" ]]; then
_build=1
break
fi
done
set -x
(( _build )) || continue
pushd mingw-w64-$p
time makepkg --config /etc/makepkg_mingw.conf --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild --install -f || break
mv *.pkg.tar.* ../packages
rm -rf src pkg
popd
done
#!/bin/bash -x
declare -a pkgs
pkgs=(libmangle-git
tools-git
headers-git
crt-git
winpthreads-git
winstorecompat-git
ntldd-git
termcap
libiconv
pkgconf
expat
gettext
bzip2
zlib
xz
lz4
libuv
rhash
zstd
libtre-git
libsystre
ncurses
gmp
nettle
openssl
libarchive
jsoncpp
c-ares
brotli
libunistring
libidn2
libmetalink
libpsl
libssh2
jansson
jemalloc
nghttp2
gnutls
rtmpdump-git
curl
cmake
libffi
mpdecimal
readline
tcl
tk
sqlite3
python
python-six
python-setuptools
python-pyparsing
python-attrs
python-packaging
python-ordered-set
python-appdirs
python-certifi
python-wincertstore
ninja
meson
libtasn1
p11-kit
ca-certificates
libxml2
libgpg-error
libgcrypt
libxslt
itstool
docbook-xml
docbook-xsl
python-pytz
python-babel
python-colorama
python-docutils
python-imagesize
python-markupsafe
python-jinja
python-pygments
python-idna
python-pyasn1
python-ply
python-pycparser
python-cffi
python-asn1crypto
python-toml
python-semantic-version
$( true || [[ $MSYSTEM == *ARM* ]] || echo "python-setuptools-rust" )
python-cryptography
python-pyopenssl
python-ndg-httpsclient
python-funcsigs
python-pbr
python-mock
python-urllib3
python-chardet
python-requests
python-snowballstemmer
python-webencodings
python-html5lib
python-sphinx-alabaster-theme
python-sphinxcontrib-applehelp
python-sphinxcontrib-devhelp
python-sphinxcontrib-htmlhelp
python-sphinxcontrib-jsmath
python-sphinxcontrib-moderncmakedomain
python-sphinxcontrib-serializinghtml
python-sphinxcontrib-qthelp
python-sphinx
python-sphinxcontrib-svg2pdfconverter
gtk-doc
z3
wineditline
pcre
lua
swig
$( [[ $MSYSTEM == *ARM* ]] || echo "uasm" )
clang
$( true || [[ $MSYSTEM == *ARM* ]] || echo "rust" )
libssp)
for p in "${pkgs[@]}"; do
set +x
_build=0
for q; do
if [[ "mingw-w64-$p" == "$q" ]]; then
_build=1
break
fi
done
set -x
(( _build )) || continue
pushd mingw-w64-$p
time makepkg --config /etc/makepkg_mingw.conf --noconfirm --noprogressbar --allsource -f || break
rm -rf src pkg
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment