SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "git"

# SliTaz package receipt.

PACKAGE="git"
VERSION="2.35.8"
CATEGORY="development"
SHORT_DESC="Fast version control system."
MAINTAINER="b1+slitaz@nagel.org"
LICENSE="GPL2"
WEB_SITE="https://git-scm.com/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"

SUGGESTED="git-lang"
DEPENDS="cacerts curl expat openssl zlib libffi"
BUILD_DEPENDS="curl-dev expat-dev openssl-dev perl python-dev zlib-dev"

# NO_NSEC=1
CROSS_BUGS="bug: can't run test and make package."
#HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --libexecdir=/usr/lib    \
        --without-tcltk        \
        $CONFIGURE_ARGS &&
    make THREADED_DELTA_SEARCH=1 &&
    make install THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/init.d

    cp -a $stuff/git-daemon    $fs/etc/init.d
    cp -a $install/usr    $fs

    # moved to package git-lang
    rm -rf            $fs/usr/share/locale

    strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
}

# edit daemons.conf.
post_install()
{
    if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"
      then
        mkdir -p "$1/var/www/git"
        echo '# Git daemon options.
GIT_REPO="/var/www/git/"
GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
' >> "$1/etc/daemons.conf"
    fi
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)