Package Details: bibox2-bin 2.4.12-1

Git Clone URL: https://aur.archlinux.org/bibox2-bin.git (read-only, click to copy)
Package Base: bibox2-bin
Description: Offizieller Client für Westermann Schulbücher / Official Client for school books by Westermann
Upstream URL: https://www.bibox.schule
Keywords: westermann
Licenses: custom
Provides: bibox2
Submitter: LeSnake
Maintainer: LeSnake
Last Packager: LeSnake
Votes: 2
Popularity: 0.000000
First Submitted: 2021-09-25 22:51 (UTC)
Last Updated: 2024-04-08 08:41 (UTC)

Latest Comments

micleh commented on 2024-12-11 03:36 (UTC) (edited on 2026-04-01 11:54 (UTC) by micleh)

Hi @LeSnake

Could you please review this new package build for the latest 3.0.4 version:

# Maintainer: TBA
pkgname=bibox-bin
pkgver=3.0.4
pkgrel=1
pkgdesc="Official client for Westermann textbooks"
arch=('x86_64')
url="https://www.bibox.schule"
license=('custom')
# inetutils - prevent /bin/sh: line 1: hostname: command not found
depends=('org.freedesktop.secrets' 'gtk3' 'ffmpeg' 'pango' 'inetutils')
source=("${pkgname}-${pkgver}.deb::https://static.bibox2.westermann.de/apps/linux-deb")
noextract=("${pkgname}-${pkgver}.deb")
b2sums=('c0420801f884beb62fc28f80592ff307fec2d9aa5a331771d6fb44ab65faf928eccce0d4f1a9c172944bc7397e3131fe235b7fa679cfbd2e00654baf06245462')

prepare() {
    ar x "${pkgname}-${pkgver}.deb"
    tar -xf data.tar.xz

    # prevent a path with a space in it
    mv opt/BiBox\ 2.0 opt/bibox
}

package() {
    mkdir -p "${pkgdir}/opt/bibox"
    cp -a "opt/bibox/." "${pkgdir}/opt/bibox/"

    install -d "${pkgdir}/usr/bin"
    cat > "${pkgdir}/usr/bin/bibox" << 'EOF'
#!/bin/sh

# Upstream checks APPIMAGE and logs a warning when unset.
export APPIMAGE="/opt/bibox/bibox"

exec /opt/bibox/bibox "$@"
EOF
    chmod 755 "${pkgdir}/usr/bin/bibox"

    install -Dm644 usr/share/applications/bibox.desktop "${pkgdir}/usr/share/applications/bibox.desktop"
    sed -i 's|Icon=/usr/share/icons/hicolor/0x0/apps/bibox2.png|Icon=/usr/share/icons/hicolor/scalable/apps/bibox.png|g' "${pkgdir}/usr/share/applications/bibox.desktop"

    # Point desktop launcher to package-managed wrapper.
    sed -i 's|Exec="/opt/BiBox 2.0/bibox" %U|Exec="/usr/bin/bibox" %U|g' "${pkgdir}/usr/share/applications/bibox.desktop"
    sed -i 's|Exec="/opt/bibox/bibox" %U|Exec="/usr/bin/bibox" %U|g' "${pkgdir}/usr/share/applications/bibox.desktop"

    install -Dm644 usr/share/icons/hicolor/0x0/apps/bibox.png "${pkgdir}/usr/share/icons/hicolor/scalable/apps/bibox.png"
}