blob: c637137e53ac55f7bde1b2ef39326a59d881c56d (
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
|
# Maintainer: Christian Wieden <wiedenchr at gmail dot com
# Contributer: Anthony Vitacco <anthony at littlegno dot me>
# Original PKGBUILD: Ricardo Band <me at xengi dot de>
pkgname=hstr-git
pkgver=1.17.r11.g042501d
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=('i686' 'x86_64')
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'
}
|