[arch-commits] Commit in z/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Sun Jun 17 01:03:12 UTC 2018
Date: Sunday, June 17, 2018 @ 01:03:11
Author: felixonmars
Revision: 343431
archrelease: copy trunk to community-any
Added:
z/repos/community-any/
z/repos/community-any/PKGBUILD
(from rev 343430, z/trunk/PKGBUILD)
z/repos/community-any/z.install
(from rev 343430, z/trunk/z.install)
-----------+
PKGBUILD | 25 +++++++++++++++++++++++++
z.install | 4 ++++
2 files changed, 29 insertions(+)
Copied: z/repos/community-any/PKGBUILD (from rev 343430, z/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-06-17 01:03:11 UTC (rev 343431)
@@ -0,0 +1,25 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Semyon Maryasin <marsoft at ya.ru>
+
+pkgname=z
+pkgver=1.9
+pkgrel=1
+pkgdesc="Tracks your most used directories, based on 'frecency'"
+arch=('any')
+url="https://github.com/rupa/z/"
+license=('WTFPL')
+depends=('bash')
+source=("$pkgname-$pkgver.tar.gz::https://codeload.github.com/rupa/$pkgname/tar.gz/v$pkgver")
+sha256sums=('e2860e4f65770e02297ca4ca08ec1ee623a658bd9cc1acddbbe5ad22e1de70a7')
+install=z.install
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # update path in manpage
+ sed -i z.1 -e "s:/path/to/z.sh:/usr/share/$pkgname/z.sh:g"
+ install -Dm 644 z.1 "$pkgdir/usr/share/man/man1/z.1"
+
+ install -Dm 644 z.sh "$pkgdir/usr/share/$pkgname/z.sh"
+}
Copied: z/repos/community-any/z.install (from rev 343430, z/trunk/z.install)
===================================================================
--- community-any/z.install (rev 0)
+++ community-any/z.install 2018-06-17 01:03:11 UTC (rev 343431)
@@ -0,0 +1,4 @@
+post_install(){
+ echo 'To use, add the following command to ~/.bashrc or /etc/bash.bashrc or ~/.zshrc:'
+ echo '[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh'
+}
More information about the arch-commits
mailing list