SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "sunxi-tools"

# SliTaz package receipt.

PACKAGE="sunxi-tools"
VERSION="1.4.2"
CATEGORY="development"
SHORT_DESC="Help hacking Allwinner A10 (aka sun4i) based devices."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/linux-sunxi/sunxi-tools"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/linux-sunxi/$PACKAGE/archive/v$VERSION.tar.gz"

DEPENDS="libusb"
BUILD_DEPENDS="pkg-config libusb-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/linux-sunxi/sunxi-tools/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    make DESTDIR=$DESTDIR PREFIX=/usr &&
    make phoenix_info DESTDIR=$DESTDIR PREFIX=/usr &&
    make install DESTDIR=$DESTDIR PREFIX=/usr
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cp -a $src/bin        $fs/usr
    for i in sunxi-nand-part sunxi-pio sunxi-fexc fex2bin bin2fex sunxi-fel phoenix_info
      do
        cp -a $src/$i    $fs/usr/bin
      done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)