aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/build.sh b/build.sh
index 801b05a..c552688 100755
--- a/build.sh
+++ b/build.sh
@@ -2,24 +2,24 @@
set -e
dir="$PWD"
-outdir=/srv/http/qutebrowser/qt-debug
+outdir=/srv/http/qutebrowser/qt-debug/x86_64
-export DEBUG_CFLAGS='-ggdb3 -fvar-tracking-assignments -Og'
-export DEBUG_CXXFLAGS='-ggdb3 -fvar-tracking-assignments -Og'
-export PKGEXT='.pkg.tar.xz'
-export BUILDENV=(!distcc color ccache check sign)
-export GPGKEY="0xE80A0C82"
+if [[ $1 == repackage ]]; then
+ makepkg_opts=('-siR' '--config' "$dir/makepkg.conf")
+else
+ makepkg_opts=('-si' '--config' "$dir/makepkg.conf")
+fi
cd "$dir/qt5"
rm *.pkg.tar* || true
rm -r src/python2-path || true
-makepkg -si
-cp *.pkg.tar.xz "$outdir"
+makepkg "${makepkg_opts[@]}"
+mv *.pkg.tar.xz* "$outdir"
cd "$dir/pyqt5"
rm *.pkg.tar* || true
-makepkg -si
-cp *.pkg.tar.xz "$outdir"
+makepkg "${makepkg_opts[@]}"
+mv *.pkg.tar.xz* "$outdir"
repo-add "$outdir/qt-debug.db.tar.gz" "$outdir"/*.pkg.tar.xz