# SliTaz package receipt. PACKAGE="tmate" VERSION="2.4.0" CATEGORY="network" SHORT_DESC="Instant Terminal Sharing." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="https://tmate.io/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/tmate-io/$PACKAGE/archive/$VERSION.tar.gz" DEPENDS="libevent libssh msgpack ncurses" BUILD_DEPENDS="automake libevent-dev libssh-dev msgpack-dev ncurses-dev" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh export LIBNCURSES_LIBS="/lib/libncurses.so" export LIBNCURSES_FLAGS=" " export LIBS="/lib/libtinfo.so" ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }