diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-15 09:59:52 +0700 |
|---|---|---|
| committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-11-15 10:04:53 +0700 |
| commit | 41e571e9aae04df7ea6396b4791aa1d4d43879ae (patch) | |
| tree | 11dc7ff8c9ebb887034fc650a310914e4c5ba844 /python/python3-editorconfig/python3-editorconfig.SlackBuild | |
| parent | 6a0dd727d8c3aa4d8a92749653e2ace44c939309 (diff) | |
python/python3-editorconfig: Added (Meta Configuration for Text Editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-editorconfig/python3-editorconfig.SlackBuild')
| -rw-r--r-- | python/python3-editorconfig/python3-editorconfig.SlackBuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/python/python3-editorconfig/python3-editorconfig.SlackBuild b/python/python3-editorconfig/python3-editorconfig.SlackBuild new file mode 100644 index 0000000000..514623da67 --- /dev/null +++ b/python/python3-editorconfig/python3-editorconfig.SlackBuild @@ -0,0 +1,62 @@ +#!/bin/bash + +# Slackware build script for python3-editorconfig + +# Written by B. Watson (urchlay@slackware.uk) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=python3-editorconfig +SRCNAM=editorconfig +VERSION=${VERSION:-0.17.1} +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 [ ! -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} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find . ! -type l -a \ + \( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \ + \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \) + +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + +python3 setup.py install --root=$PKG + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a COPYING* LICENSE* README* $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$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 |
