# Maintainer: Christian Visintin # Contributor: Luis Martinez pkgname=termscp pkgver=0.12.3 pkgrel=1 pkgdesc="A feature rich terminal UI file transfer and explorer" url="https://github.com/veeso/termscp" license=("MIT") arch=("any") depends=('gcc-libs' 'glibc' 'zlib' 'openssl' 'dbus') makedepends=('rust') source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('4c28d0c4b5efdf08d3f486df531b0a0c824e44d7885b3f2a9b142e7f632b3211') prepare() { cd "$pkgname-$pkgver" cargo fetch --locked } build() { cd "$pkgname-$pkgver" cargo build --release --target-dir=target } check() { cd "$pkgname-$pkgver" } package() { cd "$pkgname-$pkgver" cargo install \ --no-track \ --path . \ --root "${pkgdir}"/usr install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" }