~alpine/aports

2 2

[alpine-aports] [PATCH] testing/exa: new aport

Chloe Kudryavtsev
Details
Message ID
<20181111053808.27009-1-toast@toastin.space>
Sender timestamp
1541914688
DKIM signature
missing
Download raw message
Patch: +68 -0
Exa is an ls-like with no external dependencies and additonal features
such as:
- git awareness (for tree-like functionality + gitignore and git status)
- color-fronting filetype recognition
- listing of extended attributes
and more.
---
 testing/exa/APKBUILD | 68 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 testing/exa/APKBUILD

diff --git a/testing/exa/APKBUILD b/testing/exa/APKBUILD
new file mode 100644
index 0000000000..97c5c87015
--- /dev/null
+++ b/testing/exa/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor: Chloe Kudryavtsev <toast@toastin.space>
+# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
+pkgname=exa
+pkgver=0.8.0
+pkgrel=0
+pkgdesc="A modern version of 'ls'"
+url="https://the.exa.website/"
+arch="all"
+license="MIT"
+depends=""
+makedepends="cargo cmake"
+install=""
+subpackages="
+	$pkgname-doc
+	$pkgname-bash-completion:bash:noarch
+	$pkgname-fish-completion:fish:noarch
+	$pkgname-zsh-completion:zsh:noarch
+	"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz"
+builddir="$srcdir/exa-$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/exa "$pkgdir/usr/bin/exa"
+	install -m644 -D contrib/man/exa.1 "$pkgdir/usr/share/man/man1/exa.1"
+
+	install -m644 -D contrib/completions.bash \
+		"$pkgdir/usr/share/bash-completions/completions/exa"
+	install -m644 -D contrib/completions.fish \
+		"$pkgdir/usr/share/fish/completions/exa.fish"
+	install -m644 -D contrib/completions.zsh \
+		"$pkgdir/usr/share/zsh/site-functions/_exa"
+}
+
+bash() {
+	mkdir -p "$subpkgdir/usr/share"
+	mv "$pkgdir/usr/share/bash-completions" "$subpkgdir/usr/share/"
+}
+
+fish() {
+	mkdir -p "$subpkgdir/usr/share"
+	mv "$pkgdir/usr/share/fish" "$subpkgdir/usr/share/"
+}
+
+zsh() {
+	mkdir -p "$subpkgdir/usr/share"
+	mv "$pkgdir/usr/share/zsh" "$subpkgdir/usr/share/"
+}
+
+sha512sums="5ac142f40af8408e03e7fa7b204216182ad696e44c1d044bd73d04957a638a8ed7295c15fc49279165b5dfb2d8b6a559847930de0e267f479cdab88fe9c49beb  exa-0.8.0.tar.gz"
-- 
2.19.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Leonardo Arena
Details
Message ID
<CAGG_d8ApFZMk_T6Qdv651D-U6XK=+uzSN-z6GhvxBAnP4cxyEw@mail.gmail.com>
In-Reply-To
<20181111053808.27009-1-toast@toastin.space> (view parent)
Sender timestamp
1549353883
DKIM signature
missing
Download raw message
Hi,

sorry for the late feedback.

On Sun, Nov 11, 2018 at 6:38 AM Chloe Kudryavtsev <toast@toastin.space>
wrote:

> Exa is an ls-like with no external dependencies and additonal features
> such as:
> - git awareness (for tree-like functionality + gitignore and git status)
> - color-fronting filetype recognition
> - listing of extended attributes
> and more.
> ---
>  testing/exa/APKBUILD | 68 ++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 68 insertions(+)
>  create mode 100644 testing/exa/APKBUILD
>
>
It fails build here with:

>>> exa: Unpacking /var/cache/distfiles/exa-0.8.0.tar.gz...
    Updating crates.io index
Segmentation fault
>>> ERROR: exa: build failed

Thanks

/eo
Chloe Kudryavtsev
Details
Message ID
<1756bf00-9adf-052a-13c6-38df6efa9ded@toastin.space>
In-Reply-To
<CAGG_d8ApFZMk_T6Qdv651D-U6XK=+uzSN-z6GhvxBAnP4cxyEw@mail.gmail.com> (view parent)
Sender timestamp
1550001994
DKIM signature
missing
Download raw message
On 2/5/19 3:04 AM, Leonardo Arena wrote:
> Hi

Hi,

> It fails build here with:
> 
>  >>> exa: Unpacking /var/cache/distfiles/exa-0.8.0.tar.gz...
>      Updating crates.io <http://crates.io> index
> Segmentation fault
>  >>> ERROR: exa: build failed

This turned out to be a regression in libcurl 7.64.
It's fixed upstream, and there's a patch floating in patchwork to fix it 
in the meanwhile, if desired.
It should be gone in the next release.

However, some of these APKBUILDs (bat in particular) are already out of 
date.
I'll re-submit PRs over on github once I have *everything* in order.


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---