blob: 1e838b4b8fff23562e92da1ee030afbf60e14630 (
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
|
# Maintainer: Christian Wieden <wiedenchr at gmail dot com
# Contributer: Ricardo Band <me at xengi dot de>
# Contributor: Filip SzymaĆski <fszymanski at, fedoraproject.org>
pkgname=hstr-git
pkgver=1.24.r12.g00c867d
pkgrel=1
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."
arch=('any')
url="https://github.com/dvorka/hstr"
license=('Apache')
makedepends=('git' 'readline' 'ncurses')
depends=('readline')
source=(git://github.com/dvorka/hstr.git#branch=master)
md5sums=('SKIP')
conflicts=('hh');
build() {
cd "hstr/dist"
./1-dist.sh
cd ..
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/hstr.c
./configure --prefix=/usr
make
}
package() {
cd "hstr"
make DESTDIR="$pkgdir/" install
}
pkgver() {
cd "hstr"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
|