# HG changeset patch # User Hans-G?nter Theisgen # Date 1571931655 -3600 # Node ID 7cfacc80d0675de92ab547a16e8df6b97cec103e # Parent 1fd43dd7ebcb2410c490e3a54b46f610db8cc229 created package get-e-uae diff -r 1fd43dd7ebcb -r 7cfacc80d067 get-e-uae/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-e-uae/receipt Thu Oct 24 16:40:55 2019 +0100 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="get-e-uae" +VERSION="1.00" +CATEGORY="system-tools" +TAGS="emulator" +SHORT_DESC="Get Enhanced Ubiquitous Amiga Emulator." +MAINTAINER="maintainer@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://www.rcdrummond.net/uae/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/get-e-uae $fs/usr/bin +} diff -r 1fd43dd7ebcb -r 7cfacc80d067 get-e-uae/stuff/get-e-uae --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-e-uae/stuff/get-e-uae Thu Oct 24 16:40:55 2019 +0100 @@ -0,0 +1,137 @@ +#!/bin/sh +# +# get-e-uae - create and install SliTaz package e-uae +# +# (C) 2019 SliTaz - GNU General Public License v3. +# Author : HGT +# created: 2019-10-24 +# + +# === Initialisations === + +PKGS_DB="/var/lib/tazpkg" # packages database directory +PACKAGE="e-uae" # package to create and install +WEB_SITE="http://www.rcdrummond.net/uae/" +CATEGORY="system-tools" +TAGS="emulator" + +# Declare functions check_root, status, ... +. /lib/libtaz.sh +# and make commandline options (if any) available as variables + +is_installed() +{ + if [ -d $ROOT$PKGS_DB/installed/$PACKAGE ] + then #package is deemed to be installed + return 0 + else + return 1 + fi +} + + +# Show commandline options, if requested by --help +if [ "$help" == "yes" ] + then + echo "Commandline options: + $0 + --version= + --root= + --install=yes|no + --keep=no|yes + --tmpdir=" + exit +fi + +# Check for system administrator privileges +check_root + +title "Package $PACKAGE will be build as SliTaz package and installed" + +# Fetch latest version, unless version is set by option --version +[ -z "$version" ] && version="latest" + +# Install SliTaz package, unless inhibited by option --install=no +[ -z "$install" ] && install="yes" + +# Delete SliTaz package file $PACKAGE-$VERSION.tazpkg after installation, +# unless option --keep=yes is given +[ -z "$keep" ] && keep="no" + +# Directory for temporary files +[ -z "$tempdir" ] && TMP_DIR="/tmp/get-$PACKAGE" + +# Logging file (unused by now) +LOG=$TMP_DIR/get-$PACKAGE.log + +cat <