diff options
author | B. Watson <yalhcru@gmail.com> | 2022-05-25 07:10:52 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-28 09:11:35 +0700 |
commit | eda64253976db3924aa773e425812e6cf5c73075 (patch) | |
tree | 86fa172e54e03a3a62d3f22a94ec5fe65f41713a /office/epy | |
parent | 340785f0886b7b4ac2085d5b16c5e9d4518a5026 (diff) | |
download | slackbuilds-eda64253976db3924aa773e425812e6cf5c73075.tar.gz |
office/epy: Added (terminal ebook reader)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/epy')
-rw-r--r-- | office/epy/README | 8 | ||||
-rw-r--r-- | office/epy/epy.1 | 82 | ||||
-rw-r--r-- | office/epy/epy.SlackBuild | 75 | ||||
-rw-r--r-- | office/epy/epy.info | 10 | ||||
-rw-r--r-- | office/epy/epy.rst | 71 | ||||
-rw-r--r-- | office/epy/slack-desc | 19 |
6 files changed, 265 insertions, 0 deletions
diff --git a/office/epy/README b/office/epy/README new file mode 100644 index 0000000000..f2b977799c --- /dev/null +++ b/office/epy/README @@ -0,0 +1,8 @@ +epy (terminal ebook reader) + +epy is an ebook viewer that runs in a terminal and displays most +ebook formats, including epub, fb2, mobi, azw, and azw3. Since it's a +textmode application, it doesn't display images. + +After installation, run "epy --help" for usage information. Also, +press the ? key while epy is running, to see the built-in help. diff --git a/office/epy/epy.1 b/office/epy/epy.1 new file mode 100644 index 0000000000..0ea5c17d92 --- /dev/null +++ b/office/epy/epy.1 @@ -0,0 +1,82 @@ +.\" Man page generated from reStructuredText. +. +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.TH "EPY" 1 "2022-05-23" "2022.4.18" "SlackBuilds.org" +.SH NAME +epy \- terminal ebook reader +.\" RST source for epy(1) man page. Convert with: +. +.\" rst2man.py epy.rst > epy.1 +. +.\" rst2man.py comes from the SBo development/docutils package. +. +.SH SYNOPSIS +.sp +epy [\-h] [\-r] [\-d] [\-v] [PATH | # | PATTERN | URL] +.SH DESCRIPTION +.sp +\fBepy\fP is an ebook reader that runs in a terminal. It supports +\fBepub\fP, \fBfb2\fP, \fBmobi\fP, \fBazw\fP, and \fBazw3\fP formatted books, +plus it\(aqs able to view HTML, given a URL. \fBepy\fP only displays text, +not images. +.SH OPTIONS +.INDENT 0.0 +.TP +.B \-r\fP,\fB \-\-history +Print reading history. +.TP +.B \-d\fP,\fB \-\-dump +Dump the content of an ebook on standard output. +.TP +.B \-v\fP,\fB \-\-version +Output version number. +.TP +.B \-h\fP,\fB \-\-help +Output usage string. +.UNINDENT +.SH FILES +.sp +/usr/doc/epy\-2022.4.18/README.md is the complete documentation for \fBepy\fP\&. +.sp +~/.config/epy/ contains the config file, \fBconfiguration.json\fP, and the +reading history database, \fBstates.db\fP\&. +.SH COPYRIGHT +.sp +See the file /usr/doc/epy\-2022.4.18/LICENSE for license information. +.SH AUTHORS +.sp +epy was written by Benawi Adha. +.sp +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. +.SH SEE ALSO +.sp +The epy homepage: \fI\%http://www.epy.org/\fP +.\" Generated by docutils manpage writer. +. diff --git a/office/epy/epy.SlackBuild b/office/epy/epy.SlackBuild new file mode 100644 index 0000000000..7477675988 --- /dev/null +++ b/office/epy/epy.SlackBuild @@ -0,0 +1,75 @@ +#!/bin/bash + +# Slackware build script for epy + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=epy +VERSION=${VERSION:-2022.4.18} +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} + +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.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 {} \+ + +python3 setup.py install --root=$PKG + +# man page by SlackBuild author. +mkdir -p $PKG/usr/man/man1 +gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a LICENSE README.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/epy/epy.info b/office/epy/epy.info new file mode 100644 index 0000000000..2e8a73a287 --- /dev/null +++ b/office/epy/epy.info @@ -0,0 +1,10 @@ +PRGNAM="epy" +VERSION="2022.4.18" +HOMEPAGE="https://github.com/wustho/epy" +DOWNLOAD="https://github.com/wustho/epy/archive/v2022.4.18/epy-2022.4.18.tar.gz" +MD5SUM="b8d4c5704b78c87584d98808b18c9b4b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/office/epy/epy.rst b/office/epy/epy.rst new file mode 100644 index 0000000000..35013c8428 --- /dev/null +++ b/office/epy/epy.rst @@ -0,0 +1,71 @@ +.. RST source for epy(1) man page. Convert with: +.. rst2man.py epy.rst > epy.1 +.. rst2man.py comes from the SBo development/docutils package. + +.. |version| replace:: 2022.4.18 +.. |date| date:: + +=== +epy +=== + +--------------------- +terminal ebook reader +--------------------- + +:Manual section: 1 +:Manual group: SlackBuilds.org +:Date: |date| +:Version: |version| + +SYNOPSIS +======== + +epy [-h] [-r] [-d] [-v] [PATH | # | PATTERN | URL] + +DESCRIPTION +=========== + +**epy** is an ebook reader that runs in a terminal. It supports +**epub**, **fb2**, **mobi**, **azw**, and **azw3** formatted books, +plus it's able to view HTML, given a URL. **epy** only displays text, +not images. + +OPTIONS +======= + +-r, --history + Print reading history. + +-d, --dump Dump the content of an ebook on standard output. + +-v, --version Output version number. + +-h, --help + Output usage string. + +FILES +===== + +/usr/doc/epy-|version|/README.md is the complete documentation for **epy**. + +~/.config/epy/ contains the config file, **configuration.json**, and the +reading history database, **states.db**. + +COPYRIGHT +========= + +See the file /usr/doc/epy-|version|/LICENSE for license information. + +AUTHORS +======= + +epy was written by Benawi Adha. + +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. + +SEE ALSO +======== + +The epy homepage: http://www.epy.org/ diff --git a/office/epy/slack-desc b/office/epy/slack-desc new file mode 100644 index 0000000000..47d41b30ed --- /dev/null +++ b/office/epy/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------------------------------------------------------| +epy: epy (terminal ebook reader) +epy: +epy: epy is an ebook viewer that runs in a terminal and displays most +epy: ebook formats, including epub, fb2, mobi, azw, and azw3. +epy: +epy: +epy: +epy: +epy: +epy: +epy: |