diff options
author | Quentin Bouvet | 2020-10-12 11:20:45 +0200 |
---|---|---|
committer | Quentin Bouvet | 2020-10-12 11:20:45 +0200 |
commit | 82a7e7a442064b5b87718b7f92942a8d641684bd (patch) | |
tree | 6ef2e38e30e9c2e545f8ace9d2546e513ade966b /PKGBUILD | |
download | aur-82a7e7a442064b5b87718b7f92942a8d641684bd.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4ba98fd211ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ + +# Maintainer: Quentin Bouvet <qbouvet at outlook dot com> +pkgname=bash-command-timer-git +provides=(bash-command-timer) +pkgver=r39.f1b5412 +pkgrel=1 +pkgdesc="Pretty-print execution time for each bash command." +arch=('any') +url="https://github.com/jichu4n/bash-command-timer" +license=('APACHE') +#makedepends=('') +depends=('bash-preexec-git') + +source=("${pkgname}-${pkgver}::git+https://github.com/jichu4n/bash-command-timer.git#branch=master") +install="${pkgname}.install" +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname-$pkgver" + # Cf. https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git + ( set -o pipefail + git describe --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)" + ) +} + +#build() { +# +#} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -D -m0755 "$srcdir/$pkgname-$pkgver/bash_command_timer.sh" "$pkgdir/usr/share/bash-command-timer/bash_command_timer.sh" +} + +# +# makepkg --printsrcinfo > .SRCINFO +# |