aboutsummaryrefslogtreecommitdiff
path: root/python/python3-tasklib
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-tasklib')
-rw-r--r--python/python3-tasklib/README1
-rw-r--r--python/python3-tasklib/python3-tasklib.SlackBuild61
-rw-r--r--python/python3-tasklib/python3-tasklib.info10
-rw-r--r--python/python3-tasklib/slack-desc19
4 files changed, 91 insertions, 0 deletions
diff --git a/python/python3-tasklib/README b/python/python3-tasklib/README
new file mode 100644
index 0000000000..8a52d405f6
--- /dev/null
+++ b/python/python3-tasklib/README
@@ -0,0 +1 @@
+Python library for interfacing with Taskwarrior
diff --git a/python/python3-tasklib/python3-tasklib.SlackBuild b/python/python3-tasklib/python3-tasklib.SlackBuild
new file mode 100644
index 0000000000..81905a3203
--- /dev/null
+++ b/python/python3-tasklib/python3-tasklib.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/bash
+# Slackware build script for python3-tasklib
+# Written by Dan-Simon Myrland <dansimon@radiotube.org>
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=python3-tasklib
+DIRNAM=tasklib
+VERSION=${VERSION:-2.5.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}
+
+# no need for CFLAGS or LIBDIRSUFFIX. actually this would be noarch,
+# except for the lib vs. lib64 python problem.
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$DIRNAM-$VERSION.tar.gz
+cd $DIRNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
+
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
+
+python3 -m build --wheel --no-isolation
+python3 -m installer --destdir "$PKG" dist/*.whl
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a AUTHORS README.rst $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
diff --git a/python/python3-tasklib/python3-tasklib.info b/python/python3-tasklib/python3-tasklib.info
new file mode 100644
index 0000000000..3124acd05c
--- /dev/null
+++ b/python/python3-tasklib/python3-tasklib.info
@@ -0,0 +1,10 @@
+PRGNAM="python3-tasklib"
+VERSION="2.5.1"
+HOMEPAGE="https://pypi.org/project/tasklib"
+DOWNLOAD="https://files.pythonhosted.org/packages/3e/50/3e876f39e31bad8783fd3fe117577cbf1dde836e161f8446631bde71aeb4/tasklib-2.5.1.tar.gz"
+MD5SUM="54fe1c0e0b7a845a5a9feb3ea423e367"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="python3-build python3-wheel"
+MAINTAINER="Dan-Simon Myrland"
+EMAIL="dansimon@radiotube.org"
diff --git a/python/python3-tasklib/slack-desc b/python/python3-tasklib/slack-desc
new file mode 100644
index 0000000000..63a7534ee4
--- /dev/null
+++ b/python/python3-tasklib/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------------------------------------------------------|
+python3-tasklib: python3-tasklib (taskwarrior library)
+python3-tasklib:
+python3-tasklib: Python library for interfacing with Taskwarrior
+python3-tasklib:
+python3-tasklib:
+python3-tasklib:
+python3-tasklib:
+python3-tasklib:
+python3-tasklib:
+python3-tasklib:
+python3-tasklib: