#Maintainer: chris west pkgname=phetch pkgver=1.0.3 pkgrel=6 pkgdesc="A quick lil gopher client for your terminal." url="https://github.com/xvxx/phetch" depends=('openssl') makedepends=('cargo') arch=('x86_64') license=('MIT') source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download") sha256sums=('3b8f9c539c3948a2a5ba25e0eca2c9c9ff472d45b97a452ba90dad69089e7b61') build() { cd "$pkgname-$pkgver" cargo build --locked --release } package() { cd "$pkgname-$pkgver" install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" install -Dm644 "doc/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }