[arch-commits] Commit in sd/repos/community-x86_64 (PKGBUILD PKGBUILD)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Sat Jul 23 06:51:31 UTC 2022


    Date: Saturday, July 23, 2022 @ 06:51:31
  Author: svenstaro
Revision: 1255476

archrelease: copy trunk to community-x86_64

Added:
  sd/repos/community-x86_64/PKGBUILD
    (from rev 1255475, sd/trunk/PKGBUILD)
Deleted:
  sd/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   71 ++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 43 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-23 06:51:05 UTC (rev 1255475)
+++ PKGBUILD	2022-07-23 06:51:31 UTC (rev 1255476)
@@ -1,28 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: Wesley Moore <wes at wezm.net>
-pkgname=sd
-pkgver=0.7.6
-pkgrel=1
-pkgdesc='Intuitive find & replace'
-arch=('x86_64')
-url="https://github.com/chmln/sd"
-license=('MIT')
-depends=('gcc-libs')
-makedepends=('rust' 'cargo' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/chmln/sd/archive/v${pkgver}.tar.gz")
-sha256sums=('faf33a97797b95097c08ebb7c2451ac9835907254d89863b10ab5e0813b5fe5f')
-
-build() {
-  cd "$pkgname-$pkgver"
-  cargo build --release --locked
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  cargo test --release --locked
-}
-
-package() {
-  install -Dm755 "$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
-  install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: sd/repos/community-x86_64/PKGBUILD (from rev 1255475, sd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-23 06:51:31 UTC (rev 1255476)
@@ -0,0 +1,43 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Wesley Moore <wes at wezm.net>
+pkgname=sd
+pkgver=0.7.6
+pkgrel=2
+pkgdesc='Intuitive find & replace'
+arch=('x86_64')
+url="https://github.com/chmln/sd"
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/chmln/sd/archive/v${pkgver}.tar.gz")
+sha256sums=('faf33a97797b95097c08ebb7c2451ac9835907254d89863b10ab5e0813b5fe5f')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  cargo build --release --locked
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --release --locked
+}
+
+package() {
+  install -Dm755 "$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd $pkgname-$pkgver/target/release/build
+
+  # Find and package the man page (because cargo --out-dir is too new)
+  find . -name sd.1 -type f -exec install -Dm644 {} "$pkgdir/usr/share/man/man1/sd.1" \;
+
+  # Find and package the bash completion file
+  find . -name sd.bash -type f -exec install -Dm644 {} "$pkgdir/usr/share/bash-completion/completions/sd" \;
+
+  # Find and package the zsh completion file (not in zsh-completions yet)
+  find . -name _sd -type f -exec install -Dm644 {} "$pkgdir/usr/share/zsh/site-functions/_sd" \;
+
+  # Find and package the fish completion file
+  find . -name sd.fish -type f -exec install -Dm644 {} "$pkgdir/usr/share/fish/vendor_completions.d/sd.fish" \;
+}



More information about the arch-commits mailing list