Created
June 23, 2019 11:37
-
-
Save hadrianw/6de4205e53e020068925c38af97cb491 to your computer and use it in GitHub Desktop.
Build check for xbps packages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
set -e | |
pkg="$1" | |
repo="$2" | |
function __BUILD__() { | |
local pkg="$1" | |
local arch="$2" | |
shift 2 | |
git clean -fdx -e /hostdir | |
case "$arch" in | |
i686) bootstrap=i686;; | |
*-musl) bootstrap=x86_64-musl;; | |
*) bootstrap=x86_64;; | |
esac | |
./xbps-src binary-bootstrap "$bootstrap" | |
./xbps-src -j4 "$@" pkg "$pkg" | |
} | |
wget -N "https://alpha.de.repo.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz" | |
mkdir -p xbps | |
tar xf xbps-static-latest.x86_64-musl.tar.xz -C xbps | |
export PATH="$PWD/xbps/usr/bin:$PATH" | |
(cd void-packages && git pull origin master) || | |
git clone "$repo" | |
cd void-packages | |
for arch in x86_64 x86_64-musl i686; do | |
(__BUILD__ "$pkg" "$arch") || failed="$failed $arch" | |
done | |
for arch in aarch64 armv7l armv6l-musl aarch64-musl; do | |
(source "common/cross-profiles/$arch.sh" && | |
__BUILD__ "$pkg" "$arch" -a "$arch") || failed="$failed $arch" | |
done | |
echo Failed:$failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment