blob: 2bfb9da86bc3ced1331671dc44b470f68c633f01 (
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
|
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=cargo-fund
pkgver=0.2.2
pkgrel=1
pkgdesc='Tool for discovering funding links in Rust project dependencies.'
arch=('i686' 'x86_64')
url="https://github.com/acfoltzer/cargo-fund"
license=('MIT' 'Apache')
depends=('openssl')
makedepends=('cargo')
source=("$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('28b1bb5bccfac3d57313ba17adea828b24f7983dd64220fd877c17e71ce1f41f')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
}
|