SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "st"

# SliTaz package receipt.

PACKAGE="st"
VERSION="0.8.5"
CATEGORY="x-window"
SHORT_DESC="A simple terminal implementation for X."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://st.suckless.org/"
REPOLOGY="st-term"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://dl.suckless.org/$PACKAGE/$TARBALL"

DEPENDS="fontconfig freetype ncursesw-extra xorg-libX11 xorg-libXft"
BUILD_DEPENDS="fontconfig-dev freetype-dev xorg-libX11-dev \
    xorg-libXft-dev"

#HOST_ARCH="i486 arm"

current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    make CC=${HOST_SYSTEM}-gcc
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    mkdir -p $fs/usr/share/$PACKAGE

    cp -a $src/$PACKAGE    $fs/usr/bin
    cp $src/st.info        $fs/usr/share/$PACKAGE
}

post_install()
{
    chroot "$1/" tic -s /usr/share/$PACKAGE/st.info
}
6047 packages and 205261 files in current database (Tue Jun 11 00:01:12 2024)