SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pcem"

# SliTaz package receipt.

PACKAGE="pcem"
VERSION="17"
CATEGORY="misc"
SHORT_DESC="An IBM PC emulator"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://pcem-emulator.co.uk/"
WGET_URL="${WEB_SITE}files/PCemV${VERSION}Linux.tar.gz"
TAGS="virtualization emulator"
SUGGESTED="get-pcem-roms"

DEPENDS="wxWidgets libsdl2 openal alsa-lib"
BUILD_DEPENDS="wxWidgets-dev libsdl2-dev openal-dev alsa-lib-dev"

current_version()
{
    wget -O - $WEB_SITE/downloads.html 2>/dev/null | \
    sed '/tar/!d;s|.*PCemV\(.*\)Linux.tar.*".*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
    ./configure --prefix=/usr \
        --enable-networking \
        --enable-alsa \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs/
    mkdir -p $install/usr/share/doc
    cp $src/readme.html $install/usr/share/doc
    cp $src/COPYING $install/usr/share/doc
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)