3 Commits

Author SHA1 Message Date
Dreaded_X 790f98a989 chore(actions): Publish Arch Linux package
CI / cargo shear (pull_request) Successful in 5m18s
CI / prek (pull_request) Successful in 5m24s
2026-04-05 19:51:42 +02:00
Dreaded_X 417145188c feat(package): Added PKGBUILD 2026-04-05 19:42:01 +02:00
Dreaded_X 2abee257e3 chore(license): Add GPL license 2026-04-05 19:41:57 +02:00
3 changed files with 8 additions and 11 deletions
+3 -1
View File
@@ -3,7 +3,7 @@ name: Release
on: on:
push: push:
tags: tags:
- "v*" - "*"
jobs: jobs:
archlinux: archlinux:
@@ -12,3 +12,5 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: heyhusen/archlinux-package-action@v3 - uses: heyhusen/archlinux-package-action@v3
with:
pkgver: ${{ gitea.ref_name }}
-1
View File
@@ -4,7 +4,6 @@ version = "0.1.0"
edition = "2024" edition = "2024"
default-run = "crete" default-run = "crete"
publish = ["infra"] publish = ["infra"]
license = "GPL-3.0-or-later"
[workspace] [workspace]
members = ["xtask"] members = ["xtask"]
+5 -9
View File
@@ -4,16 +4,12 @@ pkgver=0.0.0
pkgrel=1 pkgrel=1
pkgdesc='A tool that takes node and cluster configs and uses it to generate talos configs and render jinja templates' pkgdesc='A tool that takes node and cluster configs and uses it to generate talos configs and render jinja templates'
url='https://git.huizinga.dev/infra/crete' url='https://git.huizinga.dev/infra/crete'
license=('GPL-3.0-or-later') license=('GPL')
makedepends=('cargo-nightly') makedepends=('cargo-nightly')
depends=() depends=()
arch=('i686' 'x86_64' 'armv6h' 'armv7h') arch=('i686' 'x86_64' 'armv6h' 'armv7h')
source=('LICENSE') source=()
sha256sums=('4bffc7da729013886ae68623c0d6145201b20a495879b589990953b2a27e1fbd') b2sums=()
pkgver() {
cargo info $pkgname | grep -Po '^version: \K[\d\.]+'
}
prepare() { prepare() {
export RUSTUP_TOOLCHAIN=nightly export RUSTUP_TOOLCHAIN=nightly
@@ -28,7 +24,7 @@ build() {
} }
package() { package() {
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" "LICENSE" install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions" "_$pkgname" install -Dm0755 -t "$pkgdir/usr/share/zsh/site-functions" "_$pkgname"
} }