This commit is contained in:
parent
b010027549
commit
d61c836ada
2 changed files with 54 additions and 0 deletions
15
.woodpecker/build.yml
Normal file
15
.woodpecker/build.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: "PKGBUILD"
|
||||
image: git.hydrar.de/jmarya/pacco:latest
|
||||
commands:
|
||||
- pacco build --ci --push navos
|
||||
environment:
|
||||
PACCO_HOST: "https://pac.hydrar.de"
|
||||
PACCO_TOKEN:
|
||||
from_secret: pacco_token
|
||||
SIGN_KEY:
|
||||
from_secret: navos_key
|
39
PKGBUILD
Normal file
39
PKGBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
pkgbase=sheep
|
||||
pkgname=('sheepd' 'sheepctl')
|
||||
pkgver=2025.05.05_b010027
|
||||
pkgrel=1
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://git.hydrar.de/navos/sheepd"
|
||||
license=('MIT')
|
||||
makedepends=('rustup')
|
||||
source=("repo::git+https://git.hydrar.de/navos/sheepd.git")
|
||||
sha256sums=("SKIP")
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/repo"
|
||||
echo "$(date +%Y.%m.%d)_$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/repo"
|
||||
rustup default nightly
|
||||
cargo fetch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/repo"
|
||||
cargo build --release --bin sheepd
|
||||
cargo build --release --bin sheepctl
|
||||
}
|
||||
|
||||
package_sheepd() {
|
||||
pkgdesc="sheep daemon"
|
||||
cd "$srcdir/repo"
|
||||
install -Dm755 "target/release/sheepd" "$pkgdir/usr/bin/sheepd"
|
||||
}
|
||||
|
||||
package_sheepctl() {
|
||||
pkgdesc="CLI for controling your herd"
|
||||
cd "$srcdir/repo"
|
||||
install -Dm755 "target/release/sheepctl" "$pkgdir/usr/bin/sheepctl"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue