summaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
author SPN <pwmn-master@hotmail.com>2022-07-08 13:04:28 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-09 10:06:08 +0700
commitf3a96c932d384070faf87409462761834a9db3ab (patch)
tree76addc872323563cbc7bf0005f775b9ba7a91ce3 /development
parent4f57e4ec6972bba8687946499bfd13078eff593a (diff)
downloadslackbuilds-f3a96c932d384070faf87409462761834a9db3ab.tar.gz
slackbuilds-f3a96c932d384070faf87409462761834a9db3ab.tar.xz
development/minipro: Added (MiniPRO TL866xx chip programmers S/W)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/minipro/README23
-rw-r--r--development/minipro/minipro.SlackBuild110
-rw-r--r--development/minipro/minipro.info10
-rw-r--r--development/minipro/slack-desc19
4 files changed, 162 insertions, 0 deletions
diff --git a/development/minipro/README b/development/minipro/README
new file mode 100644
index 0000000000..e3c6d0677f
--- /dev/null
+++ b/development/minipro/README
@@ -0,0 +1,23 @@
+minipro is an open source program for controlling the MiniPRO TL866xx
+series of chip programmers.
+
+This program exists because the manufacturer of the MiniPRO TL866xx
+series of chip programmers does not provide a program for use on Linux
+or other flavors of Unix. We who keep this project going prefer a
+simple, free, and open-source program that presents a command-line
+interface that allows for a GUI front-end if desired.
+
+Features
+
+- Native support for Linux, BSD, and other flavors of Unix.
+- Compatibility with Minipro TL866CS, TL866A, and TL866II+ from
+- Autoelectric (http://www.autoelectric.cn/en/tl866_main.html)
+- More than 13000 target devices (including AVRs, PICs, various BIOSes
+ and EEPROMs)
+- ZIF40 socket and ISP support
+- Vendor-specific MCU configuration bits
+- Chip ID verification
+- Overcurrent protection
+- System testing
+
+https://gitlab.com/DavidGriffith/minipro
diff --git a/development/minipro/minipro.SlackBuild b/development/minipro/minipro.SlackBuild
new file mode 100644
index 0000000000..17d2b9be07
--- /dev/null
+++ b/development/minipro/minipro.SlackBuild
@@ -0,0 +1,110 @@
+#!/bin/bash
+
+# Slackware build script for minipro
+
+# Copyright 2022 SPN Team
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+
+PRGNAM=minipro
+VERSION=${VERSION:-0.5}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+make SHARE_INSTDIR=$PKG/usr/share/minipro
+make install DESTDIR=$PKG PREFIX=/usr SHARE_INSTDIR=$PKG/usr/share/minipro
+mv $PKG/usr/share/man $PKG/usr/man
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+rm -f $PKG/usr/info/dir
+
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ LICENSE README.md tl866iiplus.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/minipro/minipro.info b/development/minipro/minipro.info
new file mode 100644
index 0000000000..d64f7f1f69
--- /dev/null
+++ b/development/minipro/minipro.info
@@ -0,0 +1,10 @@
+PRGNAM="minipro"
+VERSION="0.5"
+HOMEPAGE="https://gitlab.com/DavidGriffith/minipro/"
+DOWNLOAD="https://gitlab.com/DavidGriffith/minipro/-/archive/0.5/minipro-0.5.tar.bz2"
+MD5SUM="94236db92e570719b864aeeff37ec91b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="SPN"
+EMAIL="pwmn-master@hotmail.com"
diff --git a/development/minipro/slack-desc b/development/minipro/slack-desc
new file mode 100644
index 0000000000..8f877ecccd
--- /dev/null
+++ b/development/minipro/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+minipro: minipro (A program for the MiniPRO TL866xx chip programmers)
+minipro:
+minipro: This program exists because the manufacturer of the MiniPRO TL866xx
+minipro: series of chip programmers does not provide a program for use on
+minipro: Linux or other flavors of Unix. We who keep this project going
+minipro: prefer a simple, free, and open-source program that presents a
+minipro: command-line interface that allows for a GUI front-end if desired.
+minipro:
+minipro:
+minipro:
+minipro: https://gitlab.com/DavidGriffith/minipro