[arch-commits] Commit in z/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 18:07:39 UTC 2020
Date: Tuesday, July 7, 2020 @ 18:07:39
Author: felixonmars
Revision: 659998
archrelease: copy trunk to community-staging-any
Added:
z/repos/community-staging-any/
z/repos/community-staging-any/PKGBUILD
(from rev 659997, z/trunk/PKGBUILD)
z/repos/community-staging-any/z.install
(from rev 659997, z/trunk/z.install)
-----------+
PKGBUILD | 24 ++++++++++++++++++++++++
z.install | 4 ++++
2 files changed, 28 insertions(+)
Copied: z/repos/community-staging-any/PKGBUILD (from rev 659997, z/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 18:07:39 UTC (rev 659998)
@@ -0,0 +1,24 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Semyon Maryasin <marsoft at ya.ru>
+
+pkgname=z
+pkgver=1.11
+pkgrel=2
+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=('873761c2eaf283c526b87ef272c8c35f70e94ea079fbbc985ba32070638ff963')
+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-staging-any/z.install (from rev 659997, z/trunk/z.install)
===================================================================
--- community-staging-any/z.install (rev 0)
+++ community-staging-any/z.install 2020-07-07 18:07:39 UTC (rev 659998)
@@ -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