blob: f1ed915174a0a16b7908707f151650c8939e72e8 (
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
|
# shellcheck shell=tcl disable=SC2034,SC2154
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
_pkgname=tcl-prompt
pkgname=$_pkgname-git
pkgver=r21.f11e245
pkgrel=1
pkgdesc="Tcl plugin for powerlevel10k style prompt and WakaTime time tracking"
arch=(any)
url=https://github.com/wakatime/$_pkgname
license=(GPL3)
depends=(tcl tclreadline tcllib lsb-release procps-ng)
optdepends=(expect vitis vivado 'git: get project name')
makedepends=(git)
source=("git+$url#tag=f11e245093d86967d5dbc10e110f8b0fbbcc4b8f")
sha256sums=(SKIP)
pkgver() {
cd "$_pkgname" || return 1
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_pkgname" || return 1
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
install -d "$pkgdir/usr/lib"
cp -r modules "$pkgdir/usr/lib/$_pkgname"
cp -r bin "$pkgdir/usr"
}
|