Date: Thursday, October 13, 2022 @ 23:24:12
  Author: grawlinson
Revision: 1328075

archrelease: copy trunk to community-x86_64

Added:
  sheldon/repos/community-x86_64/PKGBUILD
    (from rev 1328074, sheldon/trunk/PKGBUILD)
Deleted:
  sheldon/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  142 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 73 insertions(+), 69 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-13 23:23:22 UTC (rev 1328074)
+++ PKGBUILD    2022-10-13 23:24:12 UTC (rev 1328075)
@@ -1,69 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=sheldon
-pkgver=0.6.6
-pkgrel=3
-pkgdesc="A fast and configurable shell plugin manager"
-arch=('x86_64')
-url="https://sheldon.cli.rs";
-license=('Apache' 'MIT')
-depends=('curl')
-makedepends=('git' 'rust' 'mdbook-linkcheck')
-options=('!lto')
-_commit='31c6df8f7da1d9aed7b46d75bc6c0fd8a0616c54'
-source=("git+https://github.com/rossmacarthur/sheldon.git#commit=$_commit";)
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd "$pkgname"
-
-  # backport fix for tests
-  git cherry-pick --no-commit 9aa06fdd5cb284daae8c48648d614e3823f3f9f3
-
-  # download dependencies
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-}
-
-build() {
-  cd "$pkgname"
-
-  # binary
-  cargo build --frozen --release --all-features
-
-  # documentation
-  mdbook build docs
-}
-
-check() {
-  cd "$pkgname"
-
-  # temporarily disable tests related to github's
-  # disabling of specific requests
-  cargo test --frozen --all-features -- \
-    --skip lock::tests::locked_config_clean \
-    --skip lock::tests::source_lock_git_git_with_checkout \
-    --skip lock_and_source_github_git
-}
-
-package() {
-  cd "$pkgname"
-
-  # binary
-  install -vDm755 -t "$pkgdir/usr/bin" target/release/sheldon
-
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
-
-  # documentation
-  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
-
-  # completions
-  install -vDm644 completions/sheldon.bash 
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
-  install -vDm644 completions/sheldon.zsh 
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
-}

Copied: sheldon/repos/community-x86_64/PKGBUILD (from rev 1328074, 
sheldon/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-13 23:24:12 UTC (rev 1328075)
@@ -0,0 +1,73 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgbase=sheldon
+pkgname=('sheldon' 'sheldon-docs')
+pkgver=0.7.0
+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='1d91370e0b63da3c5a1e5fd63f7292bbb7ff7168'
+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"
+}

Reply via email to