[arch-commits] Commit in diff-so-fancy/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 28 12:39:23 UTC 2021


    Date: Friday, May 28, 2021 @ 12:39:23
  Author: felixonmars
Revision: 949719

archrelease: copy trunk to community-any

Added:
  diff-so-fancy/repos/community-any/PKGBUILD
    (from rev 949718, diff-so-fancy/trunk/PKGBUILD)
Deleted:
  diff-so-fancy/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 42 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-28 12:39:05 UTC (rev 949718)
+++ PKGBUILD	2021-05-28 12:39:23 UTC (rev 949719)
@@ -1,46 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: icasdri <icasdri at gmail dot com>
-
-pkgname=diff-so-fancy
-pkgver=1.4.0
-pkgrel=1
-pkgdesc="Good-looking diffs with diff-highlight and more"
-arch=('any')
-url="https://github.com/so-fancy/diff-so-fancy"
-license=('MIT')
-depends=('perl')
-makedepends=('git')
-checkdepends=('bash-bats-assert' 'bash-bats-support')
-source=("https://github.com/so-fancy/diff-so-fancy/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
-        "$pkgname-bats-testfix.patch::https://github.com/so-fancy/diff-so-fancy/commit/edcfd043a01b2c798375c76d17a7b8733f30e3d4.patch")
-sha384sums=('fa08823eaa093b45957ab610541a19aeffc3c5fdcb3ca5491a38e62049f25cf5238d3c5e2b601df6b3f3f35b423266d8'
-            '1bee3081672f17eafc548ebf433b3d3c0bd8792e6ffa17264663f09f177931a97f7e21e31c04d9f0ce742f4b7b61c2bf')
-
-prepare() {
-  cd $pkgname-$pkgver
-  patch -Np1 -i ../$pkgname-bats-testfix.patch
-
-  rm -r third_party # lib
-
-  sed -e 's|test_helper/bats-support|/usr/lib/bats-support|' \
-      -e 's|test_helper/bats-assert|/usr/lib/bats-assert|' \
-      -e "s|load'$|load.bash'|" \
-      -i test/*.bats
-}
-
-check() {
-  cd $pkgname-$pkgver
-  git init
-  bats test/*.bats
-}
-
-package() {
-  cd $pkgname-$pkgver
-
-  sed -i 's|^use lib .*$|use lib "/usr/share/diff-so-fancy";|' diff-so-fancy
-
-  install -Dm755 diff-so-fancy "$pkgdir"/usr/bin/diff-so-fancy
-  install -Dm755 lib/DiffHighlight.pm "$pkgdir"/usr/share/diff-so-fancy/DiffHighlight.pm
-  install -Dm644 README.md "$pkgdir"/usr/share/doc/diff-so-fancy/README.md
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: diff-so-fancy/repos/community-any/PKGBUILD (from rev 949718, diff-so-fancy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-28 12:39:23 UTC (rev 949719)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: icasdri <icasdri at gmail dot com>
+
+pkgname=diff-so-fancy
+pkgver=1.4.1
+pkgrel=1
+pkgdesc="Good-looking diffs with diff-highlight and more"
+arch=('any')
+url="https://github.com/so-fancy/diff-so-fancy"
+license=('MIT')
+depends=('perl')
+makedepends=('git')
+checkdepends=('bash-bats-assert' 'bash-bats-support')
+source=("https://github.com/so-fancy/diff-so-fancy/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha384sums=('4db0fd47c7a33d079b399226173fe0c003ee2da5d102bb1d286ae2b64c5ac28e537e51ff01b2b92d996918465c0c08ed')
+
+prepare() {
+  cd $pkgname-$pkgver
+  rm -r third_party # lib
+
+  sed -e 's|test_helper/bats-support|/usr/lib/bats-support|' \
+      -e 's|test_helper/bats-assert|/usr/lib/bats-assert|' \
+      -e "s|load'$|load.bash'|" \
+      -i test/*.bats
+}
+
+check() {
+  cd $pkgname-$pkgver
+  git init
+  bats test/*.bats
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  sed -i 's|^use lib .*$|use lib "/usr/share/diff-so-fancy";|' diff-so-fancy
+
+  install -Dm755 diff-so-fancy "$pkgdir"/usr/bin/diff-so-fancy
+  install -Dm755 lib/DiffHighlight.pm "$pkgdir"/usr/share/diff-so-fancy/DiffHighlight.pm
+  install -Dm644 README.md "$pkgdir"/usr/share/doc/diff-so-fancy/README.md
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list