Add packaging/arch PKGBUILD and Forgejo Actions workflows
- packaging/arch/PKGBUILD: builds and publishes breadpad to [breadway] repo - .forgejo/workflows/mirror.yml: mirrors every push/tag to GitHub - .forgejo/workflows/package.yml: builds on tag, publishes to Forgejo registry Requires FORGEJO_TOKEN and GITHUB_MIRROR_TOKEN secrets in Forgejo.
This commit is contained in:
parent
596ae90455
commit
659e3da5ed
3 changed files with 100 additions and 0 deletions
34
packaging/arch/PKGBUILD
Normal file
34
packaging/arch/PKGBUILD
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: Breadway <rileyhorsham@gmail.com>
|
||||
|
||||
pkgname=breadpad
|
||||
pkgver=0.3.1
|
||||
pkgrel=1
|
||||
pkgdesc="Quick-capture scratchpad and note viewer with AI classification"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/Breadway/breadpad"
|
||||
license=('MIT')
|
||||
depends=('gtk4' 'gtk4-layer-shell')
|
||||
optdepends=(
|
||||
'ollama: local AI note classification'
|
||||
'hyprland: scratchpad window integration'
|
||||
)
|
||||
makedepends=('rust' 'cargo')
|
||||
source=("${pkgname}-${pkgver}.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cargo build --release --locked
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cargo test --release --locked --workspace
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
install -Dm755 target/release/breadpad "${pkgdir}/usr/bin/breadpad"
|
||||
install -Dm755 target/release/breadman "${pkgdir}/usr/bin/breadman"
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue