[arch-commits] Commit in (z z/repos z/trunk z/trunk/PKGBUILD z/trunk/z.install)
Felix Yan
felixonmars at archlinux.org
Sun Jun 17 01:02:45 UTC 2018
Date: Sunday, June 17, 2018 @ 01:02:44
Author: felixonmars
Revision: 343430
addpkg: z 1.9-1
Added:
z/
z/repos/
z/trunk/
z/trunk/PKGBUILD
z/trunk/z.install
-----------+
PKGBUILD | 25 +++++++++++++++++++++++++
z.install | 4 ++++
2 files changed, 29 insertions(+)
Added: z/trunk/PKGBUILD
===================================================================
--- z/trunk/PKGBUILD (rev 0)
+++ z/trunk/PKGBUILD 2018-06-17 01:02:44 UTC (rev 343430)
@@ -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"
+}
Added: z/trunk/z.install
===================================================================
--- z/trunk/z.install (rev 0)
+++ z/trunk/z.install 2018-06-17 01:02:44 UTC (rev 343430)
@@ -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