mirror of
https://github.com/dvorka/hstr.git
synced 2025-02-23 14:26:27 +08:00
Update PKGBUILD
This commit is contained in:
parent
ae1cd1c96c
commit
e9e0591f81
1 changed files with 21 additions and 11 deletions
32
PKGBUILD
32
PKGBUILD
|
@ -1,26 +1,36 @@
|
||||||
# Maintainer: Christian Wieden <wiedenchr at gmail dot com
|
# Maintainer: Christian Wieden <wiedenchr at gmail dot com
|
||||||
# Contributer: Ricardo Band <me at xengi dot de>
|
# Contributor: Ricardo Band <me at xengi dot de>
|
||||||
pkgname=hh
|
# Contributor: Filip Szymański <fszymanski at, fedoraproject.org>
|
||||||
pkgver=1.20
|
|
||||||
|
pkgname=hstr
|
||||||
|
pkgver=1.21
|
||||||
pkgrel=1
|
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."
|
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')
|
arch=('any')
|
||||||
url="https://github.com/dvorka/hstr"
|
url="https://github.com/dvorka/hstr"
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
makedepends=('readline' 'ncurses')
|
makedepends=('autoconf' 'automake' 'ncurses' 'readline')
|
||||||
_pkgver=$(echo "$pkgver" | sed 's/.[0-9]*$//')
|
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dvorka/${pkgname}/archive/${pkgver}.tar.gz)
|
||||||
source=(https://github.com/dvorka/hstr/releases/download/$pkgver/$pkgname-$pkgver-src.tgz)
|
sha256sums=('f0e9762f2a9587f0995bbd51cb64526ae852c2425ceb8ceee0747efba80ac6b3')
|
||||||
md5sums=('46336873fb23e7b59b54655f05b221d5')
|
|
||||||
|
|
||||||
build() {
|
prepare() {
|
||||||
cd "$srcdir/hstr"
|
cd "${pkgname}-${pkgver}"
|
||||||
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
|
||||||
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
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${pkgname}-${pkgver}/dist"
|
||||||
|
./1-dist.sh
|
||||||
|
cd ..
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/hstr"
|
cd "${pkgname}-${pkgver}"
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="${pkgdir}/" install
|
||||||
|
install -D -p -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
install -D -p -m 644 Changelog "${pkgdir}/usr/share/doc/${pkgname}/Changelog"
|
||||||
|
install -D -p -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue