Date: Wednesday, May 17, 2023 @ 05:17:40 Author: grawlinson Revision: 1462910
upgpkg: nushell 0.80.0-1; new upstream release Modified: nushell/trunk/PKGBUILD ----------+ PKGBUILD | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-05-17 04:25:16 UTC (rev 1462909) +++ PKGBUILD 2023-05-17 05:17:40 UTC (rev 1462910) @@ -5,8 +5,8 @@ # Contributor: Bumsik Kim <k.bum...@gmail.com> pkgname=nushell -pkgver=0.79.0 -_commit=a1b72611215dbfca257351003204a80c83859e05 +pkgver=0.80.0 +_commit=8695b575848d5eb4d688087aa9e906b4d9e7c8d8 pkgrel=1 pkgdesc='A new type of shell' arch=('x86_64') @@ -24,34 +24,35 @@ source=("git+https://github.com/nushell/nushell.git#commit=$_commit") sha256sums=('SKIP') -prepare() { +pkgver() { cd "$pkgname" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + + git describe --tags | sed 's/^v//' } -pkgver() { +prepare() { cd "$pkgname" - git describe --tags -} -_pkgver() { - curl -fs https://api.github.com/repos/$pkgname/$pkgname/git/ref/tags/$pkgver | - jq -r .object.sha + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$pkgname" + CFLAGS+=" -ffat-lto-objects" + cargo build --release --frozen --workspace --features=extra,dataframe } check() { cd "$pkgname" + cargo test --frozen --workspace --features=extra,dataframe } package() { cd "$pkgname" + find target/release \ -maxdepth 1 \ -executable \ @@ -58,6 +59,10 @@ -type f \ -name "nu*" \ -exec install -vDm755 -t "$pkgdir/usr/bin" "{}" + - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }