mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-11 08:41:38 +02:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libedit
|
|
pkgver=20240517.3.1
|
|
_ver=${pkgver/./-}
|
|
pkgrel=0
|
|
pkgdesc="BSD line editing library"
|
|
url="https://www.thrysoee.dk/editline"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
depends_dev="bsd-compat-headers ncurses-dev"
|
|
makedepends_host="$depends_dev"
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
|
|
source="https://www.thrysoee.dk/editline/libedit-$_ver.tar.gz"
|
|
builddir="$srcdir"/libedit-$_ver
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# Prevent conflict with editline-doc and readline-doc
|
|
mv "$pkgdir"/usr/share/man/man3/editline.3 \
|
|
"$pkgdir"/usr/share/man/man3/libedit.3
|
|
|
|
# update symlinks
|
|
find "$pkgdir"/usr/share/man/man3/ -type l | while IFS= read -r path; do
|
|
[ "$(readlink "$path")" != 'editline.3.gz' ] && continue
|
|
echo ln -s -f -T -- 'libedit.3.gz' "$path"
|
|
done
|
|
|
|
rm "$pkgdir"/usr/share/man/man3/history.3*
|
|
}
|
|
|
|
sha512sums="
|
|
bc17371eeb8842b93cd5ed7ce3a04aa1cadf26aa697d92e3440f9f729a4d0631eef60ea2c96844ff773e1b3b80ae518fd3ae684126373dfc69b65d67a0f25e90 libedit-20240517-3.1.tar.gz
|
|
"
|