-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
cd linux | ||
|
||
# Create user "docker" because makepkg refuses to run as root. | ||
id docker || (echo creating user docker; useradd docker) | ||
chown -R docker:docker . | ||
|
||
# Reset PKGEXT to it's default (it's different in the build-container) | ||
PKGEXT=".pkg.tar.xz" su docker -c makepkg | ||
# Set PKGDEST to a location where user "docker" can write. | ||
export PKGDEST="." | ||
# Reset PKGEXT to it's default (it's different in the build-container). | ||
export PKGEXT=".pkg.tar.xz" | ||
|
||
ls -lah | ||
# Build package. | ||
su docker -c makepkg | ||
|
||
# Check result and prepare for uploading. | ||
ls -lah | ||
pkgname=$(ls *.pkg.tar*) | ||
mv $pkgname ../$pkgname | ||
echo ::set-output name=filename::$pkgname | ||
echo ::set-output name=filename::$pkgname |