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
+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
}