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 |
} |
} |