aboutsummaryrefslogtreecommitdiffstats
path: root/community/exa
diff options
context:
space:
mode:
Diffstat (limited to 'community/exa')
-rw-r--r--community/exa/APKBUILD35
-rw-r--r--community/exa/fix-lockfile.patch13
-rw-r--r--community/exa/minimize-size.patch17
3 files changed, 47 insertions, 18 deletions
diff --git a/community/exa/APKBUILD b/community/exa/APKBUILD
index 623472de34..e790c8012f 100644
--- a/community/exa/APKBUILD
+++ b/community/exa/APKBUILD
@@ -1,20 +1,24 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
-# Maintainer:
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=exa
-pkgver=0.9.0
-pkgrel=5
+pkgver=0.10.1
+pkgrel=0
pkgdesc="ls replacement written in Rust"
url="https://the.exa.website/"
-options="!check" # Tests fail on drone-ci
-arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # Limited by cargo
+arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
license="MIT"
makedepends="cargo zlib-dev libgit2-dev"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc
+ $pkgname-bash-completion
+ $pkgname-fish-completion
+ $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz
+ https://github.com/ogham/exa/releases/download/v$pkgver/exa-accoutrements-v$pkgver.zip
+ fix-lockfile.patch
minimize-size.patch
"
-export LIBGIT2_SYS_USE_PKG_CONFIG=1 # Use system libgit2
+export LIBGIT2_SYS_USE_PKG_CONFIG=1 # use system libgit2
build() {
cargo build --locked --release
@@ -27,7 +31,18 @@ check() {
package() {
cargo install --locked --path . --root="$pkgdir"/usr
rm "$pkgdir"/usr/.crates*
- install -Dm644 contrib/man/exa.1 "$pkgdir"/usr/share/man/man1/exa.1
+
+ install -Dm644 ../man/exa.1 "$pkgdir"/usr/share/man/man1/exa.1
+ install -Dm644 ../man/exa_colors.5 "$pkgdir"/usr/share/man/man5/exa_colors.5
+
+ install -Dm644 ../completions/*.bash "$pkgdir"/usr/share/bash-completion/completions/exa
+ install -Dm644 ../completions/*.fish "$pkgdir"/usr/share/fish/completions/exa.fish
+ install -Dm644 ../completions/*.zsh "$pkgdir"/usr/share/zsh/site-functions/_exa
}
-sha512sums="8689a115995f39ec60c9fc7c5a8f7b0b1009eb109b09c3bdcc4fc1a246637eaf60c6f37a1369578584323f18ba706812343e8ce67aa0ccfeaf3296b4eca4a714 exa-0.9.0.tar.gz
-2079dd222f89b7c1972306efde53756054884f042de0d8f03b7a2ee988902e7c60f7b96eb27ef6dc757c6b1eb36d96844426c3ebfa392869aab2028ab3bc2e1c minimize-size.patch"
+
+sha512sums="
+512a6f9fbacbfcac6e3282a05852739daa85b9167eac7bb523830f47f910ceaedfdcff100a96a03e441936f84a57351b2bf0051789458c8bd21da32c9070546c exa-0.10.1.tar.gz
+4b7602d48ea9ee205f3607ed011389037eb2b8bad967579b8167df5a132c19c8ff8a5e78ebbb84e66e103e2a07a10dff3661d730569667792b92a69c632bb17c exa-accoutrements-v0.10.1.zip
+603d3b94a74000776391608409103bef5af9e4770cc35812da29cbcc0851d1b0fb70370ed2c6994af762f19285331bb11fe010102f57f9234182ae1d059c0276 fix-lockfile.patch
+d1e181988a45eb9465cbd53ed0ce504672374013b6398f744f1e4a1c3d26c664cf168708b7895d1ae77c353521e8990701c1cf7e6713cccad7a884d13465bf7a minimize-size.patch
+"
diff --git a/community/exa/fix-lockfile.patch b/community/exa/fix-lockfile.patch
new file mode 100644
index 0000000000..bef2a06f38
--- /dev/null
+++ b/community/exa/fix-lockfile.patch
@@ -0,0 +1,13 @@
+Fix incorrect package version in Cargo.lock.
+
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -57,7 +57,7 @@
+
+ [[package]]
+ name = "exa"
+-version = "0.11.0-pre"
++version = "0.10.1"
+ dependencies = [
+ "ansi_term",
+ "datetime",
diff --git a/community/exa/minimize-size.patch b/community/exa/minimize-size.patch
index 2c180dfa62..e61e99cdfb 100644
--- a/community/exa/minimize-size.patch
+++ b/community/exa/minimize-size.patch
@@ -1,13 +1,14 @@
-Reduces binary size from 822 kiB to 756 kiB.
+Minimize size of the resulting binary: 834 -> 634 kiB.
--- a/Cargo.toml
+++ b/Cargo.toml
-@@ -59,7 +59,7 @@
- vendored-openssl = ["git2/vendored-openssl"]
-
+@@ -60,6 +60,9 @@
+ # use LTO for smaller binaries (that take longer to build)
[profile.release]
--opt-level = 3
-+opt-level = "z"
- debug = false
lto = true
- panic = "abort"
++codegen-units = 1
++opt-level = "z"
++panic = "abort"
+
+
+ [package.metadata.deb]