[arch-commits] Commit in (5 files)

Felix Yan fyan at archlinux.org
Sun Feb 14 08:49:25 UTC 2016


    Date: Sunday, February 14, 2016 @ 09:49:25
  Author: fyan
Revision: 161527

addpkg: diff-so-fancy 0.3.0-1

Added:
  diff-so-fancy/
  diff-so-fancy/repos/
  diff-so-fancy/trunk/
  diff-so-fancy/trunk/PKGBUILD
  diff-so-fancy/trunk/diff-so-fancy.install

-----------------------+
 PKGBUILD              |   39 +++++++++++++++++++++++++++++++++++++++
 diff-so-fancy.install |    9 +++++++++
 2 files changed, 48 insertions(+)

Added: diff-so-fancy/trunk/PKGBUILD
===================================================================
--- diff-so-fancy/trunk/PKGBUILD	                        (rev 0)
+++ diff-so-fancy/trunk/PKGBUILD	2016-02-14 08:49:25 UTC (rev 161527)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: icasdri <icasdri at gmail dot com>
+
+pkgname=diff-so-fancy
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Good-looking diffs with diff-highlight and more"
+arch=('any')
+url="https://github.com/stevemao/diff-so-fancy"
+license=('MIT')
+install="${pkgname}.install"
+depends=('bash')
+makedepends=('git')
+checkdepends=('bash-bats')
+source=("git+https://github.com/so-fancy/diff-so-fancy.git#tag=v$pkgver"
+        "git+https://github.com/ztombol/bats-core.git"
+        "git+https://github.com/ztombol/bats-assert.git")
+sha384sums=('SKIP'
+            'SKIP'
+            'SKIP')
+
+prepare() {
+  cd "${srcdir}/${pkgname}"
+  git config submodule."test/test_helper/bats-core".url "${srcdir}"/bats-core
+  git config submodule."test/test_helper/bats-assert".url "${srcdir}"/bats-assert
+  git submodule update --init
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  bats test/*.bats
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  install -Dm755 'diff-so-fancy' "${pkgdir}/usr/bin/diff-so-fancy"
+  install -Dm755 'third_party/diff-highlight/diff-highlight' "${pkgdir}/usr/bin/diff-highlight"
+}


Property changes on: diff-so-fancy/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: diff-so-fancy/trunk/diff-so-fancy.install
===================================================================
--- diff-so-fancy/trunk/diff-so-fancy.install	                        (rev 0)
+++ diff-so-fancy/trunk/diff-so-fancy.install	2016-02-14 08:49:25 UTC (rev 161527)
@@ -0,0 +1,9 @@
+post_install() {
+    echo
+    echo "==> If you desire git-diff to use diff-so-fancy by default,"
+    echo "==> set diff-so-fancy as your global pager with the following:"
+    echo "==>     git config --global core.pager 'diff-so-fancy | less --tabs=1,5 -R'"
+    echo "==> Or for one-off usage, use:"
+    echo "==>     git diff --color | diff-so-fancy"
+    echo
+}



More information about the arch-commits mailing list