Skip to content

Commit

Permalink
make-apk.sh: alpine packaging helper
Browse files Browse the repository at this point in the history
Signed-off-by: John Coyle <[email protected]>
  • Loading branch information
dx9 committed Dec 21, 2016
1 parent 84eb9b8 commit 86be590
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions make-apk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
#
# Make Alpine Packages
#

set -xe

#
# make a distribution
#
./make-dist
mv -f *.tar.bz2 ./alpine

#
# alpine packaging key stuff
#
rm -rf .abuild && mkdir -p .abuild
ABUILD_USERDIR=$(pwd)/.abuild abuild-keygen -n -a
source .abuild/abuild.conf

#
# package it
#
cd alpine
abuild checksum && JOBS=$(expr $(nproc) / 2) SRCDEST=$(pwd) REPODEST=$(pwd) PACKAGER_PRIVKEY=$PACKAGER_PRIVKEY abuild -r
cd ..

0 comments on commit 86be590

Please sign in to comment.