upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / z / repos / community-any / PKGBUILD
bloba1fdc222046a97055c118e6eff55f24e7ecc7b62
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Semyon Maryasin <marsoft@ya.ru>
4 pkgname=z
5 pkgver=1.11
6 pkgrel=2
7 pkgdesc="Tracks your most used directories, based on 'frecency'"
8 arch=('any')
9 url="https://github.com/rupa/z/"
10 license=('WTFPL')
11 depends=('bash')
12 source=("$pkgname-$pkgver.tar.gz::https://codeload.github.com/rupa/$pkgname/tar.gz/v$pkgver")
13 sha256sums=('873761c2eaf283c526b87ef272c8c35f70e94ea079fbbc985ba32070638ff963')
14 install=z.install
16 package() {
17         cd "$srcdir/$pkgname-$pkgver"
19         # update path in manpage
20         sed -i z.1 -e "s:/path/to/z.sh:/usr/share/$pkgname/z.sh:g"
21         install -Dm 644 z.1 "$pkgdir/usr/share/man/man1/z.1"
23         install -Dm 644 z.sh "$pkgdir/usr/share/$pkgname/z.sh"