X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.toastin.space (mail.toastin.space [207.246.93.162]) by lists.alpinelinux.org (Postfix) with ESMTP id 581555C595F for ; Sun, 11 Nov 2018 05:38:16 +0000 (GMT) Received: from mail.toastin.space (localhost [127.0.0.1]) by mail.toastin.space (OpenSMTPD) with ESMTP id 71c0d55a for ; Sun, 11 Nov 2018 00:38:15 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=toastin.space; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=ml; bh=MYqiVNVZJ85Mn+W5stFwd7r9n6k=; b=jQupQB547Ax4Xb5AwLMK/R lAiswBN0RHNlxo2757NDvAgp6ulEm1VX+33mEfhkCkzxIoTZWBua7Z2VcoADmSPO /9tu8HtU1xfb/fprvMAcxv/Z9QbUoTdUK9QN06GSws3HitrtporrjX/WXkrYA59g X9fMR+talpXvRxEphnJTaIL7LCeGh4RtGqSmC0z+deprpbwhgyGINdXpawbBJdM7 ncr7pZItfTeyRsNKf73Y3QbN4O8DjQeNzRtg9ShvTgeyOCA6eEAuF0keV573KP5d H8m91XNrHXKJmFwKSDeso8pKFS3RCiTvXtr5bIlT6249lenNXtL+MbYSwDw5GhfQ == DomainKey-Signature: a=rsa-sha1; c=nofws; d=toastin.space; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; q=dns; s=ml; b=Hklg5fBlkDv+Ly5alwfDWRVkdjZHV0MCckROhr6RcHvpQFxt zabZ4iH0xvHZW8DLm7Imm+RxGuHXzxVdPj+m+TpRFU0l9H77JR4BzR7aXs08ldaZ StiHbBs6lF5YsKB35ap3cSKLlreEYfAzkB+A5/P13JuVbhLPlss2eUY0ot36iIbw 2yo2lV4XseUw+eTZgRTa8A/yTfThybVbFCJ9HBaB4vLt+hL9gkDl8tR1O+QMBGDm 1Um2EiVtNj8ZfujV6WEGwjj+DgibJd4LJcrkCMij/UnkCNY5/MFgoY1JQHlzvrf0 boaWWnMzWH0ZPjVQ98FIqbxovwWzJWzn+rLe4w== Received: from LapToast.home.toastin.space (192-222-169-215.qc.cable.ebox.net [192.222.169.215]) by mail.toastin.space (OpenSMTPD) with ESMTPSA id 5c49e848 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 11 Nov 2018 00:38:15 -0500 (EST) From: Chloe Kudryavtsev To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/exa: new aport Date: Sun, 11 Nov 2018 00:38:08 -0500 Message-Id: <20181111053808.27009-1-toast@toastin.space> X-Mailer: git-send-email 2.19.1 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 +# Maintainer: Chloe Kudryavtsev +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 ---