summaryrefslogtreecommitdiff
path: root/build_stage1_package.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-04 09:37:37 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-04 09:37:37 +0100
commit043b28ac8ebcaedac5d39bdf7f1f366b7818a666 (patch)
tree4f7784dc6b5530bbb7623d0ca2ddb4c71beb3c40 /build_stage1_package.sh
parent7be0daa504d7c43e20dc5583350417bff8d0f474 (diff)
downloadbootstrap32-043b28ac8ebcaedac5d39bdf7f1f366b7818a666.tar.xz
reorganized directory structure for package description, patches and other files
Diffstat (limited to 'build_stage1_package.sh')
-rwxr-xr-xbuild_stage1_package.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/build_stage1_package.sh b/build_stage1_package.sh
index 1b9465e..06ecfcd 100755
--- a/build_stage1_package.sh
+++ b/build_stage1_package.sh
@@ -17,7 +17,7 @@ export PATH="$XTOOLS_ARCH/bin:${PATH}"
# draw in default values for build variables
-. "$SCRIPT_DIR/packages-$TARGET_CPU-stage1/template"
+. "$SCRIPT_DIR/$TARGET_CPU-stage1/template/DESCR"
if test $(pacman --config "$STAGE1_CHROOT/etc/pacman.conf" -r "$STAGE1_CHROOT" -Q | cut -f 1 -d ' ' | grep -c "^${PACKAGE}$") = 0; then
echo "Building package $PACKAGE."
@@ -32,7 +32,8 @@ if test $(pacman --config "$STAGE1_CHROOT/etc/pacman.conf" -r "$STAGE1_CHROOT" -
# check out the package build information from the upstream git rep
# using asp (or from the AUR using yaourt)
- PACKAGE_CONF="$SCRIPT_DIR/packages-$TARGET_CPU-stage1/$PACKAGE"
+ PACKAGE_DIR="$SCRIPT_DIR/$TARGET_CPU-stage1/$PACKAGE"
+ PACKAGE_CONF="$PACKAGE_DIR/DESCR"
if test -f $PACKAGE_CONF; then
if test $(grep -c NEEDS_YAOURT $PACKAGE_CONF) = 1; then
NEEDS_YAOURT=$(grep NEEDS_YAOURT $PACKAGE_CONF | cut -f 2 -d =)
@@ -63,10 +64,9 @@ if test $(pacman --config "$STAGE1_CHROOT/etc/pacman.conf" -r "$STAGE1_CHROOT" -
. "$PACKAGE_CONF"
fi
- # copy bigger patches into the build area
- if test $(find $SCRIPT_DIR/patches-$TARGET_CPU-stage1/$PACKAGE-*.patch 2>/dev/null | wc -l) != 0; then
- cp $SCRIPT_DIR/patches-$TARGET_CPU-stage1/$PACKAGE-*.patch .
- fi
+ # copy all files into the build area (but the package DESCR file)
+ cp $PACKAGE_DIR/* .
+ rm -f DESCR
# disable or enable parallel builds