Package Details: humnumsort 0.3.0-1

Git Clone URL: https://aur.archlinux.org/humnumsort.git (read-only, click to copy)
Package Base: humnumsort
Description: Human-sorts lines (i.e. x10\n comes after x1\n)
Upstream URL: https://github.com/ctrlcctrlv/humnumsort
Licenses: Apache-2.0
Provides: hns, hns+, hxs
Submitter: ashtonqlb
Maintainer: kleintux (fbrennan)
Last Packager: fbrennan
Votes: 1
Popularity: 0.000000
First Submitted: 2022-09-21 01:56 (UTC)
Last Updated: 2023-05-21 23:53 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

fbrennan commented on 2023-05-11 05:13 (UTC)

Also if you want I can just own the package as I use Arch again. https://raw.githubusercontent.com/ctrlcctrlv/humnumsort/f315f7737d6ead82dae0d7ff9818272a87c53734/dist/aur/PKGBUILD

fbrennan commented on 2023-05-11 05:07 (UTC)

Please apply this patch.

diff --git a/PKGBUILD b/PKGBUILD
index 31de485..bbf30ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,13 @@
 # Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 
 # Contributor: Ashton Bennet <ashtonquinn@disroot.org>
+# Contributor: Fredrick R. Brennan <copypaste@kittens.ph>

 pkgname=humnumsort
+_pkgname=hns
 pkgver=0.1.1
-pkgrel=2
+pkgrel=3
 pkgdesc='A more human-friendly alternative to GNU Sort, written in Rust'
-provides=('humnumsort')
+provides=('hns' 'hns+' 'hxs')
 makedepends=('cargo')
 arch=('x86_64' 'armv6h' 'armv7h')
 license=('Apache-2.0')
@@ -13,17 +15,11 @@ url='https://github.com/ctrlcctrlv/humnumsort'
 source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
 sha256sums=('fa4490ac64035fac0c9f60f2af3413a548e20aebe1e53214d5084587ea2e11e2')

-prepare() {
-   cd "${srcdir}/${pkgname}-${pkgver}/bin"
-   # Upstream lockfile is buggered in v0.1.1
-   cargo update
-}
-
 build() {
    cd "${srcdir}/${pkgname}-${pkgver}/bin"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
-   cargo build --release
+   cargo build --frozen --release
 }

 check() {
@@ -36,6 +32,9 @@ package() {
    cd "${srcdir}/${pkgname}-${pkgver}/bin"
    install -Dm755 target/release/hns ${pkgdir}/usr/bin/hns
    ln -s /usr/bin/hns ${pkgdir}/usr/bin/hns+
-  install -Dm644 ../README.md "${pkgdir}"/usr/share/doc/"${_pkgname}"/README.md
+   install -Dm644 ../README.md "${pkgdir}"/usr/share/doc/"${_pkgname}"/README.md
+   install -Dm644 ../doc/hns.1.gz "${pkgdir}"/usr/share/man/man1/hns.1.gz
+   ln -s /usr/share/man/man1/hns.1.gz "${pkgdir}"/usr/share/man/man1/hns+.1.gz
+   ln -s /usr/share/man/man1/hns.1.gz "${pkgdir}"/usr/share/man/man1/hxs.1.gz
 }