Initial upload: rvpk 1.1.0-1

This commit is contained in:
2022-02-28 17:06:06 +01:00
parent bcd2b5dd00
commit 363a4ddd3b
2 changed files with 55 additions and 0 deletions

14
rvpk/.SRCINFO Normal file
View File

@@ -0,0 +1,14 @@
pkgbase = rvpk
pkgdesc = Extract Valve VPK (V1 & V2) archives (and create V1 archives)
pkgver = 1.1.0
pkgrel = 1
url = https://github.com/panzi/rust-vpk
arch = x86_64
license = GPL
makedepends = cargo
depends = gcc-libs
depends = fuse2
source = https://github.com/panzi/rust-vpk/archive/refs/tags/v1.1.0.tar.gz
b2sums = 2f62758e7a702044b14a4be121c284e9ad1911195c8b20ceb08285cb56271a1d42bf7f907c1534caf8e9669a8ba49965857c359dfdcdc11bd1d0a89d286a86ae
pkgname = rvpk

41
rvpk/PKGBUILD Normal file
View File

@@ -0,0 +1,41 @@
# Maintainer: Giovanni Harting
pkgname=rvpk
_repo_name="rust-vpk"
pkgver=1.1.0
pkgrel=1
pkgdesc="Extract Valve VPK (V1 & V2) archives (and create V1 archives)"
arch=(x86_64)
url="https://github.com/panzi/rust-vpk"
license=('GPL')
depends=(gcc-libs fuse2)
makedepends=(cargo)
source=("https://github.com/panzi/rust-vpk/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('2f62758e7a702044b14a4be121c284e9ad1911195c8b20ceb08285cb56271a1d42bf7f907c1534caf8e9669a8ba49965857c359dfdcdc11bd1d0a89d286a86ae')
prepare() {
cd "$_repo_name-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$_repo_name-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$_repo_name-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$_repo_name-$pkgver"
# binary
install -vDm755 -t "$pkgdir/usr/bin" target/release/rvpk
}
# vim:set ts=2 sw=2 et: