diff options
Diffstat (limited to 'office/vit')
-rw-r--r-- | office/vit/README | 2 | ||||
-rw-r--r-- | office/vit/slack-desc | 19 | ||||
-rw-r--r-- | office/vit/vit.SlackBuild | 60 | ||||
-rw-r--r-- | office/vit/vit.info | 10 |
4 files changed, 91 insertions, 0 deletions
diff --git a/office/vit/README b/office/vit/README new file mode 100644 index 0000000000..dc3eb8ff63 --- /dev/null +++ b/office/vit/README @@ -0,0 +1,2 @@ +Visual Interface Taskwarrior (vit) provides a user-friendly interface +for the taskwarrior task manager. diff --git a/office/vit/slack-desc b/office/vit/slack-desc new file mode 100644 index 0000000000..a4cb780f02 --- /dev/null +++ b/office/vit/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------------------------------------------------------| +vit: vit (ncurses front-end for taskwarrior) +vit: +vit: Visual Interface Taskwarrior (vit) provides a user-friendly interface +vit: for the taskwarrior task manager. +vit: +vit: +vit: +vit: +vit: +vit: +vit: diff --git a/office/vit/vit.SlackBuild b/office/vit/vit.SlackBuild new file mode 100644 index 0000000000..4869822cf0 --- /dev/null +++ b/office/vit/vit.SlackBuild @@ -0,0 +1,60 @@ +#!/bin/bash +# Slackware build script for vit +# Written by Dan-Simon Myrland <dansimon@radiotube.org> + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=vit +VERSION=${VERSION:-2.3.3} +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/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$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 *.md $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/office/vit/vit.info b/office/vit/vit.info new file mode 100644 index 0000000000..d0225aaa17 --- /dev/null +++ b/office/vit/vit.info @@ -0,0 +1,10 @@ +PRGNAM="vit" +VERSION="2.3.3" +HOMEPAGE="https://github.com/yt-dlp/yt-dlp" +DOWNLOAD="https://github.com/vit-project/vit/archive/v2.3.3/vit-2.3.3.tar.gz" +MD5SUM="cd4632887556fb06f62c6e36136668bd" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="python3-build python-urwid python3-tasklib task" +MAINTAINER="Dan-Simon Myrland" +EMAIL="dansimon@radiotube.org" |