Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build_stage4_package.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-03-25 20:27:32 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-03-25 20:27:32 +0200
commit970e772bc7516a165f72d37f60dabd7c3a13a232 (patch)
tree3718b8484c7df108d5e9f3753ab34c52e2217dfb /build_stage4_package.sh
parent76c4f1be65af6a459f23509276b4bf818a9bfd37 (diff)
building up to guile
playing with systemd/initrd boot for 64MB 486 (somewhat unstable ATM)
Diffstat (limited to 'build_stage4_package.sh')
-rwxr-xr-xbuild_stage4_package.sh40
1 files changed, 24 insertions, 16 deletions
diff --git a/build_stage4_package.sh b/build_stage4_package.sh
index b021e41..ed1926f 100755
--- a/build_stage4_package.sh
+++ b/build_stage4_package.sh
@@ -16,8 +16,8 @@ PACKAGE=$1
. "$SCRIPT_DIR/$TARGET_CPU-stage4/template/DESCR"
-#~ if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l)" = 0; then
- #~ echo "Building package $PACKAGE."
+if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l)" = 0; then
+ echo "Building package $PACKAGE."
cd $STAGE4_BUILD || exit 1
@@ -45,8 +45,12 @@ PACKAGE=$1
yaourt -G "$PACKAGE"
;;
"packages32")
- # (we assume, we only take core packages)
- cp -a "$ARCHLINUX32_PACKAGES/core/$PACKAGE" .
+ if test -d "$ARCHLINUX32_PACKAGES/extra/$PACKAGE"; then
+ cp -a "$ARCHLINUX32_PACKAGES/extra/$PACKAGE" .
+ fi
+ if test -d "$ARCHLINUX32_PACKAGES/core/$PACKAGE"; then
+ cp -a "$ARCHLINUX32_PACKAGES/core/$PACKAGE" .
+ fi
;;
*)
echo "ERROR: unknown FETCH_METHOD '$FETCH_METHOD'.." >&2
@@ -60,17 +64,21 @@ PACKAGE=$1
# if there is a packages32 diff-PKGBUILD, attach it at the end
# (we assume, we build only 'core' packages during stage1)
- DIFF_PKGBUILD="$ARCHLINUX32_PACKAGES/core/$PACKAGE/PKGBUILD"
- if test -f "$DIFF_PKGBUILD"; then
- cat "$DIFF_PKGBUILD" >> PKGBUILD
- fi
+ for repo in core extra community; do
+ DIFF_PKGBUILD="$ARCHLINUX32_PACKAGES/$repo/$PACKAGE/PKGBUILD"
+ if test -f "$DIFF_PKGBUILD"; then
+ cat "$DIFF_PKGBUILD" >> PKGBUILD
+ fi
+ done
# copy all other files from Archlinux32, if they exist
- # (we assume, we only take core packages during stage1)
- if test -f "$DIFF_PKGBUILD"; then
- find "$ARCHLINUX32_PACKAGES/core/$PACKAGE"/* ! -name PKGBUILD \
- -exec cp {} . \;
- fi
+ for repo in core extra community; do
+ DIFF_PKGBUILD="$ARCHLINUX32_PACKAGES/$repo/$PACKAGE/PKGBUILD"
+ if test -f "$DIFF_PKGBUILD"; then
+ find "$ARCHLINUX32_PACKAGES/$repo/$PACKAGE"/* ! -name PKGBUILD \
+ -exec cp {} . \;
+ fi
+ done
# source package descriptions, sets variables for this script
# and executes whatever is needed to build the package
@@ -180,6 +188,6 @@ PACKAGE=$1
cd $STAGE4_BUILD || exit 1
-#~ else
- #~ echo "$PACKAGE exists."
-#~ fi
+else
+ echo "$PACKAGE exists."
+fi