37 lines
1023 B
Bash
37 lines
1023 B
Bash
# Template file for 'lnav'
|
|
pkgname=lnav
|
|
version=0.10.1
|
|
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
|
|
pcre-devel readline-devel sqlite-devel zlib-devel"
|
|
short_desc="Log file navigator"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="http://lnav.org/"
|
|
distfiles="https://github.com/tstack/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=4af855a463493105ae0746fc0da80304a689b5394eb6abfeede4dd843127c8bc
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
pre_build() {
|
|
make -C src/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
|
|
}
|