summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e7744578a8958713ec6f811b495251c04b2a198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pkgname=unzrip-git
pkgver=0.1.0.27.g1a4f74d
pkgrel=2
pkgdesc="Rust unzip, support for parallel decompression, automatic detection encoding"
arch=('x86_64' 'i686' 'aarch64')
url="https://github.com/quininer/unzrip"
license=('MIT')
depends=('zstd')
makedepends=('cargo' 'git')
optdepends=()
provides=('unzrip')
conflicts=('unzrip')
source=($pkgname::git+https://github.com/quininer/unzrip.git)
sha256sums=('SKIP')

pkgver() {
	cd $pkgname
	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)
}

build() {
	cd $pkgname
	env CARGO_INCREMENTAL=0 cargo build --release
}

package() {
	cd $pkgname
	install -D -m755 "$srcdir/$pkgname/target/release/unzrip" "$pkgdir/usr/bin/unzrip"
}