Files
unitdore/pkg/arch/PKGBUILD
Hein e6ef6e11d6
All checks were successful
Release / test (push) Successful in -33m2s
Release / release (push) Successful in -32m47s
Release / pkg-aur (push) Successful in -33m46s
Release / pkg-deb (push) Successful in -33m19s
Release / pkg-rpm (push) Successful in -32m33s
chore(release): update package version to 0.0.9
2026-04-12 11:08:47 +02:00

44 lines
990 B
Bash

# Maintainer: Hein (Warky Devs) <hein@warky.dev>
pkgname=unitdore
pkgver=0.0.9
pkgrel=1
pkgdesc="A door you open and close for container units — manage containers via systemd"
arch=('x86_64' 'aarch64')
url="https://git.warky.dev/wdevs/unitdore"
license=('MIT')
depends=('systemd')
optdepends=(
'podman: Podman container runtime support'
'docker: Docker container runtime support'
)
makedepends=('go')
source=("$pkgname-$pkgver.zip::$url/archive/v$pkgver.zip")
sha256sums=('SKIP')
build() {
cd "$pkgname"
export CGO_ENABLED=0
go build \
-trimpath \
-ldflags "-X github.com/warkanum/unitdore/cmd.version=$pkgver" \
-o "$pkgname" .
}
check() {
cd "$pkgname"
go test ./...
}
package() {
cd "$pkgname"
# Binary
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
# Man page
install -Dm644 docs/unitdore.1 "$pkgdir/usr/share/man/man1/unitdore.1"
# Default config dir
install -dm755 "$pkgdir/etc/unitdore"
}