SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dos33fsprogs"

# SliTaz package receipt.

PACKAGE="dos33fsprogs"
#VERSION="tfv004"
VERSION="ootw-v2.8"
CATEGORY="system-tools"
SHORT_DESC="Tools for manipulating Apple II dos33 filesystems."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.deater.net/weave/vmwprod/apple/dos33fs.html"
#WGET_URL="https://github.com/peterferrie/dos33fsprogs/archive/$VERSION.tar.gz"
WGET_URL="https://github.com/deater/dos33fsprogs/archive/$VERSION.tar.gz"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|\(TRACKS_PER_DISK\).*|\1 sector_buffer[VTOC_NUM_TRACKS]|' dos33fs-utils/dos33.h
    sed -i 's|DISK VOLUME %.*|&\n\t\tprintf("%d FREE SECTORS\\n\\n",dos33_free_space(dos_fd)/BYTES_PER_SECTOR);|' dos33fs-utils/dos33.c
    sed -i 's|\(DISK VOLUME %i\)\\n|\1|' dos33fs-utils/dos33.c
    sed -i "s|/usr/local|$DESTDIR/usr|" Makefile.inc
    mkdir -p $DESTDIR/usr/bin
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs/
}
6017 packages and 861739 files in cooking database (Sun Sep 21 00:48:01 2025)