diff options
-rw-r--r-- | office/OpenAudible-bin/OpenAudible | 4 | ||||
-rw-r--r-- | office/OpenAudible-bin/OpenAudible-bin.SlackBuild | 102 | ||||
-rw-r--r-- | office/OpenAudible-bin/OpenAudible-bin.info | 10 | ||||
-rw-r--r-- | office/OpenAudible-bin/README | 1 | ||||
-rw-r--r-- | office/OpenAudible-bin/doinst.sh | 13 | ||||
-rw-r--r-- | office/OpenAudible-bin/slack-desc | 19 |
6 files changed, 149 insertions, 0 deletions
diff --git a/office/OpenAudible-bin/OpenAudible b/office/OpenAudible-bin/OpenAudible new file mode 100644 index 0000000000..6eee02da33 --- /dev/null +++ b/office/OpenAudible-bin/OpenAudible @@ -0,0 +1,4 @@ +#!/bin/bash + +export LD_LIBRARY_PATH="/opt/OpenAudible:${LD_LIBRARY_PATH}" && exec /opt/OpenAudible/OpenAudible + diff --git a/office/OpenAudible-bin/OpenAudible-bin.SlackBuild b/office/OpenAudible-bin/OpenAudible-bin.SlackBuild new file mode 100644 index 0000000000..4a11b64a7c --- /dev/null +++ b/office/OpenAudible-bin/OpenAudible-bin.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/bash + +# Slackware build script for OpenAudible-bin + +# 2025 Ioannis Anagnostakis GR +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=OpenAudible-bin +VERSION=${VERSION:-4.5.3} +SRCNAM=OpenAudible_"$VERSION"_x86_64 +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 + echo "Unsupported $ARCH exit..."; exit 1 +elif [ "$ARCH" = "i686" ]; then + echo "Unsupported $ARCH exit..."; exit 1 +elif [ "$ARCH" = "x86_64" ]; then + echo "" +elif [ "$ARCH" = "aarch64" ]; then + echo "SlackBuild is Un-tested for $ARCH" +else + echo "Unknown $ARCH..." +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +ar x $SRCNAM.deb +rm debian-binary control.tar.?z +tar -xJf data.tar.xz -C "$PKG" 2>/dev/null || \ +tar --use-compress-program=unzstd -xf data.tar.zst -C "$PKG" 2>/dev/null || \ +tar -xzf data.tar.gz -C "$PKG" 2>/dev/null || \ +{ echo "No valid archive found!"; exit 1; } +rm data.tar.?z + +mkdir -p $PKG/usr/bin +cp -R $PKG/opt/OpenAudible/jre/man $PKG/opt/OpenAudible/share \ + $PKG/usr/ + +mv $PKG/usr/share/applications/org.openaudible.OpenAudible.desktop $PKG/usr/share/applications/OpenAudible.desktop +sed -i 's/^Categories=.*/Categories=Education/' $PKG/usr/share/applications/OpenAudible.desktop + +cat $CWD/OpenAudible > $PKG/usr/bin/OpenAudible +chmod +x $PKG/usr/bin/OpenAudible + +find $PKG/opt/OpenAudible/jre/lib/ -type f -name "*.so" -exec chmod 755 {} \; + +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 + + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/office/OpenAudible-bin/OpenAudible-bin.info b/office/OpenAudible-bin/OpenAudible-bin.info new file mode 100644 index 0000000000..43e0f4f3ab --- /dev/null +++ b/office/OpenAudible-bin/OpenAudible-bin.info @@ -0,0 +1,10 @@ +PRGNAM="OpenAudible-bin" +VERSION="4.5.3" +HOMEPAGE="https://openaudible.org" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/openaudible/openaudible/releases/download/v4.5.3/OpenAudible_4.5.3_x86_64.deb" +MD5SUM_x86_64="1b153cc439dd9dfdab5e2cdc925ee7b5" +REQUIRES="webkit2gtk" +MAINTAINER="Ioannis Anagnostakis" +EMAIL="rizitis@gmail.com" diff --git a/office/OpenAudible-bin/README b/office/OpenAudible-bin/README new file mode 100644 index 0000000000..d8db529209 --- /dev/null +++ b/office/OpenAudible-bin/README @@ -0,0 +1 @@ +A desktop application downloading and managing your Audible audiobooks. diff --git a/office/OpenAudible-bin/doinst.sh b/office/OpenAudible-bin/doinst.sh new file mode 100644 index 0000000000..aea0f894eb --- /dev/null +++ b/office/OpenAudible-bin/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/office/OpenAudible-bin/slack-desc b/office/OpenAudible-bin/slack-desc new file mode 100644 index 0000000000..baad395bf9 --- /dev/null +++ b/office/OpenAudible-bin/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------------------------------------------------------| +OpenAudible-bin: OpenAudible-bin (Audiobook Manager for Audible Users) +OpenAudible-bin: +OpenAudible-bin: A cross-platform desktop application for downloading +OpenAudible-bin: and managing your Audible audiobooks. +OpenAudible-bin: +OpenAudible-bin: +OpenAudible-bin: HomePage: https://OpenAudible.org +OpenAudible-bin: +OpenAudible-bin: ProjectPage: https://github.com/OpenAudible/OpenAudible +OpenAudible-bin: +OpenAudible-bin: |