diff options
author | George Rawlinson | 2022-04-02 16:47:39 +1300 |
---|---|---|
committer | George Rawlinson | 2022-04-02 16:47:39 +1300 |
commit | 4c9b1b37a36b623a59bd46aff895d477afe534da (patch) | |
tree | 719ce0e394ea032ce0c0fb099a7f876757908fd0 | |
download | aur-4c9b1b37a36b623a59bd46aff895d477afe534da.tar.gz |
addpkg: suppaftp 4.2.0-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fcc9406fbfc5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = suppaftp + pkgdesc = A super FTP/FTPS command-line interface + pkgver = 4.2.0 + pkgrel = 1 + url = https://github.com/veeso/suppaftp + arch = x86_64 + license = Apache + license = MIT + makedepends = git + makedepends = rust + depends = gcc-libs + depends = openssl + options = !lto + source = suppaftp::git+https://github.com/veeso/suppaftp.git#commit=63a6cc3b254ceaaa75d3dce6ada991edb0cd5a8c + b2sums = SKIP + +pkgname = suppaftp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..917622f0c920 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: George Rawlinson <grawlinson@archlinux.org> + +pkgname=suppaftp +pkgver=4.2.0 +pkgrel=1 +pkgdesc="A super FTP/FTPS command-line interface" +arch=('x86_64') +url="https://github.com/veeso/suppaftp" +license=('Apache' 'MIT') +depends=('gcc-libs' 'openssl') +makedepends=('git' 'rust') +options=('!lto') +_commit='63a6cc3b254ceaaa75d3dce6ada991edb0cd5a8c' +source=("$pkgname::git+$url.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # download dependencies + cargo fetch --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname" + + cargo build --frozen --release --features="secure cli-bin" +} + +package() { + cd "$pkgname" + + install -vDm755 -t "$pkgdir/usr/bin" target/release/suppaftp + + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE* +} |