38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# Template file for 'lnav'
|
|
pkgname=lnav
|
|
version=0.12.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="automake openssh zlib-devel"
|
|
makedepends="bzip2-devel gpm-devel libarchive-devel libcurl-devel ncurses-devel
|
|
pcre2-devel readline-devel sqlite-devel zlib-devel"
|
|
checkdepends="tar"
|
|
short_desc="Log file navigator"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="http://lnav.org/"
|
|
distfiles="https://github.com/tstack/lnav/archive/v${version}.tar.gz"
|
|
checksum=d431840213549c8175780ecc6151ae66c3ecf27b48e5e859a6a18df83c4a02bd
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
pre_build() {
|
|
make -C tools bin2c \
|
|
CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
|
|
CXX="$CXX_FOR_BUILD" CXXFLAGS="$BUILD_CXXFLAGS" \
|
|
LDFLAGS= LIBS=
|
|
make -C src ptimec \
|
|
CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
|
|
CXX="$CXX_FOR_BUILD" CXXFLAGS="$BUILD_CXXFLAGS" \
|
|
LDFLAGS= LIBS=
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|