blob: 908b826687913f9c173beb0653cae5f6a9adb143 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Piroro-hs
pkgname=dano
pkgver=0.9.0
pkgrel=1
pkgdesc='A hashdeep/md5tree (but much more) for media files'
arch=('x86_64')
url='https://github.com/kimono-koans/dano'
license=('MPL-2.0')
groups=()
depends=('ffmpeg'
'gcc-libs'
'glibc')
makedepends=('cargo'
'git')
optdepends=("flac: to import FLAC file's checksums")
provides=()
conflicts=()
replaces=()
backup=()
source=("$pkgname::git+$url#tag=$pkgver")
sha256sums=('853411a71c92720aa92cceed75a1ee54cb305aa1bf113da47585d535270cc323')
prepare() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --profile deb
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 "target/deb/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -Dm644 'README.md' "$pkgdir/usr/share/doc/$pkgname/README"
}
|