Split package and add dependencies

This commit is contained in:
2025-11-10 17:51:02 +02:00
parent 5d307547ac
commit 3f8533c1e9
2 changed files with 38 additions and 6 deletions
+20 -3
View File
@@ -1,12 +1,13 @@
name: podman
description: A tool for managing OCI containers and pods
version: 5.6.2
revision: 1
revision: 2
url: https://podman.io/
license: Apache-2.0
architecture: x86_64
type: source
depends:
- catatonit
- conmon
- containers-common
- containers-image
@@ -14,17 +15,33 @@ depends:
- gcc-libs
- glibc
- gpgme
- iptables
- libseccomp
- runc
- man-db
- netavark
- oci-runtime
- passt
- shadow
- sqlite
make_depends:
- btrfs-progs
- golang
- go-md2man
- man-db
- udev
downloads:
- url: https://github.com/containers/podman/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: c6de8f347ee93e4626d7c82e3adcb1b34e64175b5ca9959e790e52a0b4bbf2a1
split_packages:
- name: podman
optional_depends:
- btrfs-progs
- name: podman-docker
description: Docker CLI command compatibility for podman
depends:
- podman
conflicts:
- docker
provides:
- docker
+18 -3
View File
@@ -5,13 +5,21 @@
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
make BUILDTAGS="seccomp" PREFIX=/usr
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie"
export GOPATH="$BPM_WORKDIR"
make EXTRA_LDFLAGS='-compressdwarf=false -linkmode=external' PREFIX=/usr
make docker-docs
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
package_podman() {
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install install.completions
# Remove systemd services
rm -r "$BPM_OUTPUT"/usr/lib/systemd
@@ -22,3 +30,10 @@ package() {
# Install package license
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/podman/LICENSE
}
package_podman-docker() {
make -j1 PREFIX=/usr DESTDIR="$BPM_OUTPUT" install.docker-full
# Remove systemd services
rm -r $BPM_OUTPUT/usr/lib/systemd
}