diff options
author | Deposite Pirate | 2021-06-16 20:23:16 +0200 |
---|---|---|
committer | Deposite Pirate | 2021-06-16 20:23:16 +0200 |
commit | 035298e5854ec9c79140095b69646bd2188c8b5e (patch) | |
tree | 631257afd5ca853dde44f8fb22923ed1348a3907 /fcp-git | |
parent | ee0417cfb68924956569f4e01d67bfd3f1a6a481 (diff) |
* Initial commit.
new file: fcp-git/.SRCINFO
new file: fcp-git/PKGBUILD
Diffstat (limited to 'fcp-git')
-rw-r--r-- | fcp-git/.SRCINFO | 16 | ||||
-rw-r--r-- | fcp-git/PKGBUILD | 35 |
2 files changed, 51 insertions, 0 deletions
diff --git a/fcp-git/.SRCINFO b/fcp-git/.SRCINFO new file mode 100644 index 0000000..72e8298 --- /dev/null +++ b/fcp-git/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = fcp-git + pkgdesc = A faster rust cp command + pkgver = v0.1.0.r0.ga1e61f7 + pkgrel = 1 + url = https://github.com/Svetlitski/fcp + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + makedepends = rust + makedepends = cargo + depends = glibc + source = fcp::git+https://github.com/Svetlitski/fcp + sha256sums = SKIP + +pkgname = fcp-git diff --git a/fcp-git/PKGBUILD b/fcp-git/PKGBUILD new file mode 100644 index 0000000..09ffc1d --- /dev/null +++ b/fcp-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Deposite Pirate <dpirate at metalpunks dot info> +# +# Upstream: https://git.metalpunks.info/arch-ports + +_pkgname=fcp +pkgname=fcp-git +pkgver=v0.1.0.r0.ga1e61f7 +pkgrel=1 +pkgdesc="A faster rust cp command" +arch=('i686' 'x86_64') +url="https://github.com/Svetlitski/fcp" +license=('BSD') +depends=('glibc' ) +makedepends=('git' 'rust' 'cargo') +source=("${_pkgname}::git+${url}") +sha256sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + return 0 +} + +package() { + cd "${_pkgname}" + cargo install --no-track --locked --all-features --path . \ + --root "${pkgdir}/usr/" + install -Dm 644 LICENSE README.md -t "${pkgdir}/usr/share/doc/fcp" +} |