summarylogtreecommitdiffstats
path: root/build-packages.sh
diff options
context:
space:
mode:
authorEli Schwartz2018-10-16 03:14:38 -0400
committerEli Schwartz2018-10-16 03:14:38 -0400
commitb40dcb4e13bbd2f37535ce3ad772c89e81d3e8f3 (patch)
treee7a3e807f2e44b89c1b10e40bda11dbf482b76eb /build-packages.sh
parent737b4508196dbb898059003e4d2cf605edc44083 (diff)
downloadaur-b40dcb4e13bbd2f37535ce3ad772c89e81d3e8f3.tar.gz
upgpkg: pacman-static 5.1.1-5
update static deps add release script to build binary repos
Diffstat (limited to 'build-packages.sh')
-rwxr-xr-xbuild-packages.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/build-packages.sh b/build-packages.sh
new file mode 100755
index 000000000000..b1eb05a2dbc4
--- /dev/null
+++ b/build-packages.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# requires devtools, devtools32 (for extra-i686-build)
+# if debug variants of extra-* exist, use them (I have a custom script for this)
+
+rm -rf artifacts/
+
+for buildarch in x86_64 i686; do
+ extradir=artifacts/${buildarch}-extracted
+
+ if command -v debug-${buildarch}-build; then
+ debug-${buildarch}-build
+ else
+ extra-${buildarch}-build
+ fi
+
+ CARCH=${buildarch} makepkg --packagelist | while read -r pkgfile; do
+ if bsdtar -tf "${pkgfile}" usr/bin/pacman-static > /dev/null 2>&1; then
+ mkdir -p ${extradir}
+ bsdtar --strip-components 2 -C ${extradir} -xf "${pkgfile}" usr/bin/pacman-static
+ break
+ fi
+ done
+
+ xz -ke ${extradir}/pacman-static
+ gpg --detach-sign ${extradir}/pacman-static
+ gpg --detach-sign ${extradir}/pacman-static.xz
+done