diff options
author | Sergey A. | 2024-02-06 01:37:00 +0300 |
---|---|---|
committer | Sergey A. | 2024-02-06 01:37:00 +0300 |
commit | 75e629f5b8a043b283a386c6e61b1032e5d29765 (patch) | |
tree | eca20d5d6f114ff41a6dcfc83a50779d6d015cf4 | |
download | aur-75e629f5b8a043b283a386c6e61b1032e5d29765.tar.gz |
0.10.0
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4c6c08f10021 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = xiu + pkgdesc = Simple, fast and secure live media server in pure Rust + pkgver = 0.10.0 + pkgrel = 1 + url = https://github.com/harlanc/xiu + arch = x86_64 + arch = aarch64 + license = MIT + makedepends = cargo + depends = gcc-libs + conflicts = xiu-bin + conflicts = xiu-git + source = xiu-0.10.0.tar.gz::https://github.com/harlanc/xiu/archive/v0.10.0.tar.gz + sha256sums = c4275c01ceb8b31be1be7cbd9ab848101669a425929f083a91101497621c5134 + +pkgname = xiu diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7edd1cb521a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintaner: Sergey A. <murlakatamenka@disroot.org> + +pkgname=xiu +pkgver=0.10.0 +pkgrel=1 +pkgdesc='Simple, fast and secure live media server in pure Rust' +arch=('x86_64' 'aarch64') +url='https://github.com/harlanc/xiu' +license=('MIT') +depends=('gcc-libs') +makedepends=('cargo') +conflicts=("${pkgname}-bin" "${pkgname}-git") +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('c4275c01ceb8b31be1be7cbd9ab848101669a425929f083a91101497621c5134') + + +prepare() { + cd "$pkgname-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + + cargo build --release --frozen +} + +check() { + cd "$pkgname-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + + cargo test --frozen --all-features +} + +package() { + cd "$pkgname-$pkgver" + + install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin/" + + install -Dm 644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 "README_CN.md" -t "$pkgdir/usr/share/doc/$pkgname" + + install -Dm 644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" +} |