mirror of
https://github.com/haileys/bark
synced 2025-03-16 22:57:00 +00:00
add arch pkgbuild
This commit is contained in:
parent
8ee86b901a
commit
b18bf28f36
2 changed files with 40 additions and 0 deletions
3
pkg/arch/.gitignore
vendored
Normal file
3
pkg/arch/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
pkg
|
||||
src
|
||||
*.tar.zst
|
37
pkg/arch/PKGBUILD
Normal file
37
pkg/arch/PKGBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: Hailey Somerville <bark@hails.org>
|
||||
pkgname=bark-git
|
||||
pkgdesc="Synchronised multicast audio streaming"
|
||||
license=("AGPL3")
|
||||
url="https://github.com/haileys/bark"
|
||||
pkgver=r115.g0a555d4
|
||||
pkgrel=1
|
||||
|
||||
pkgver() {
|
||||
local number="$(git -C "$srcdir" rev-list --count HEAD)"
|
||||
local commit="$(git -C "$srcdir" rev-parse --short=7 HEAD)"
|
||||
echo "r${number}.g${commit}"
|
||||
}
|
||||
|
||||
depends=(
|
||||
"alsa-lib"
|
||||
"gcc-libs"
|
||||
"opus"
|
||||
"speexdsp"
|
||||
)
|
||||
makedepends=("cargo")
|
||||
arch=("x86_64")
|
||||
|
||||
prepare() {
|
||||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||
}
|
||||
|
||||
build() {
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
export CARGO_TARGET_DIR=target
|
||||
export BARK_PKG_VERSION="$(pkgver)"
|
||||
cargo build --frozen --release
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm0755 -t "$pkgdir/usr/bin/" "$srcdir/target/release/bark"
|
||||
}
|
Loading…
Add table
Reference in a new issue