blob: c678f34c60cf2bdbb74654b3c075ef5d1494236f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env zsh
set -e
# This script exists to be able to build repositories, from scratch, without having any existing packages prebuild in the target directory.
# It only works with rootbld.
# See Also: https://gitlab.alpinelinux.org/alpine/lua-aports/-/blob/master/buildrepo.1.scd
# (will likely replace this script in future)
ALL_TARGET="$PWD/target"
rm -rf "$ALL_TARGET"
mkdir "$ALL_TARGET"
source env
buildpkg() {
(cd src/"$1" && abuild -P "$ALL_TARGET" rootbld)
}
# pkgs with dependents
buildpkg util/gcompat-libdl2
# build the rest
"$PWD/build-repo"
|