blob: 7f8e611d2411547c68faa439520b71c7e3095386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Ahmad Hasan Mubashshir <ahmubashshir@gmail.com>
# from: git
pkgname=tldr-sh
pkgver=r103.35e652d
pkgrel=1
pkgdesc="A fully-functional POSIX shell client for tldr."
arch=(any)
url="https://github.com/raylee/tldr-sh-client"
license=('MIT')
depends=('curl')
makedepends=('git')
provides=('tldr')
conflicts=(
'tldr'
'tldr++'
'tldr-git'
'tealdeer'
'nodejs-tldr'
'tealdeer-bin'
'tealdeer-git'
'tldr-bash-git'
'nodejs-tldr-git'
'tldr-cpp-client'
'tldr-go-client-git'
'tldr-python-client'
)
source=(
'tldr-sh::git+https://github.com/raylee/tldr-sh-client'
'tldr.zsh'
)
sha256sums=('SKIP'
'9b187a7a8955c602694de859a65a60739784ccebbd04181bce22e0737d880eb5')
pkgver()
{
cd "$srcdir/$pkgname"
(
set -o pipefail
git describe --tags --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$srcdir"
install -Dm755 "$pkgname/tldr" "$pkgdir/usr/bin/tldr"
install -Dm755 "tldr.zsh" "$pkgdir/usr/share/zsh/site-functions/_tldr"
}
|