Subject: [alpine-aports] [PATCH] testing/fd: new aport

From: Chloe Kudryavtsev <[email-masked]>
Date: Sun, 11 Nov 2018 00:39:50 -0500

fd is a fast (to use) and convenient find.1 alternative, implementing a
subset of the functionality for faster access.
---
 testing/fd/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 testing/fd/APKBUILD

diff --git a/testing/fd/APKBUILD b/testing/fd/APKBUILD
new file mode 100644
index 0000000000..e7d65dac1a
--- /dev/null
+++ b/testing/fd/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Chloe Kudryavtsev <[email-masked]>
+# Maintainer: Chloe Kudryavtsev <[email-masked]>
+pkgname=fd
+pkgver=7.2.0
+pkgrel=0
+pkgdesc="A simple, fast and user-friendly alternative to 'find'"
+url="https://github.com/sharkdp/fd"
+arch="all"
+license="MIT"
+depends=""
+makedepends="cargo"
+install=""
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	export CARGO_HOME="$srcdir"/cargo
+	export RUSTFLAGS="-C target-feature=-crt-static"
+	cargo build \
+		--release \
+		--verbose
+}
+
+check() {
+	cd "$builddir"
+	export CARGO_HOME="$srcdir"/cargo
+	export RUSTFLAGS="-C target-feature=-crt-static"
+	cargo test --all \
+		--release \
+		--verbose
+}
+
+package() {
+	cd "$builddir"
+	install -m755 -D target/release/fd "$pkgdir/usr/bin/$pkgname"
+	install -m644 -D doc/fd.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
+}
+
+sha512sums="22823904e4a1645a6f248501e507cad6ef08341ac69d0e9675571a202fa2316fe6c85b274fc958676da6a8e26399b26bdb78fdca876146b0e91b4780948d8ca2  fd-7.2.0.tar.gz"
-- 
2.19.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---