From 8a7e991c5fd0cd40757ec8e6e3ef1734053c33ea Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 26 Apr 2026 16:39:48 +1000 Subject: [PATCH] feat: add starship rpm --- rpms/starship/metadata.yaml | 20 ++++++++++++++++++++ rpms/starship/resources/build.sh | 10 ++++++++++ rpms/starship/resources/nfpm.yaml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 rpms/starship/metadata.yaml create mode 100755 rpms/starship/resources/build.sh create mode 100644 rpms/starship/resources/nfpm.yaml diff --git a/rpms/starship/metadata.yaml b/rpms/starship/metadata.yaml new file mode 100644 index 0000000..54590d1 --- /dev/null +++ b/rpms/starship/metadata.yaml @@ -0,0 +1,20 @@ +--- +name: starship +github: starship/starship +description: The minimal, blazing-fast, and infinitely customizable prompt for any shell. +arch: amd64 +platform: linux +maintainer: starship +homepage: https://starship.rs +license: ISC +builds: +- repository: + - almalinux/el8 + image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest + release: 1 + version: 1.25.0 +- repository: + - almalinux/el9 + image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest + release: 1 + version: 1.25.0 diff --git a/rpms/starship/resources/build.sh b/rpms/starship/resources/build.sh new file mode 100755 index 0000000..e2f6481 --- /dev/null +++ b/rpms/starship/resources/build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/bash + +set -e + +wget -O /app/starship-x86_64-unknown-linux-musl.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/starship/starship/releases/download/v${PACKAGE_VERSION}/starship-x86_64-unknown-linux-musl.tar.gz +tar xf /app/starship-x86_64-unknown-linux-musl.tar.gz + +envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml + +nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm diff --git a/rpms/starship/resources/nfpm.yaml b/rpms/starship/resources/nfpm.yaml new file mode 100644 index 0000000..d71b394 --- /dev/null +++ b/rpms/starship/resources/nfpm.yaml @@ -0,0 +1,30 @@ +# nfpm.yaml + +name: ${PACKAGE_NAME} +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: ${PACKAGE_ARCH} +platform: ${PACKAGE_PLATFORM} +section: default +priority: extra +description: "${PACKAGE_DESCRIPTION}" + +maintainer: ${PACKAGE_MAINTAINER} +homepage: ${PACKAGE_HOMEPAGE} +license: ${PACKAGE_LICENSE} + +disable_globbing: false + +replaces: + - starship + +provides: + - starship + +contents: + - src: /app/starship + dst: /usr/bin/starship + file_info: + mode: 0755 + owner: root + group: root