summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ddf0208ffb849bf42443011cba8d9db5bf288d2 (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
# Maintainer: Andrew Ryan <dnrops@outlook.com>
#

pkgname=video-cut-git
_pkgname="video-cut"
pkgver=1.0.2
pkgrel=1
pkgdesc="Rust writed CLI for cut video in terminal."
url="https://dnrops.gitee.io"
license=("MIT")
arch=("x86_64")
provides=($_pkgname)
conflicts=($_pkgname)
source=("$pkgname::git+https://gitcode.net/dnrops/video-cut-git.git")
sha256sums=('SKIP')

build() {
	  cd "$srcdir/$pkgname"
    export CARGO_TARGET_DIR=target
    cargo fetch --target "$CARCH-unknown-linux-gnu"
    cargo build --frozen --release
}

package() {
	cd "$srcdir/$pkgname"
	install -Dm 755 "target/release/$_pkgname" -t "$pkgdir/usr/bin/"
}