xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit e9e0591f811391c45dc8ac0faebf725dc8781359

Update PKGBUILD
Author: Filip Szymański
Author date (UTC): 2016-11-12 15:21
Committer name: Filip Szymański
Committer date (UTC): 2016-11-12 15:21
Parent(s): ae1cd1c96c4727307cab6b414d542045fb21ee82
Signing key:
Tree: b4bff26ae00d982c874128c27c179536188badc3
File Lines added Lines deleted
PKGBUILD 21 11
File PKGBUILD changed (mode: 100644) (index 146f764..ad6358b)
1 1 # Maintainer: Christian Wieden <wiedenchr at gmail dot com # Maintainer: Christian Wieden <wiedenchr at gmail dot com
2 # Contributer: Ricardo Band <me at xengi dot de>
3 pkgname=hh
4 pkgver=1.20
2 # Contributor: Ricardo Band <me at xengi dot de>
3 # Contributor: Filip Szymański <fszymanski at, fedoraproject.org>
4
5 pkgname=hstr
6 pkgver=1.21
5 7 pkgrel=1 pkgrel=1
6 8 pkgdesc="A command line utility that brings improved BASH command completion from the history. It aims to make completion easier and more efficient than Ctrl-r." pkgdesc="A command line utility that brings improved BASH command completion from the history. It aims to make completion easier and more efficient than Ctrl-r."
7 9 arch=('any') arch=('any')
8 10 url="https://github.com/dvorka/hstr" url="https://github.com/dvorka/hstr"
9 11 license=('Apache') license=('Apache')
10 makedepends=('readline' 'ncurses')
11 _pkgver=$(echo "$pkgver" | sed 's/.[0-9]*$//')
12 source=(https://github.com/dvorka/hstr/releases/download/$pkgver/$pkgname-$pkgver-src.tgz)
13 md5sums=('46336873fb23e7b59b54655f05b221d5')
12 makedepends=('autoconf' 'automake' 'ncurses' 'readline')
13 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dvorka/${pkgname}/archive/${pkgver}.tar.gz)
14 sha256sums=('f0e9762f2a9587f0995bbd51cb64526ae852c2425ceb8ceee0747efba80ac6b3')
14 15
15 build() {
16 cd "$srcdir/hstr"
16 prepare() {
17 cd "${pkgname}-${pkgver}"
17 18 sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/include/hstr_curses.h sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/include/hstr_curses.h
18 19 sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/hstr.c sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/hstr.c
20 }
21
22 build() {
23 cd "${pkgname}-${pkgver}/dist"
24 ./1-dist.sh
25 cd ..
19 26 ./configure --prefix=/usr ./configure --prefix=/usr
20 27 make make
21 28 } }
22 29
23 30 package() { package() {
24 cd "$srcdir/hstr"
25 make DESTDIR="$pkgdir/" install
31 cd "${pkgname}-${pkgver}"
32 make DESTDIR="${pkgdir}/" install
33 install -D -p -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
34 install -D -p -m 644 Changelog "${pkgdir}/usr/share/doc/${pkgname}/Changelog"
35 install -D -p -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
26 36 } }
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master