python/python-lhafile: Renamed python2-lhafile.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2021-05-03 06:50:15 +01:00 committed by Robby Workman
parent 9c1a13348a
commit eaa9da6193
5 changed files with 29 additions and 28 deletions

View File

@ -1,19 +0,0 @@
# 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------------------------------------------------------|
python-lhafile: python-lhafile (Python LHA archive extension)
python-lhafile:
python-lhafile: This project is an updated version of the project found
python-lhafile: at http://trac.neotitans.net/wiki/lhafile.
python-lhafile: It is primarily used as a component in FS-UAE Launcher to index and
python-lhafile: extract files from .lha archives. The project consists of a Python
python-lhafile: package (lhafile) and a C extension for Python (lzhlib).
python-lhafile:
python-lhafile: Homepage: http://fengestad.no/python-lhafile/
python-lhafile:
python-lhafile:

View File

@ -24,14 +24,15 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=python-lhafile
PRGNAM=python2-lhafile
SRCNAM=python-lhafile
VERSION=${VERSION:-0.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -42,8 +43,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -61,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -71,7 +72,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
python2 setup.py install --root=$PKG
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

View File

@ -1,4 +1,4 @@
PRGNAM="python-lhafile"
PRGNAM="python2-lhafile"
VERSION="0.2.1"
HOMEPAGE="http://fengestad.no/python-lhafile/"
DOWNLOAD="http://fengestad.no/python-lhafile/python-lhafile-0.2.1.tar.gz"

View File

@ -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------------------------------------------------------|
python2-lhafile: python2-lhafile (Python LHA archive extension)
python2-lhafile:
python2-lhafile: This project is an updated version of the project found
python2-lhafile: at http://trac.neotitans.net/wiki/lhafile.
python2-lhafile: It is primarily used as a component in FS-UAE Launcher to index and
python2-lhafile: extract files from .lha archives. The project consists of a Python
python2-lhafile: package (lhafile) and a C extension for Python (lzhlib).
python2-lhafile:
python2-lhafile: Homepage: http://fengestad.no/python2-lhafile/
python2-lhafile:
python2-lhafile: