[arch-commits] Commit in diff-so-fancy/repos (3 files)
Felix Yan
fyan at archlinux.org
Sun Feb 14 08:52:40 UTC 2016
Date: Sunday, February 14, 2016 @ 09:52:39
Author: fyan
Revision: 161529
archrelease: copy trunk to community-any
Added:
diff-so-fancy/repos/community-any/
diff-so-fancy/repos/community-any/PKGBUILD
(from rev 161528, diff-so-fancy/trunk/PKGBUILD)
diff-so-fancy/repos/community-any/diff-so-fancy.install
(from rev 161528, diff-so-fancy/trunk/diff-so-fancy.install)
-----------------------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
diff-so-fancy.install | 9 +++++++++
2 files changed, 48 insertions(+)
Copied: diff-so-fancy/repos/community-any/PKGBUILD (from rev 161528, diff-so-fancy/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-02-14 08:52:39 UTC (rev 161529)
@@ -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' 'perl' 'sed')
+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"
+}
Copied: diff-so-fancy/repos/community-any/diff-so-fancy.install (from rev 161528, diff-so-fancy/trunk/diff-so-fancy.install)
===================================================================
--- community-any/diff-so-fancy.install (rev 0)
+++ community-any/diff-so-fancy.install 2016-02-14 08:52:39 UTC (rev 161529)
@@ -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