Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whynothugo/docker-makepkg
A Docker image that builds a PKGBUILD.
https://github.com/whynothugo/docker-makepkg
archlinux build docker makepkg packaging pacman
Last synced: 4 months ago
JSON representation
A Docker image that builds a PKGBUILD.
- Host: GitHub
- URL: https://github.com/whynothugo/docker-makepkg
- Owner: WhyNotHugo
- License: isc
- Created: 2017-09-14T19:11:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T15:31:36.000Z (almost 2 years ago)
- Last Synced: 2023-04-09T13:26:27.458Z (almost 2 years ago)
- Topics: archlinux, build, docker, makepkg, packaging, pacman
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/whynothugo/makepkg/
- Size: 171 KB
- Stars: 41
- Watchers: 4
- Forks: 23
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-makepkg
==============[![build status](https://github.com/WhyNotHugo/docker-makepkg/actions/workflows/build.yaml/badge.svg)](https://github.com/WhyNotHugo/docker-makepkg/actions/workflows/build.yaml)
This docker image is intended to tests `PKGBUILDs`, by installing dependencies
and running `makepkg -f` in a clean Arch installation. It is intended to be
used by packagers, both via CI, and on non-ArchLinux environments.The package can be saved to the current director by adding `-e EXPORT_PKG=1`,
and the updated `.SRCINFO` file for the built package with `-e EXPORT_SRC=1`.Usage locally
-------------```sh
docker run -v $PWD:/pkg -e SYNC_DATABASE=1 whynothugo/makepkg
```Or export the built package file to the working directory
```sh
docker run -e EXPORT_PKG=1 -v $PWD:/pkg whynothugo/makepkg
```Or export the updated `.SRCINFO` for the package
```sh
docker run -e EXPORT_SRC=1 -v $PWD:/pkg whynothugo/makepkg
```If you are running Arch, you can share the mirror list from your host by adding
`-v /etc/pacman.d/mirrorlist:/etc/pacman.d/mirrorlist:ro`.Usage with travis
-----------------Generally, this should be enough:
```yaml
sudo: requiredservices:
- dockerscript:
- docker run -v $TRAVIS_BUILD_DIR:/pkg whynothugo/makepkg
```Usage with GitLab CI
--------------------Since GitLab CI uses Docker, it should be trivial to use these images there
too.Extra details
-------------* `base-devel` is pre-installed.
* All `depends` will be installed (including AUR packages using
[paru](https://github.com/Morganamilo/paru)).
* You may pass `SYNC_DATABASE=1` to force a `pacman -Sy` to refresh the
database, since it updates quite frequently.
* GPG keys used to verify signatures are auto-fetched.Licence
-------This repository is licensed under the ISC licence. See LICENCE for details.