blob: a254db5c1e8be99b3e07ba4ed89830e7b95bcb84 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Eric Lemieux <eric at lemieuxdev dot com>
pkgname=dank
pkgver=2.2.2
pkgrel=1
pkgdesc='Reddit meme downloader'
url='https://github.com/EricLemieux/dank'
license=('Apache')
arch=('x86_64')
depends=('gcc-libs' 'openssl')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('64aa93358331d0a111fb2899a3502ca68c69aa23365365455aea65c76e2e8cef')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "$pkgname-$pkgver"
cargo build --frozen --release --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
cd "$pkgname-$pkgver"
cargo test --frozen --all-features
}
package() {
cd "$pkgname-$pkgver"
install -D target/release/dank -t "$pkgdir/usr/bin/"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|