mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-09 23:51:37 +01:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libedit
|
|
pkgver=20240808.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
|
|
}
|
|
|
|
sha512sums="
|
|
b11d64947f9484bb2320b0fbcfdc94466993af1dfa0d853853b73c222e95d6c1e78d88d0c305929b95bf7a85009129475c9fef0ac8595b43d75543d85052a4ff libedit-20240808-3.1.tar.gz
|
|
"
|