Skip to content

Instantly share code, notes, and snippets.

@halmartin
Created March 27, 2026 11:06
Show Gist options
  • Select an option

  • Save halmartin/3fb4c5d409221337651ea580bc2247fa to your computer and use it in GitHub Desktop.

Select an option

Save halmartin/3fb4c5d409221337651ea580bc2247fa to your computer and use it in GitHub Desktop.
podman-compose-git PKGBUILD
pkgname=podman-compose-git
pkgver=1.5.0
pkgrel=3
epoch=1
pkgdesc="A script to run docker-compose.yml using podman"
arch=('any')
url="https://github.com/containers/podman-compose"
license=('GPL2')
depends=(
podman
python
python-dotenv
python-yaml
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-pytest
python-parameterized
)
optdepends=('podman-dnsname: the containers will be able to resolve each other if they are on the same CNI network')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/containers/podman-compose")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
# Alt. way of getting version number:
printf "$(python -c 'from podman_compose import __version__; print(__version__)')"
}
build() {
cd "${srcdir}/${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
find examples -type f -exec install -vDm 644 {} "$pkgdir/usr/share/doc/$pkgname/"{} \;
install -vDm 644 {README.md,docs/*} -t "$pkgdir/usr/share/doc/$pkgname/"
}
# vim: set et ts=2 sw=2:
@halmartin
Copy link
Copy Markdown
Author

Extremely hacked PKGBUILD to install latest podman-compose from git.

Original podman-compose-git seems unmaintained.

This is offered with no warranty or support, YMMV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment