Date: Thursday, May 18, 2023 @ 01:55:38 Author: grawlinson Revision: 1463023
archrelease: copy trunk to community-x86_64 Added: sheldon/repos/community-x86_64/PKGBUILD (from rev 1463022, sheldon/trunk/PKGBUILD) Deleted: sheldon/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 157 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 84 insertions(+), 73 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-18 01:51:32 UTC (rev 1463022) +++ PKGBUILD 2023-05-18 01:55:38 UTC (rev 1463023) @@ -1,73 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> - -pkgbase=sheldon -pkgname=('sheldon' 'sheldon-docs') -pkgver=0.7.1 -pkgrel=1 -pkgdesc='A fast and configurable shell plugin manager' -arch=('x86_64') -url='https://sheldon.cli.rs' -license=('Apache' 'MIT') -makedepends=('git' 'rust' 'mdbook-linkcheck' 'curl') -options=('!lto') -_commit='e035af3650cff77ef8dfb56ea4751e3a63df47ad' -source=("git+https://github.com/rossmacarthur/sheldon.git#commit=$_commit") -b2sums=('SKIP') - -pkgver() { - cd "$pkgbase" - - git describe --tags | sed 's/^v//' -} - -prepare() { - cd "$pkgbase" - - # download dependencies - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" -} - -build() { - cd "$pkgbase" - - # binary - cargo build --frozen --release --all-features - - # documentation - mdbook build docs -} - -check() { - cd "$pkgbase" - - cargo test --frozen --all-features -} - -package_sheldon() { - depends=('curl') - optdepends=('sheldon-docs: documentation') - - cd "$pkgbase" - - # binary - install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgbase" - - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgbase" LICENSE* - - # completions - install -vDm644 completions/sheldon.bash "$pkgdir/usr/share/bash-completion/completions/$pkgbase" - install -vDm644 completions/sheldon.zsh "$pkgdir/usr/share/zsh/site-functions/_$pkgbase" -} - -package_sheldon-docs() { - pkgdesc+=' (documentation)' - - cd "$pkgbase" - - # documentation - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase" ./*.md - - # html manual - cp -vr docs/book/html "$pkgdir/usr/share/doc/$pkgbase" -} Copied: sheldon/repos/community-x86_64/PKGBUILD (from rev 1463022, sheldon/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-18 01:55:38 UTC (rev 1463023) @@ -0,0 +1,84 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> + +pkgbase=sheldon +pkgname=('sheldon' 'sheldon-docs') +pkgver=0.7.3 +pkgrel=1 +pkgdesc='A fast and configurable shell plugin manager' +arch=('x86_64') +url='https://sheldon.cli.rs' +license=('Apache' 'MIT') +makedepends=( + 'git' + 'rust' + 'mdbook-linkcheck' + 'curl' +) +options=('!lto') +_commit='492fbeba22ffa1a81946549a04dbe9878dde5155' +source=("git+https://github.com/rossmacarthur/sheldon.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgbase" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgbase" + + # download dependencies + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgbase" + + # binary + cargo build --frozen --release --all-features + + # documentation + mdbook build docs +} + +check() { + cd "$pkgbase" + + cargo test --frozen --all-features +} + +package_sheldon() { + depends=( + 'glibc' + 'gcc-libs' + 'openssl' + 'zlib' + 'curl' + ) + optdepends=('sheldon-docs: documentation') + + cd "$pkgbase" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgbase" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgbase" LICENSE* + + # completions + install -vDm644 completions/sheldon.bash "$pkgdir/usr/share/bash-completion/completions/$pkgbase" + install -vDm644 completions/sheldon.zsh "$pkgdir/usr/share/zsh/site-functions/_$pkgbase" +} + +package_sheldon-docs() { + pkgdesc+=' (documentation)' + + cd "$pkgbase" + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase" ./*.md + + # html manual + cp -vr docs/book/html "$pkgdir/usr/share/doc/$pkgbase" +}