Inicio
This commit is contained in:
commit
454b329c1d
3 changed files with 48 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
aports/
|
4
packages
Normal file
4
packages
Normal file
|
@ -0,0 +1,4 @@
|
|||
community/mako
|
||||
community/iwd
|
||||
community/foot
|
||||
testing/kakoune
|
43
thing.sh
Executable file
43
thing.sh
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh -e
|
||||
branch=3.15-stable
|
||||
if test ! -d aports; then
|
||||
git clone https://gitlab.alpinelinux.org/alpine/aports
|
||||
fi
|
||||
|
||||
cd aports
|
||||
aports_dir="$(pwd)"
|
||||
|
||||
git checkout --force "$branch"
|
||||
git reset --hard "$branch"
|
||||
git fetch
|
||||
|
||||
for package in $(cat ../packages); do
|
||||
cd "$aports_dir"
|
||||
|
||||
echo "[$0] [$package] Checking changes"
|
||||
if git diff --stat "origin/$branch" "$package" | grep -F "$package"; then
|
||||
echo "[$0] [$package] Detected changes, building..."
|
||||
else
|
||||
echo "[$0] [$package] No changes."
|
||||
. "$package/APKBUILD"
|
||||
repo=${package%/*}
|
||||
package_file="$HOME/packages/$repo/$(uname -m)/$pkgname-dbg-$pkgver-r$pkgrel.apk"
|
||||
if test -f "$package_file"; then
|
||||
echo "[$0] [$package] Package already built, skipping..."
|
||||
continue
|
||||
else
|
||||
echo "[$0] [$package] Package not built yet, building..."
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "[$0] [$package] Patching APKBUILD to add $package-dbg..."
|
||||
sed -i 's/subpackages="/subpackages="$pkgname-dbg /' "$package/APKBUILD"
|
||||
|
||||
echo "[$0] [$package] Building..."
|
||||
cd "$aports_dir/$package"
|
||||
if ! abuild rootbld; then
|
||||
echo "[$0] [$package] !! FAILED TO BUILD !!"
|
||||
fi
|
||||
done
|
||||
|
||||
git merge "origin/$branch"
|
Loading…
Reference in a new issue