1

Topic: [Collection] Packages never getting into the repositories or removed

Hello together,

within this thread I want to collect PKGBUILDs for components and more never getting into the repositories for obvious reasoning: They cannot be part of our future HyperbolaBSD, but nevertheless they can be also helpful on other ways like motivation to learn more about packaging. For the beginning here is libstdc++5, not finally tested under chroot, so I will look after it later on again.

PKGBUILD

# Maintainer (Arch): JustKidding <jk@vin.ovh>
# Contributor (Arch): Jan de Groot <jgc@archlinux.org>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=libstdc++5
pkgver=3.3.6
pkgrel=1
pkgdesc="GNU Standard C++ library version 3"
arch=('i686' 'x86_64')
url='https://gcc.gnu.org'
license=('GPL-2' 'LGPL-2.1')
depends=('gcc-libs')
makedepends=('gcc' 'binutils' 'bash')
options=('!makeflags')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2
        gcc-3.4.3-no_multilib_amd64.patch
        gcc-3.4.6-ucontext.patch
        siginfo.patch)
sha512sums=('6a68d5b293f4a2cca28b6443de88189b704e5b5fd80b50c3ac3ee5679b6fac2cb915a9744a82cdce0bc4b69609ab1a285cddd9a0021e127f9625f1be18bdffd8'
            '41d828f32e8acf38e14bc84930d453a01aaa54d26f8cd1f5959b2a27cef4c3b208acc3a9b0b56404f6f65f0771357dc8b5e42e4b4ab0589b45681ec7a48f620f'
            '27681d69284628717f9cfad3615e5653b9c7ddbde3c3ed78bf015083409f1852e1275cd9a33511de4a23f9daced3d79797bd81d6b8c95647760c420d23d43154'
            'f9eab82e2297c25d13181857ee5994e4f3ecb59598d0183e09a7be005769a2427c2b1006b1f96391afe7fc461bb598eb5ead71e9eca5d0482ee870855b8cca56'
            '9e69a80a9e3f154ef3ba97777a1218fabfa402466d3b1ca4c38cf931739860d8dc5d58089fa3cf1300465f46984bd6efaf56651f0264710fec44d3dbbfd8bb71')

prepare() {
  cd gcc-$pkgver

  patch -Np1 -i $srcdir/gcc-3.4.3-no_multilib_amd64.patch
  # fix build issue with recent gcc
  sed -i "s#O_CREAT#O_CREAT, 0666#" gcc/collect2.c

  # No fixincludes
  sed -e 's@\./fixinc\.sh@-c true@' \
      -e '# Clean up some warnings that arent our business' \
      -e 's:-Wstrict-prototypes::g' \
      -e 's:-Wtraditional::g' \
      -e 's:-pedantic::g' \
      -e 's:-Wall::g' \
    -i 'gcc/Makefile.in'
  sed -e 's:-Wall -Wtraditional -pedantic::g' -i 'libiberty/configure'

  # Patches are the wrong way to do this
  sed -e '# gcc-3.4.6-ucontext.patch' \
      -e 's:\bstruct ucontext\b:ucontext_t:g' \
      -e '# siginfo.patch' \
      -e 's:\bstruct siginfo\b:siginfo_t:g' \
    -i $(grep --include 'linux*.h' -lrFe $'struct ucontext\nstruct siginfo' gcc/config/)

  mkdir ../gcc-build
}

build(){
  export CFLAGS="-march=${CARCH/_/-} -O2"
  export CXXFLAGS="-march=${CARCH/_/-} -O2"
  export SHELL='/bin/bash' # doesn't work with fish
  unset CPPFLAGS

  cd gcc-build
  CPP=/usr/bin/cpp ../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
      --enable-languages=c++ --enable-threads=posix --enable-__cxa_atexit \
      --disable-multilib --libdir=/usr/lib
  make all-target-libstdc++-v3 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" -j$(nproc)
}

package() {
  cd gcc-build
  make DESTDIR="${pkgdir}" install-target-libstdc++-v3

  # Remove includefiles and libs provided by gcc
  rm -rf "${pkgdir}"/usr/{include,share/locale}
  rm -f "${pkgdir}"/usr/lib/*.a
  rm -f "${pkgdir}"/usr/lib/libstdc++.so

  # Add licenses
  install -Dm644 "${srcdir}/gcc-$pkgver"/COPYING{,.LIB} -t "${pkgdir}"/usr/share/licenses/$pkgname
}

gcc-3.4.3-no_multilib_amd64.patch

--- gcc-3.4.3/gcc/config/i386/t-linux64
+++ gcc-3.4.3/gcc/config/i386/t-linux64
@@ -6,7 +6,7 @@
 
 MULTILIB_OPTIONS = m64/m32
 MULTILIB_DIRNAMES = 64 32 
-MULTILIB_OSDIRNAMES = ../lib64 ../lib
+MULTILIB_OSDIRNAMES = . ../lib
 
 LIBGCC = stmp-multilib
 INSTALL_LIBGCC = install-multilib

gcc-3.4.6-ucontext.patch

--- gcc-3.4.6/gcc/config/i386/linux64.h
+++ gcc-3.4.6/gcc/config/i386/linux64.h
@@ -90,7 +90,7 @@
     if (*(unsigned char *)(pc_+0) == 0x48                \
     && *(unsigned long *)(pc_+1) == 0x050f0000000fc0c7)        \
       {                                    \
-    struct ucontext *uc_ = (CONTEXT)->cfa;                \
+    ucontext_t *uc_ = (CONTEXT)->cfa;                \
     sc_ = (struct sigcontext *) &uc_->uc_mcontext;            \
       }                                    \
     else                                \
@@ -160,7 +160,7 @@
       struct siginfo *pinfo;                    \
       void *puc;                            \
       struct siginfo info;                        \
-      struct ucontext uc;                        \
+      ucontext_t uc;                        \
     } *rt_ = (CONTEXT)->cfa;                    \
     sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext;        \
       }                                    \

siginfo.patch

--- gcc/config/i386/linux.h.orig    2014-04-28 10:00:16.556121683 +0000
+++ gcc/config/i386/linux.h    2014-04-28 10:00:43.105959247 +0000
@@ -257,9 +257,9 @@
       {                                    \
     struct rt_sigframe {                        \
       int sig;                            \
-      struct siginfo *pinfo;                    \
+      siginfo_t *pinfo;                    \
       void *puc;                            \
-      struct siginfo info;                        \
+      siginfo_t info;                        \
       struct ucontext uc;                        \
     } *rt_ = (CONTEXT)->cfa;                    \
     sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext;        \

To underline again: Those packages will never get any kind of commit as they depend fully on GNU/Linux and will only run within that.

Also to note: Please use ONLY packages with full free, libre and permissive licensing!
Please do NOT debate on or off for packages as this thread is not meant to debate and discuss, Same for wishing packages: This is not the intention of this thread and therefore all postings should contain a package-script.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

2

Re: [Collection] Packages never getting into the repositories or removed

smstools as possible service for hosting a SMS-gateway.

PKGBUILD

# Maintainer (Arch): Denis Yantarev <denis dot yantarev at gmail dot com>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=smstools
pkgver=3.1.21
_debver=$pkgver
_debrel=4
pkgrel=1
pkgdesc="Free and libre SMS gateway which can send and receive messages through GSM modems and mobile phones"
arch=('i686' 'x86_64')
url='http://smstools3.kekekasvi.com/'
license=('GPL')
backup=('etc/smsd.conf'
        'etc/logrotate.d/smsd')
#install=smsd.install
depends=('bash')
makedepends=('quilt')
source=("https://deb.debian.org/debian/pool/main/s/smstools/${pkgname}_${pkgver}.orig.tar.gz"
        "https://deb.debian.org/debian/pool/main/s/smstools/smstools_${_debver}-${_debrel}.debian.tar.xz"
    "smsd.conf"
    "smsd.logrotate"
        "smsd.initd")
sha512sums=('0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31'
            'ae2317ba5b15868049bae93b5c19b65613b1d2ffe0c67c8b7b2222307b1a020b3ea65ec2e10e16d67bae10b74e144ab7d6dbef7624d08b0192738e5b2106a551'
            '79d6a47706e591ede00609d7df26ae6bcec74ace80703d34ab8f9c3f492b0f791a5e59a0793c935edf4cdb36f7e9db3f92f4cf83052f6829bc8c119a103980ca'
            'be17eaa869efb298533e4dffc05a07674b73b9497127e4f92e1d0a619a526ebcd562948da11c6e04ed6a0f9162336316d3ea3a47eee17386a16528f703060c41'
            '0ea806c9754b96f6e94269c0beb334027f3d4ca50c7afe20ce2145369fd5e4ce88dc43242ec0b5f681209a3d128697c9d624b8ef7e150f856c7559fcca2f5614')

prepare() {
  mv "smstools3" "$pkgname-$pkgver"
  cd $srcdir/$pkgname-$pkgver
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    # Doesn't apply
    rm -v debian/patches/enable-statistics.patch || true
    rm -v debian/patches/gcc10.patch || true
    rm -v debian/patches/hardening.patch || true
    rm -v debian/patches/kfreebsd.patch || true

    quilt push -av
  fi
}

build() {
  cd $srcdir/$pkgname-$pkgver
  make
}

package()
{
  cd $srcdir/$pkgname-$pkgver

  install -Dm755 src/smsd -t $pkgdir/usr/sbin

  cd ./scripts
  for bin in sendsms sms2html sms2unicode unicode2sms; do
    install -Dm755 $bin -t $pkgdir/usr/bin
  done

  install -Dm644 $srcdir/smsd.conf $pkgdir/etc/smsd.conf
  install -Dm755 $srcdir/smsd.initd $pkgdir/etc/init.d/smsd
  install -Dm644 $srcdir/smsd.logrotate $pkgdir/etc/logrotate.d/smsd

  mkdir -p $pkgdir/var/spool/sms/incoming
  mkdir -p $pkgdir/var/spool/sms/outgoing
  mkdir -p $pkgdir/var/spool/sms/checked
  chmod 0750 $pkgdir/var/spool/sms
  chmod 0770 $pkgdir/var/spool/sms/*

  mkdir -p $pkgdir/var/log/smsd
  chmod 0770 $pkgdir/var/log/smsd
}

smsd.conf

# Example smsd.conf. Read the manual for a description

devices = GSM1
logfile = /var/log/smsd/smsd.log
loglevel = 7

[GSM1]
device = /dev/ttyS0
incoming = yes
#pin = 1111

smsd.initd

#!/sbin/openrc-run

command="/usr/sbin/smsd"
pidfile="/run/smsd/smsd.pid"
command_args="-p $pidfile -i ${pidfile%/*}/smsd.working}"
: ${command_user:=smsd}
: ${command_group:=smsd}
: ${cfgfile:=/etc/smsd.conf}

depend() {
    after firewall
}

start_pre() {
    checkpath --directory --owner $command_user:$command_group ${pidfile%/*} \
        /var/log/smsd \
        /var/spool/sms/incoming \
        /var/spool/sms/outgoing \
        /var/spool/sms/checked
}

smsd.logrotate

/var/log/smsd/smsd.log {
    notifempty
    missingok
    sharedscripts
    copytruncate
    su root smsd
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

3

Re: [Collection] Packages never getting into the repositories or removed

The emulator noods:

PKGBUILD

# Maintainer (Arch): Darvin Delgado <dnmodder@gmail.com>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

pkgname=noods
pkgver=202210
pkgrel=1
pkgdesc="A (hopefully!) speedy NDS emulator."
arch=('i686' 'x86_64')
url='https://github.com/Hydr8gon/NooDS'
license=('GPL-3')
depends=('wxgtk3' 'portaudio')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Hydr8gon/NooDS/archive/refs/tags/release.tar.gz")
sha512sums=('8e4f77182eed0e75a904670dbfd33ad0b2f0f9464671fd9b2e88c1e9c9ffc541cdfff82432c0e661983772321d2d645a9ca81a7fc356243bdf55c73dbc251154')

prepare() {
  mv "NooDS-release" "NooDS-$pkgver"
}

build() {
  cd "$srcdir/NooDS-$pkgver"
  make
}

package() {
  cd "$srcdir/NooDS-$pkgver"
  make DESTDIR="$pkgdir/usr" install
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

4

Re: [Collection] Packages never getting into the repositories or removed

Possible package for stratagus:

PKGBUILD

# Maintainer (Arch): Angelo Theodorou <encelo at users dot sourceforge dot net>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=stratagus
pkgver=3.3.2
pkgrel=1
pkgdesc="A free and libre cross-platform real-time strategy gaming engine"
arch=('i686' 'x86_64')
url='https://github.com/Wargus/stratagus'
license=('GPL-2')
depends=('sdl2_image' 'sdl2_mixer' 'libmng' 'libtheora' 'tolua++')
makedepends=('cmake' 'glu')
groups=('games')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Wargus/stratagus/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('0e5d0127ba4e1025ceb7f46c91d90b82dc7c1b194030738abf95bd2c9cadc04d7431f333a514fc6d6b300ea3a1f5c7405bea735471f72fa547031634a23b01d1')

build() {
  cmake -S $pkgname-$pkgver \
  -B build \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DGAMEDIR=/usr/games \
  -DSBINDIR=/usr/games \
  -DLUA_INCLUDE_DIR=/usr/include/lua5.1 \
  -DWITH_STACKTRACE=OFF \
  -Wno-dev

  make -C build
}

package() {
  make -C build DESTDIR=${pkgdir} install
  mv ${pkgdir}/usr/bin/png2stratagus ${pkgdir}/usr/games
  rm -rf ${pkgdir}/usr/bin

  mkdir -p ${pkgdir}/usr/include
  cp ${srcdir}/$pkgname-$pkgver/gameheaders/stratagus-game-launcher.h ${pkgdir}/usr/include
  cp ${srcdir}/$pkgname-$pkgver/gameheaders/stratagus-gameutils.h ${pkgdir}/usr/include
  cp ${srcdir}/$pkgname-$pkgver/gameheaders/stratagus-tinyfiledialogs.h ${pkgdir}/usr/include

  install -Dm644 ${srcdir}/$pkgname-$pkgver/COPYING -t ${pkgdir}/usr/share/licenses/$pkgname
}

No BSD-port available.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

5

Re: [Collection] Packages never getting into the repositories or removed

Possible package  for sharutils:

PKGBUILD

# Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org>
# Contributor (Arch): Kevin Piche <kevin@archlinux.org>
# Contributor (Arch): Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=sharutils
pkgver=4.15.2
_debver=$pkgver
_debrel=5
pkgrel=1
pkgdesc="Makes so-called shell archives out of many files"
url='https://www.gnu.org/software/sharutils/'
license=('GPL-3')
arch=('i686' 'x86_64')
depends=('perl' 'glibc' 'texinfo')
makedepends=('quilt')
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig}
        "https://deb.debian.org/debian/pool/main/s/sharutils/sharutils_${_debver}-${_debrel}.debian.tar.xz")
sha512sums=('80d0b804a0617e11e5c23dc0d59b218bbf93e40aaf5e9a5401a18ef9cb700390aab711e2b2e2f26c8fd5b8ef99a91d3405e01d02cadabcba7639979314e59f8d'
            'SKIP'
            '9194761e95aa7a72ace68a0a045bfa198eef2bf7195b6b99c1c852b62dec706f34a5d78ffd7777446f0b43678a478c61e734ee73dc5f19a297c03fb7e8e32581')
validpgpkeys=('1F967B15DEB2349CACDF3D71D9204CB5BFBF0221') # Bruce Korb <bkorb@gnu.org>

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    quilt push -av
  fi
  sed 's/FUNC_FFLUSH_STDIN/-1/g' -i lib/fseeko.c
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  CFLAGS+=' -fcommon'
  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

Port available: https://openports.se/archivers/gshar+gunshar

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

6 (edited by anthk 2022-12-30 18:58:25)

Re: [Collection] Packages never getting into the repositories or removed

Attempt for qt5-styleplugins. Incredibily useful with qtct and gtk2/3 theming.
After installing it, install qtct, edit /etc/profile.d/qt5ct.sh with this content:

#!/bin/sh
export QT_QPA_PLATFORMTHEME="qt5ct"

Then run

doas chmod +x /etc/profile.d/qt5ct.sh
. /etc/profile.d/qt5ct.sh
qt5ct

Set your qt5 theme to gtk2 and adapt your fonts accordingly.

Then, log out and login again. Your qt5 applications, such as kristall, will
get your GTK theme.


0001-fix-build-against-Qt-5.15.patch

From 335dbece103e2cbf6c7cf819ab6672c2956b17b3 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Thu, 28 May 2020 12:35:42 +0200
Subject: [PATCH] fix build against Qt 5.15

With 0a93db4d82c051164923a10e4382b12de9049b45 ("Unify application
palette handling between QGuiApplication and QApplication")
QApplicationPrivate::setSystemPalette is no longer used and necessary.
---
 src/plugins/styles/gtk2/qgtkstyle.cpp   | 2 ++
 src/plugins/styles/gtk2/qgtkstyle_p.cpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
index 36169c9..2544593 100644
--- a/src/plugins/styles/gtk2/qgtkstyle.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
@@ -440,7 +440,9 @@ void QGtkStyle::polish(QApplication *app)
     // not supported as these should be entirely determined by
     // current Gtk settings
     if (app->desktopSettingsAware() && d->isThemeAvailable()) {
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
         QApplicationPrivate::setSystemPalette(standardPalette());
+#endif
         QApplicationPrivate::setSystemFont(d->getThemeFont());
         d->applyCustomPaletteHash();
         if (!d->isKDE4Session())
diff --git a/src/plugins/styles/gtk2/qgtkstyle_p.cpp b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
index e57b3d8..e71beb0 100644
--- a/src/plugins/styles/gtk2/qgtkstyle_p.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
@@ -508,7 +508,9 @@ void QGtkStyleUpdateScheduler::updateTheme()
       if (oldTheme != QGtkStylePrivate::getThemeName()) {
           oldTheme = QGtkStylePrivate::getThemeName();
           QPalette newPalette = qApp->style()->standardPalette();
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
           QApplicationPrivate::setSystemPalette(newPalette);
+#endif
           QApplication::setPalette(newPalette);
           if (!QGtkStylePrivate::instances.isEmpty()) {
               QGtkStylePrivate::instances.last()->initGtkWidgets();
-- 
2.26.2

0002-fix-gtk2-background.patch

From 20b0985a77df913585628d49a3b541fb957ae366 Mon Sep 17 00:00:00 2001
From: gamezelda
Date: Thu, 4 Jun 2020 00:06:50 +0200
Subject: [PATCH] fix setting background palette

---
 src/plugins/styles/gtk2/qgtkstyle.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
index 2544593..6138bd2 100644
--- a/src/plugins/styles/gtk2/qgtkstyle.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
@@ -442,6 +442,8 @@ void QGtkStyle::polish(QApplication *app)
     if (app->desktopSettingsAware() && d->isThemeAvailable()) {
 #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
         QApplicationPrivate::setSystemPalette(standardPalette());
+#else
+        QApplication::setPalette(standardPalette());
 #endif
         QApplicationPrivate::setSystemFont(d->getThemeFont());
         d->applyCustomPaletteHash();
-- 
2.27.0

PKGBUILD

# Maintainer: Eli Schwartz <eschwartz@archlinux.org>

pkgname=qt5-styleplugins
pkgver=5.0.0.20170311
_commit=335dbece103e2cbf6c7cf819ab6672c2956b17b3
pkgdesc='Additional style plugins for Qt5'
pkgrel=34
arch=('x86_64' 'aarch64' 'i686')
url="https://github.com/qt/qtstyleplugins"
license=('LGPL')
depends=('qt5-base' 'gtk2')
source=(
    "${pkgname}-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz"
    "0001-fix-build-against-Qt-5.15.patch"
    "0002-fix-gtk2-background.patch"
    "${pkgname}.hook"
)
sha512sums=('e8c2d0e9c6b0a47cab04ffd2e9384606638905b63a7c1580f9b629bbcc84ebff19743363ffee3dbd31c3de1dcda684211ad3052932b5aa0081e529afd9cbb14d'
            'f5cedadceb7c4243ba69b5041c6c524223ce742ec9c2c483e706f31e32e9e03e4efb6ed54fa2aada867a7c0145a8f3ec1193377d177c6c77066b5f3ec191e9ce'
            'c39b468c93eaada7d49df9547627fbf91d50292523566ef93287ce0e958b29e6c3635f6e77ad42c4f449a062cc63b68e9f2a24c89524165649f776d205fb5382'
            '5f976142d27eabacd1e1050bb39801d2e4cd68ec7459662e0352541d42d6a75740d3238b5120fb47641a125d6e3200f3a39c304497ac603457e3a97e641dabc2')

prepare() {
    cd qtstyleplugins-${_commit}

    for p in "$srcdir"/*.patch; do
        patch -p1 < "$p"
    done
}

build() {
    cd qtstyleplugins-${_commit}

    qmake PREFIX='/usr' \
        CONFIG+='nostrip' \
        QMAKE_CFLAGS_RELEASE="$CFLAGS" \
        QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS"
    make
}

package() {
    cd qtstyleplugins-${_commit}

    make INSTALL_ROOT="${pkgdir}" install
    install -Dm644 "$srcdir/${pkgname}.hook" "$pkgdir/usr/share/libalpm/hooks/90-${pkgname}.hook"
}

qt5-styleplugins.hook

[Trigger]
Type = Package
Operation = Upgrade
Target = qt5-base

[Action]
Description = Qt5 Upgrade Warning
When = PostTransaction
Exec = /usr/bin/echo "[WARNING] qt5-base was updated, qt5 applications will break until qt5-styleplugins is rebuilt."

7 (edited by aloniv 2022-12-31 16:50:12)

Re: [Collection] Packages never getting into the repositories or removed

anthk - is it enough after installation of qt5-styleplugins to add
export QT_QPA_PLATFORMTHEME=qt5ct
to .bashrc
(see https://forums.hyperbola.info/viewtopic.php?id=662 )?

8

Re: [Collection] Packages never getting into the repositories or removed

You want to use lxdm as display-manager? Feel welcome:

PKGBUILD

# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
# Contributor (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor (Arch): AndyRTR <andyrtr@archlinux.org>
# Contributor (Arch): kiefer <jorgelmadrid@gmail.com>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgbase=lxdm
pkgname=(lxdm-gtk2 lxdm)
pkgver=0.5.3
_debver=$pkgver
_debrel=4
pkgrel=1
pkgdesc="Lightweight X11 Display Manager"
arch=('i686' 'x86_64')
url='https://lxde.org/'
license=('GPL-3')
depends=('gtk2' 'gtk' 'xenocara-server')
makedepends=('intltool' 'iso-codes')
optdepends=('iso-codes: show language names in language chooser')
backup=('etc/lxdm/lxdm.conf'
        'etc/lxdm/Xsession'
        'etc/lxdm/PreLogin'
        'etc/lxdm/LoginReady'
        'etc/lxdm/PostLogin'
        'etc/lxdm/PostLogout'
        'etc/lxdm/PreReboot'
        'etc/lxdm/PreShutdown')
source=("https://downloads.sourceforge.net/lxde/${pkgbase}-${pkgver}.tar.xz"
        "https://deb.debian.org/debian/pool/main/l/lxdm/lxdm_${_debver}-${_debrel}.debian.tar.xz"
        "Xsession"
        "$pkgbase.initd"
        "$pkgbase.run")
sha512sums=('0e3539c595a71cb850c1756dd075b8d477a4e111a4167714057cac06650e9587f338f797f14122e7b2a2f4ad35b38cd7172b83e996758abeeaf0146d65bbc26f'
            '9684600626d7aae469fb8821652a9bd85364f9c76b12dc72ecafd78beaba84821d3e7191fd38e62e81faf6255d7fd3c2ca9b1d977afd282a42d01dda57130331'
            '1ab102ae5bbb5cf18e8bf55ca5ab3fee913efef6406c9e0dd81c3a8e5116baa29eafc428f556e29966f72d46d59f115f9c47aed0ae4d9141f2f79cea5e7761e1'
            '05aa88483d14dbe3003b5f20f396ee061fd87867c14b4c2735a86c010cca4f40af57043f39410a10c9d71beaeef44f1c898a3ee17240d89913a8044c1cfc36ec'
            'b9112d4f50d5fa79900a902fa7ff0597adbc1d7e44ad2e59f41441eb81195556249b6bec078bf30c3fbf43baadb3c9bb5870facbad8adeba54bcc012bc701133')

prepare(){
  cd $pkgbase-$pkgver

  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    # Doesn't apply
    rm -v debian/patches/23_debian-config.patch  || true
    rm -v debian/patches/43-fix-session-pam.patch || true

    quilt push -av
  fi

  # Use our custom Xsession file
  cp ../Xsession data/Xsession

  autoreconf -fi
}

build() {
  # GTK+ 2 version
  [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2
  cd gtk2
  ./configure \
    --prefix=/usr \
    --libexecdir=/usr/lib/lxdm \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --without-pam \
    --with-xconn=xcb
  make

  cd "$srcdir"
  # GTK+ 3 version
  [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3
  cd gtk3
  ./configure \
    --prefix=/usr \
    --libexecdir=/usr/lib/lxdm \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --without-pam \
    --with-xconn=xcb \
    --enable-gtk3
  make
}

package_lxdm-gtk2() {
  pkgdesc+=' (GTK+ 2 version)'
  depends=('gtk2' 'xenocara-server')

  cd gtk2
  make DESTDIR="$pkgdir" install
  chmod 644 "$pkgdir/etc/lxdm/lxdm.conf"

  # services
  install -Dm755 "$srcdir/$pkgbase.initd" "$pkgdir/etc/init.d/$pkgbase"
  install -Dm755 "$srcdir/$pkgbase.run" "$pkgdir/etc/sv/$pkgbase/run"

  # license
  install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

package_lxdm() {
  pkgdesc+=' (GTK+ 3 version)'
  depends=('gtk' 'xenocara-server')
  conflicts=('lxdm-gtk2')

  cd gtk3
  make DESTDIR="$pkgdir" install
  chmod 644 "$pkgdir/etc/lxdm/lxdm.conf"

  # services
  install -Dm755 "$srcdir/$pkgbase.initd" "$pkgdir/etc/init.d/$pkgbase"
  install -Dm755 "$srcdir/$pkgbase.run" "$pkgdir/etc/sv/$pkgbase/run"

  # license
  install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

lxdm.initd

#!/sbin/openrc-run
supervisor=supervise-daemon

name="Display Manager"
description="Lightweight Display Manager from LXDM"
pidfile=/var/run/lxdm.pid
command=/usr/sbin/lxdm

depends() {
    need localmount
    after bootmisc consolefont modules netmount
    after readahead-list ypbind autofs gpm lircmd
    after acpid openvpn
    before alsasound
    use xfs
    provide display-manager
}

lxdm.run

#!/bin/sh
exec /usr/sbin/lxdm

Xsession

#!/bin/sh
#
# LXDM wrapper to run around X sessions.

echo "Running X session wrapper"

if [ $# -eq 1 -a -n "$1" ]; then
    LXSESSION=$1
else
# default session
    LXSESSION=/usr/bin/startlxde
fi

# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
    if [ -f "$file" ]; then
        echo "Loading profile from $file";
        . "$file"
    fi
done

# Load resources
for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
    if [ -f "$file" ]; then
        echo "Loading resource: $file"
        xrdb -merge "$file"
    fi
done

# Load keymaps
for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
    if [ -f "$file" ]; then
        echo "Loading keymap: $file"
        setxkbmap `cat "$file"`
        XKB_IN_USE=yes
    fi
done

# Load xmodmap if not using XKB
if [ -z "$XKB_IN_USE" ]; then
    for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
        if [ -f "$file" ]; then
           echo "Loading modmap: $file"
           xmodmap "$file"
        fi
    done
fi

unset XKB_IN_USE

# Run all system xinitrc shell scripts
xinitdir="/etc/X11/xinit/xinitrc.d"
if [ -d "$xinitdir" ]; then
    for script in $xinitdir/*; do
        echo "Loading xinit script $script"
        if [ -x "$script" -a ! -d "$script" ]; then
            . "$script"
        fi
    done
fi

# Run user xsession shell script
script="$HOME/.xsession"
if [ -x "$script" -a ! -d "$script" ]; then
    echo "Loading xsession script $script"
    . "$script"
fi

echo "X session wrapper complete, running session $LXSESSION"

exec $LXSESSION
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

9

Re: [Collection] Packages never getting into the repositories or removed

aloniv wrote:

anthk - is it enough after installation of qt5-styleplugins to add
export QT_QPA_PLATFORMTHEME=qt5ct
to .bashrc
(see https://forums.hyperbola.info/viewtopic.php?id=662 )?

Yes, but the global profile way could be set by a pacman trigger for convenience.

10

Re: [Collection] Packages never getting into the repositories or removed

Package libkeybinder3 for peek.

PKGBUILD

# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
# Contributor (Arch): Eric Bélanger <eric@archlinux.org>
# Contributor (Arch): speps <speps at aur dot archlinux dot org>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=libkeybinder3
pkgver=0.3.2
_debver=$pkgver
_debrel=1.1
pkgrel=1
pkgdesc="A library for registering global keyboard shortcuts"
arch=('i686' 'x86_64')
url="https://github.com/engla/keybinder/tree/keybinder-3.0"
license=('Expat')
depends=('gtk')
makedepends=('gobject-introspection' 'quilt')
optdepends=('lua-lgi: lua bindings')
source=("https://github.com/kupferlauncher/keybinder/releases/download/keybinder-3.0-v$pkgver/keybinder-3.0-${pkgver}.tar.gz"{,.sig}
        "https://deb.debian.org/debian/pool/main/k/keybinder-3.0/keybinder-3.0_${_debver}-${_debrel}.debian.tar.xz")
sha512sums=('14171875e03ade88165f28c7267b66cf9efe34259d7a3072a786ba49dacf8f8d6d84753b1aeedec5dfb0a24028be86bceeebee2f6b1bf5ef2eb79ee45f909b11'
            'SKIP'
            'e9da66b66af6fac4da958c4aab72d2c08b4c0a53fc396bdc0c15ca64d7906c48810f8e64ef48819eb429b20ec6fd84023d35095a68031d1fc482628a6ef3ecbf')
validpgpkeys=('2578ABA1F9023159DFF211B7368712C4D7A44445') # Ulrik Sverdrup <ulrik.sverdrup@gmail.com>

prepare() {
  cd keybinder-3.0-$pkgver
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    quilt push -av
  fi
}

build() {
  cd keybinder-3.0-$pkgver
  ./configure \
    --prefix=/usr \
    --disable-gtk-doc
  make
}

package() {
  cd keybinder-3.0-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

11

Re: [Collection] Packages never getting into the repositories or removed

Package peek

PKGBUILD

# Maintainer (Arch): Filipe Laíns (FFY00) <lains@archlinux.org>
# Contributor (Arch): Philipp Wolfer <ph.wolfer@gmail.com>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=peek
pkgver=1.5.1
pkgrel=1
pkgdesc="Free and libre screen recorder with an easy to use interface"
arch=('i686' 'x86_64')
url='https://github.com/phw/peek'
license=('GPL-3')
depends=('gtk' 'libkeybinder3' 'ffmpeg' 'which')
makedepends=('meson' 'vala' 'appstream-glib' 'txt2man' 'gst-plugin-gtk' 'gst-plugins-ugly')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/phw/peek/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('dc25f24b1f5954ff26f399f86bf0a2a9b90c4d63c9cd33fcd44f16e447d23070c04e760c57bdc8a946e699c3038b8ee7afc44ce6daa7030e2f9e6f071be6eae4')

build() {
  mkdir $pkgname-$pkgver/build
  cd $pkgname-$pkgver/build
  hyperbola-meson ..
  ninja
}

package() {
  cd $pkgname-$pkgver/build
  DESTDIR="$pkgdir" ninja install

  # remove unneeded parts from package, we don't support D-Bus and its interfaces
  rm -rf "$pkgdir"/usr/share/dbus-1

  install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

12

Re: [Collection] Packages never getting into the repositories or removed

Package Nyx - A tool for monitoring tor relays

# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Alex Xu <alex_y_xu@yahoo.ca>

pkgname=nyx
pkgver=2.1.0
pkgrel=5
pkgdesc='Command-line status monitor for tor'
url='https://nyx.torproject.org/'
arch=('any')
license=('GPL3')
depends=('python' 'python-stem' 'procps-ng' 'lsof')
makedepends=('python-setuptools')
optdepends=('tor: tor-server to talk to')
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc})
sha512sums=('69a645cc811a1b1fbd9cf0501d8f23f1a52e0e92a0598097bb0c9efb040e1895e1dd431bad93be36db0e85ca7ac32ee5c866d50d2812069a39e5160b44575a37'
            'SKIP')
validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson (www.atagar.com) <atagar1@gmail.com>

prepare() {
  cd ${pkgname}-${pkgver}
  # remove tests requiring full terminal
  rm -r test/{panel,{popups,subwindow,installation}.py}
  # make test exit on error
  sed -E 's|(test_runner.run\(tests\))|__import__("sys").exit(0 if \1.wasSuccessful() else 1)|' -i run_tests.py
}

build() {
  cd ${pkgname}-${pkgver}
  python setup.py build
}

check() {
  cd ${pkgname}-${pkgver}
  ./run_tests.py
}

package() {
  cd ${pkgname}-${pkgver}
  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
  install -Dm 644 nyx.1 -t "${pkgdir}/usr/share/man/man1"
}

13

Re: [Collection] Packages never getting into the repositories or removed

Package rdo works, but application needs further testing:

# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=rdo
pkgver=1.4.2
pkgrel=1
pkgdesc="A simple and lightweight program to grant root-privileges"
arch=('i686' 'x86_64')
url='https://codeberg.org/sw1tchbl4d3/rdo'
license=('GPL-3')
source=("${pkgname}-${pkgver}.tar.gz::https://codeberg.org/sw1tchbl4d3/rdo/archive/${pkgver}.tar.gz")
sha512sums=('3dbf68728ca0463d358a9876d6d027d18a4f05de596f207f09882a585b06523000fde56bd08e028d2553172429d521bd7478dd8aee457f2e96e1ee76d0080bb4')

build() {
  cd $pkgname
  make
}

package() {
  cd $pkgname
  install -oroot -Dm4755 rdo -t "$pkgdir/usr/bin"
  install -oroot -Dm0600 rdo_sample.conf "$pkgdir/etc/"$pkgname.conf
  install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

14

Re: [Collection] Packages never getting into the repositories or removed

Package yt-local as we won't readd that package to the repositories. The dependencies will be nevertheless reconstructed soon:

PKGBUILD

# Maintainer: Jesús E. <heckyel@hyperbola.info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

pkgname=yt-local
pkgver=0.2.3
pkgrel=1
pkgdesc="Browser-based client for watching YouTube anonymously without forcing javascript"
arch=('any')
url='https://c.hgit.ga/software/yt-local.git/about/'
license=('AGPL-3')
depends=('python-wheel' 'python-brotli' 'python-cachetools' 'python-click'
         'python-dataclasses' 'python-defusedxml' 'python-flask'
         'python-gevent' 'python-importlib-metadata' 'python-itsdangerous'
         'python-jinja' 'python-markupsafe' 'python-pysocks' 'python-stem'
         'python-typing_extensions' 'python-urllib3' 'python-werkzeug'
         'python-zipp' 'sqlite')
optdepends=('tor: anonymizing overlay network'
            'gunicorn: WSGI HTTP Server for UNIX')
backup=('usr/share/webapps/yt-local/.yt-local/settings.txt')
source=("https://c.hgit.ga/software/yt-local.git/snapshot/${pkgname}-${pkgver}.tar.lz"{,.asc}
        "yt-local.initd"
        "yt-local.run")
install=${pkgname}.install
sha512sums=('f350f8947e734094977098eb9c1bfdd27bf95756cd65aae886b914b5ffb9fd6a70963a5446a71a8614c473bdb3d702eecb9e4a67deeacdf4b8a7e577dea5d2cd'
            'SKIP'
            'df7e2c779c3b585ccc94f3c3b78f5ef539086851bd71ba692d2c02d0f2ccff27831d7d1070a9c493a292eba802b5fe461fe11165e281c39d09dd881f43536c57'
            '91fd4a44765c4c241419e4510a8c7f71d252a303276ec30242ed9eee5beca6d0cda77484d1ab9f643a58a4a06d6a3162fab98e293030c481e9dbb227adefc117')
validpgpkeys=('4DF21B6A7C1021B25C360914F6EE7BC59A315766') # Jesús E.

package() {
  cd ${pkgname}-${pkgver}

  install -dm755 "${pkgdir}/usr/sbin/"
  install -dm755 "${pkgdir}/usr/share/webapps/yt-local"

  # bin file
  cat > "${pkgdir}/usr/sbin/yt-local" <<- EOF
#!/bin/bash

cd /usr/share/webapps/yt-local || exit

if [ ! -d /var/run/yt-local ]; then
  install -d /var/run/yt-local
  chown -R yt-local:yt-local /var/run/yt-local
fi

/bin/su -s /bin/bash -c '
python server.py > /dev/null 2>&1 &
echo \$! > /var/run/yt-local/yt-local.pid' yt-local
EOF
  chmod 755 "${pkgdir}/usr/sbin/yt-local"

  declare -a webapp=(
    'youtube' 'server.py' 'settings.py'
  )
  for i in "${webapp[@]}"; do
    cp -rva $i "${pkgdir}/usr/share/webapps/yt-local"
  done
  unset webapp

  install -Dm755 "${srcdir}/yt-local.initd" "${pkgdir}/etc/init.d/yt-local"
  install -Dm755 "${srcdir}/yt-local.run" "${pkgdir}/etc/sv/yt-local/run"

  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
}

yt-local.initd

#!/sbin/openrc-run
# Distributed under the terms of the GNU General Public License v3 or later
name="yt-local"
pidfile="/var/run/yt-local/yt-local.pid"
command="/usr/sbin/yt-local"

depend() {
    use net
}

start_pre() {
    checkpath --directory --owner yt-local:yt-local --mode 0755 /var/run/yt-local
}

start() {
    ebegin "Starting ${name}"
    start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}"
    eend $?
}

reload() {
    ebegin "Reloading ${name}"
    start-stop-daemon --signal HUP --pidfile "${pidfile}"
    eend $?
}

stop() {
   ebegin "Stopping ${name}"
   start-stop-daemon --quiet --stop --exec "${command}" --pidfile "${pidfile}"
   eend $?
}

yt-local.install

#!/bin/sh

post_install() {
    if ! (grep -q yt-local /etc/group); then
        groupadd --gid 65531 yt-local >/dev/null 2>&1;
    fi

    id yt-local >/dev/null 2>&1 || \
        useradd --system \
                --uid 65531 \
                --gid 65531 \
                --groups yt-local \
                --home-dir /usr/share/webapps/yt-local \
                --shell /bin/false yt-local

    chown -R yt-local:yt-local /usr/share/webapps/yt-local

    echo '>>> YT-Local'
    echo '>>> ============================================================'
    echo '>>> Your configuration will be stored in'
    echo '>>> /usr/share/webapps/yt-local/.yt-local/settings.txt'
    echo '>>> ------------------------------------------------------------'
    echo '>>> enable:  rc-update add yt-local default'
    echo '>>> disable: rc-update del yt-local'
    echo '>>> ------------------------------------------------------------'
    echo '>>> Checking your webapp from http://localhost:9010 by default'
}

pre_remove() {
    rm -f /usr/sbin/yt-local > /dev/null 2>&1
    rm -f /var/run/yt-local > /dev/null 2>&1
    userdel yt-local > /dev/null 2>&1
    groupdel yt-local > /dev/null 2>&1
}

yt-local.run

#!/bin/sh
chpst -U yt-local:yt-local /usr/sbin/yt-local
exec pause 2>&1

For the reasoning: yt-local has the only purpose to make the access towards YouTube more easy. I think it is without any doubt this service is non-free and will always stay that way. So the best case is, that we have some API-access. Whenever the API is changing, the software is rendered unusable. This is work being done running behind an illusion. So Hyperbola is not going for this illusions: But it is on the choice of the user. We besides cannot provide this package any longer as for the access for only one non-free service.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

15 (edited by HarvettFox96 2023-02-10 05:10:16)

Re: [Collection] Packages never getting into the repositories or removed

A package I made called classic-colors.

PKGBUILD

# Maintainer: Jayvee Enaguas <harvettfox96@tilde.club>

pkgname=classic-colors
pkgver=1.0.1.20221210
pkgrel=1
pkgdesc="A simple image drawing and editing program in a look similar to MS Paint"
url="https://github.com/justinmeiners/classic-colors/"
arch=('x86_64' 'i686')
license=('GPL-2')
depends=('openmotif' 'libxpm')
makedepends=('graphicsmagick-imagemagick-compat')
source=("https://tilde.club/~harvettfox96/files/archive/pkg/${pkgname}/${pkgname}-${pkgver}.tar.gz"
        "${pkgname}.desktop")
sha512sums=('9f54e18afa39cc1cb33701749a1049125474baa3493af90c2b8041d1d48e1a2f6eb2b48365deae134f4a21c896598d0166a12e7ca8e910b80b2b28d8fc27c6e8'
            '5e7bbd1ac5b58ae56e635893b8c670513c1f755585f680fe464f7f9e76285f97a7efeb40ced1334033a07eb411939a574ba81f1d72e809eca9408873a0fd5527')

build() {
  cd ${pkgname}-${pkgver}

  ./configure
  sed -i 's#\"/usr/local#\"/usr#' ui_main.c

  make
}

package(){
  cd ${pkgname}-${pkgver}

  install -Dm755 bin/${pkgname} -t "${pkgdir}/usr/bin"
  install -Dm644 help/* -t "${pkgdir}/usr/share/${pkgname}/help"
  install -Dm644 ${srcdir}/${pkgname}.desktop -t "${pkgdir}/usr/share/applications"
  install -Dm644 icons/icon_app.png "${pkgdir}/usr/share/icons/hicolor/24x24/apps/${pkgname}.png"
  install -Dm644 icons/icon_app.xpm "${pkgdir}/usr/share/pixmaps/${pkgname}.xpm"
  install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

classic-colors.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Classic Colors
Comment=A simple image drawing and editing in a look similar to MS Paint
Type=Application
Categories=Application;Graphics;2DGraphics;RasterGraphics
Icon=classic-colors
Exec=classic-colors
Terminal=false

16

Re: [Collection] Packages never getting into the repositories or removed

USBguard would be a nice adition for our security aspect according to our social contract. Sadly it depends on d-bus, so one must search for a alternative maybe the openbsd equivalent.

Regardeless here is package build:

# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Ian Beringer <ian@ianberinger.com>

pkgname=usbguard
pkgver=1.1.2
pkgrel=1
pkgdesc='Software framework for implementing USB device authorization policies'
url='https://github.com/USBGuard/usbguard'
arch=('x86_64')
license=('GPL2')
depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib'
         'audit' 'libaudit.so' 'libseccomp' 'libseccomp.so' 'libcap-ng.so' 'libgio-2.0.so'
         'libglib-2.0.so' 'libprotobuf.so')
makedepends=('catch2' 'pegtl' 'libxslt' 'libxml2' 'asciidoc' 'systemd')
provides=('libusbguard.so')
backup=(etc/usbguard/usbguard-daemon.conf
        etc/usbguard/rules.conf)
source=(https://github.com/USBGuard/usbguard/releases/download/usbguard-${pkgver}/usbguard-${pkgver}.tar.gz{,.asc})
sha512sums=('03b6dd026a0fe6a7a055208f09a56e2cc86985570388e33fde08671b8aa2d60ea4a0e59505e9646ddf50f42f5b6310d1b230379f9c26ec99c7ca736f3b4ad850'
            'SKIP')
validpgpkeys=(
  'DE78B93EAED8A620F5AA14DF52F7E84653274B59' # Radovan Sroka <rsroka@redhat.com>
)

prepare() {
  cd ${pkgname}-${pkgver}
  autoreconf -fiv
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --sys=/etc \
    --sbindir=/usr/bin \
    --libdir=/usr/lib \
    --enable-systemd \
    --without-bundled-catch \
    --without-bundled-pegtl \
    --with-dbus \
    --with-polkit \
    --with-crypto-library=sodium
  make
  touch rules.conf
}

check() {
  cd ${pkgname}-${pkgver}
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  make INSTALL='install -p' DESTDIR="${pkgdir}" install

  chmod 750 "${pkgdir}/etc/usbguard"
  install -Dpm 600 usbguard-daemon.conf rules.conf -t "${pkgdir}/etc/usbguard"

  install -Dpm 644 scripts/bash_completion/usbguard -t "${pkgdir}/usr/share/bash-completion/completions"
  install -Dpm 644 scripts/usbguard-zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_usbguard"

  install -Dm 644 CHANGELOG.md README.adoc -t "${pkgdir}/usr/share/doc/${pkgname}"
}

17

Re: [Collection] Packages never getting into the repositories or removed

Package python-werkzeug, please be aware that this package has continuous reports of vulnaribilities and it is not even clear that even this newest version 2.2.3 is now better in comparison. So this package won't occur in Hyperbola for any given time directly in our repositories.

PKGBUILD

# Maintainer (Arch): Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor (Arch): Alexander Rødseth <rodseth@gmail.com>
# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
# Contributor (Arch): Dan Serban
# Contributor (Arch): Richard Murri
# Maintainer: rachad <rachad @ hyperbola . info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

pkgname=python-werkzeug
pkgver=2.2.3
pkgrel=1
pkgdesc="Swiss Army knife of Python web development"
url='http://werkzeug.pocoo.org/'
arch=('any')
license=('Modified-BSD')
depends=('python' 'python-markupsafe')
makedepends=('python-setuptools' 'quilt')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz")
sha512sums=('3968e663f67e41da5148a4aa1d8e047ffd88416fa8df665e359bbe87992e4e723e1c915eed59ae86b53dd18817e41cdcef059483bce7aa8ed7b388dd4add1482')

build() {
  cd "werkzeug-$pkgver"

  python setup.py build
}

package() {
  cd "werkzeug-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

18

Re: [Collection] Packages never getting into the repositories or removed

Package python-flask, also reported vulnerabilities. Depending on python-werkzeug and therefore same argumentation: Only here available as PKGBUILD in the forums, but no longer in our repositories.

PKGBUILD

# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor (Arch): Alexander Rødseth <rodseth@gmail.com>
# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
# Contributor (Arch): Tarmo Heiskanen <turskii@gmail.com>
# Maintainer: rachad <rachad @ hyperbola . info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

_name=flask
pkgname=python-flask
pkgver=2.0.1
_debver=$pkgver
_debrel=4
pkgrel=1
pkgdesc="Micro webdevelopment framework for Python"
url='http://flask.pocoo.org/'
arch=('any')
license=('Modified-BSD')
depends=('python-werkzeug' 'python-jinja' 'python-itsdangerous' 'python-click')
makedepends=('python-setuptools' 'quilt')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pallets/$_name/archive/${pkgver}.tar.gz"
        "https://deb.debian.org/debian/pool/main/f/$_name/${_name}_${_debver}-${_debrel}~bpo11+1.debian.tar.xz")
sha512sums=('55d76e65aefb6f430050f1ef7e0378ece673a18b8316974d7b8bf468fe09c4b89022a3dd8bb41dabf2a6b7566bf7a23cb53246be4b5bd9a8ddcf0e7b2f114dc8'
            'f2fcb2b6ac861e4a4ade45f4e41c447835aaabe41484fedbb1a98279b970355d20c4d30726e7275a6fbc89ed48bf288e5f01efe25b0e8d869507c56adae5c891')

prepare() {
  cd "$_name-$pkgver"

  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    quilt push -av
  fi
}

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
}

Use both at your own risk.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

19

Re: [Collection] Packages never getting into the repositories or removed

Also here the removed monero. Please be aware that Hyperbola has a clear stance towards scam and the reasoning of removal is called in different categories:

- bloat in technical aspects
- problems in social aspects as there is clear misusage (many of those projects are using a pyramid scheme to call into people to attend, in no way working fair)

We communicate clear, open and transparent therefore: Usage of own risk. Everyone is free to modify the own installed system as Hyperbola will be always a free and libre system.

List of packages

zeromq -> https://git.hyperbola.info:50100/~team/ … 5dd9814ba6
randomx -> https://git.hyperbola.info:50100/~team/ … ab2f9b9cd7
monero -> https://git.hyperbola.info:50100/~team/ … 97b023277c

Again to repeat: This package was removed for clear reasoning and won't be integrated back in our repositories.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

20

Re: [Collection] Packages never getting into the repositories or removed

tcclib, tklib and tkimg. A great addon for TCL/TK. It comes with a very lightweight Open Street Map
client which can be hacked up a little in order to search for places and so on.
It adds plotcharts, diagrams, network protocols and fine additions to program with.

tcclib PKGBUILD

# Maintainer:  Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: dtw <dibble.at.thewrecker.dot.net>
# Contributor: Mathieu Gauthier <mathgl@freesurf.fr>
# Contributor: Pawel Bogur <jid:smeagol@uaznia.net>

pkgname=tcllib
pkgver=1.21
pkgrel=1
pkgdesc="Set of pure-Tcl extensions."
arch=('any')
url="http://core.tcl.tk/tcllib/"
license=('bsd')
depends=('tcl')
source=("https://core.tcl-lang.org/tcllib/uv/tcllib-$pkgver.tar.gz")
sha256sums=('46b2bb5ec8049363ae01645af11bda3bdb5db10629e807d81d1ad46cd1bead50')

package(){
  cd "$srcdir"/tcllib-$pkgver
  tclsh installer.tcl -pkg-path "$pkgdir"/usr/lib/tcllib \
    -app-path "$pkgdir"/usr/bin \
    -nroff-path "$pkgdir"/usr/share/man/mann \
    -no-examples -no-html \
    -no-wait  -no-gui
  install -Dm644 license.terms "$pkgdir"/usr/share/licenses/$pkgname/COPYING
  for manp in graph; do
    mv "$pkgdir"/usr/share/man/mann/{,tcllib-}$manp.n
  done
}

tklib PKGBUILD

# Maintainer: Michael Schubert <mschu.dev at gmail> github.com/mschubert/PKGBUILDs
# Contributor: Thomas Dziedzic
# Contributor: Mihai Militaru <mihai dot militaru at xmpp dot ro>
pkgname=tklib
pkgver=0.7
pkgrel=1
pkgdesc='Tklib specializes in utilities for GUI programming.'
arch=('i686' 'x86_64')
url="https://core.tcl-lang.org/tklib/home"
license=('GPL')
depends=('tk' 'tcllib')
source=(https://github.com/tcltk/tklib/archive/refs/tags/tklib-$pkgver.tar.gz)
sha256sums=('93890db81a5b0cdb62c386265ec4fcdaab60824e8e6e882c7fecc69ff49afc66')

build() {
  cd $pkgname-$pkgname-$pkgver
  ./configure --prefix=/usr
  make all
}

package() {
  cd $pkgname-$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

tkimg PKGBUILD

# Maintainer:  Andrew O'Neill <andrew at haunted dot sh>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Martin C. Doege <mdoege at compuserve dot com>
# Contributor: kotyz <kotyz.king@gmail.com>

pkgname=tkimg
_pkgname=Img
pkgver=1.4.14
pkgrel=1
pkgdesc='Provides the handling of several image formats beyond the standard formats in Tk'
url='https://wiki.tcl-lang.org/page/Img'
arch=('i686' 'x86_64')
license=('custom')
depends=('zlib' 'libjpeg' 'libpng' 'libtiff' 'tcl' 'tk' 'tcllib')
source=("https://downloads.sourceforge.net/${pkgname}/${_pkgname}-${pkgver}-Source.tar.gz")
sha256sums=('7510b1b819464f228d228a862e53d9e1d3b41c23013b73790a29f7e9165abb21')

build() {
  cd "${_pkgname}-${pkgver}-Source"

  ./configure --prefix=/usr --enable-64bit --enable-threads
  make all
}

package() {
  cd "${_pkgname}-${pkgver}-Source"

  make INSTALL_ROOT="${pkgdir}" install
  install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

21

Re: [Collection] Packages never getting into the repositories or removed

An electronic circuit simulator. Good if you are into that:

PKGBUILKD

# Maintainer: trya <tryagainprod@gmail.com>
# Contributor: dragonn <dragonn at op dot pl>

pkgname=tkgate-beta
pkgver=2.0_b10
pkgrel=2
license=('GPL')
pkgdesc="A digital circuit simulator with a tcl/tk-based graphical editor. Beta version"
depends=('tcl' 'tk' 'libsm')
conflicts=('tkgate')
url="http://www.tkgate.org"
arch=('i686' 'x86_64')
source=("http://pkgs.fedoraproject.org/repo/pkgs/tkgate/tkgate-${pkgver//_/-}.tar.gz/84ffe959868d39ec856b5ff1c70136c3/tkgate-${pkgver//_/-}.tar.gz")
md5sums=('84ffe959868d39ec856b5ff1c70136c3')

build() {
  cd ${srcdir}/tkgate-${pkgver//_/-}
  CPPFLAGS='-DUSE_INTERP_RESULT' LDFLAGS='-lm' ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/tkgate-${pkgver//_/-}
  make DESTDIR=${pkgdir} install
  ln -sf /usr/bin/verga ${pkgdir}/usr/share/tkgate/libexec/verga
  ln -sf /usr/bin/tkgate ${pkgdir}/usr/share/tkgate/libexec/tkgate
}

22 (edited by HarvettFox96 2023-04-21 02:43:30)

Re: [Collection] Packages never getting into the repositories or removed

I'm a big fan of listening to MIDI music using custom soundfonts; sadly, Polyphone isn't in the repo because I wanted to create or edit it. The good thing is also I found it on the FreeBSD port.

polyphone

PKGBUILD

# Maintainer (Arch): David Runge <dvzrv@archlinux.org>
# Maintainer: Jayvee Enaguas <harvettfox96@tilde.club>

pkgname=polyphone
pkgver=2.2.0
pkgrel=1
_debver=${pkgver}
_dfsgrel=dfsg1
_debrel=3
pkgdesc="A soundfont editor for quickly designing musical instruments"
arch=('x86_64' 'i686')
url="https://polyphone-soundfonts.com/"
license=('GPL-3')
depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'libressl' 'qt-base' 'qt-svg' 'zlib')
makedepends=('flac' 'jack2' 'libogg' 'libvorbis' 'portaudio' 'qcustomplot' 'qt-tools' 'rtmidi' 'stk')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/davy7125/${pkgname}/archive/${pkgver}.tar.gz"
        ${pkgname}-2.2.0-qt5.15.patch::"https://github.com/davy7125/polyphone/commit/7cfa7fe96533e402dd37e533b63c3105af36cd34.patch"
        "142.patch"
        "no-gplv2-v3-mix.patch")
sha512sums=('88b4f0d951f75ed517e0942e75d543eca28c92fe8f2f99aee1d4be69f7d4fd74ee2219d7779b68b918befc8554cac5dc3f93ac9055bd8a94327e777a0725e5e3'
            'a412b16b304ea53665ae3d8a8769898e16297c9b5a57d16cc68a71e8fbd35ee938a364de5226d9cccbff4fd0b87c9d4d10f809a8fd75325a39701d895958f220'
            'cc1c8798a93c37ad31e2adb3a60d2b1e0bec28893491ab74a723dc223d308ddaad6363e9b0bf76ac23fbb91f64709c549d77a9b5d03d40bbe0d14fc567c542d8'
            'f6e124926dac46a56ac3e98c1597291abc852ff30b49789ca0e13000fd0e70d27df9234b48c16ada1fc412bb496538dbd5adae84b6a39ecc070832fabf6a9551')

prepare() {
  cd ${pkgname}-${pkgver}

  # Fix missing include required to build against qt >= 5.15.0
  patch -p1 -i ../${pkgname}-${pkgver}-qt5.15.patch

  patch -p1 -i ../142.patch
  patch -p1 -i ../no-gplv2-v3-mix.patch

  # Disable accessing the online repo that may contain soundfonts under non-libre CC licenses
  sed -i 's#s://www.polyphone-soundfonts.com/en/api/soundfonts#://127.0.0.1#' sources/repository/repositorymanager.cpp
  sed -i 's#s://www.polyphone-soundfonts.com/en/create-an-account#://127.0.0.1/#' sources/{context/interface/configsectionrepository,repository/browser/soundfontbrowser}.cpp
  sed -i 's#s://www.polyphone-soundfonts.com/en/subscribe#://127.0.0.1/#' sources/{context/interface/configsectionrepository,repository/browser/soundfontbrowser}.cpp

  sed -i 's#\"2013 -\" + QString::number(QDate::currentDate().year())#\"2013–2020\"#' sources/dialogs/dialog_about.cpp
}

build() {
  cd ${pkgname}-${pkgver}/sources

  qmake-qt5 PREFIX=/usr ${pkgname}.pro
  make
}

package() {
  cd ${pkgname}-${pkgver}/sources

  # Doesn't have an install target
  # https://github.com/davy7125/polyphone/issues/62/
  install -Dm755 bin/${pkgname} -t "${pkgdir}/usr/bin"
  install -Dm644 contrib/${pkgname}.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
  install -Dm644 resources/${pkgname}.png -t "${pkgdir}/usr/share/icons/hicolor/512x512/apps"
  install -Dm644 contrib/${pkgname}.desktop -t "${pkgdir}/usr/share/applications"
  install -Dm644 contrib/${pkgname}.1 -t "${pkgdir}/usr/share/man/man1"
  install -Dm644 contrib/${pkgname}.fr.1 -t "${pkgdir}/usr/share/man/fr/man1"
  install -Dm644 contrib/${pkgname}.xml -t "${pkgdir}/usr/share/mime/packages"
  install -Dm644 changelog -t "$pkgdir/usr/share/doc/${pkgname}"
  install -Dm644 ../LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

142.patch

Description: allow offset values greater than 16-bit signed integer
 A fix for issue #141, which was broken by commit
 f80fc38b406ad094a1d3d2563da5d8124818e2e3. This fix reverts to the
 use of qRound when storing offset values for sample and loop start/end.
From: "S. Christian Collins" <s_chriscollins@hotmail.com>
Origin: https://github.com/davy7125/polyphone/pull/142
Bug: https://github.com/davy7125/polyphone/issues/141

--- a/sources/core/types/attribute.cpp
+++ b/sources/core/types/attribute.cpp
@@ -181,11 +181,11 @@ AttributeValue Attribute::fromRealValue(
         break;
     case champ_startloopAddrsCoarseOffset: case champ_endloopAddrsCoarseOffset:
     case champ_startAddrsCoarseOffset: case champ_endAddrsCoarseOffset:
-        storedValue.shValue = Utils::round16(realValue) / 32768;
+        storedValue.shValue = static_cast<qint16>(qRound(realValue) / 32768);
         break;
     case champ_startloopAddrsOffset: case champ_startAddrsOffset:
     case champ_endloopAddrsOffset: case champ_endAddrsOffset:
-        storedValue.shValue = static_cast<qint16>(Utils::round16(realValue) % 32768);
+        storedValue.shValue = static_cast<qint16>(qRound(realValue) % 32768);
         break;
     case champ_keyRange: case champ_velRange:
         storedValue.rValue.byHi = static_cast<quint8>(0.001 * realValue);

no-gplv2-v3-mix.patch

Description: Remove SF3 support until legally distributable
Author(s):
- Jayvee Enaguas <harvettfox96@tilde.club>
- Thorsten Glaser <tg@debian.org>
Date: 2023-04-20 03:05:00 +0000
Bug: https://github.com/davy7125/polyphone/issues/105/
Forwarded: https://github.com/davy7125/polyphone/pull/119/

--- a/sources/polyphone.pro
+++ b/sources/polyphone.pro
@@ -179,7 +179,6 @@
     clavier \
     sound_engine \
     sound_engine/elements \
-    lib/sf3 \
     repository \
     repository/browser \
     repository/daily \
@@ -204,8 +203,6 @@
     core/input/not_supported/inputparsernotsupported.cpp \
     core/input/sf2/inputparsersf2.cpp \
     core/input/sf2/inputsf2.cpp \
-    core/input/sf3/inputparsersf3.cpp \
-    core/input/sf3/inputsf3.cpp \
     core/input/sfark/inputparsersfark.cpp \
     core/input/sfark/inputsfark.cpp \
     core/input/sfz/inputparsersfz.cpp \
@@ -287,7 +284,6 @@
     sound_engine/elements/calibrationsinus.cpp \
     sound_engine/elements/enveloppevol.cpp \
     sound_engine/elements/oscsinus.cpp \
-    lib/sf3/sfont.cpp \
     options.cpp \
     mainwindow/widgetshowhistory.cpp \
     mainwindow/widgetshowhistorycell.cpp \
@@ -438,7 +434,6 @@
     core/output/not_supported/outputnotsupported.cpp \
     core/output/sfz/sfzparamlist.cpp \
     core/output/sf2/sf2indexconverter.cpp \
-    core/output/sf3/outputsf3.cpp \
     core/input/sfz/sfzparameter.cpp \
     core/input/sfz/sfzparametergroup.cpp \
     core/input/sfz/sfzparametergroupassembly.cpp \
@@ -524,8 +519,6 @@
     core/input/not_supported/inputparsernotsupported.h \
     core/input/sf2/inputparsersf2.h \
     core/input/sf2/inputsf2.h \
-    core/input/sf3/inputparsersf3.h \
-    core/input/sf3/inputsf3.h \
     core/input/sfark/inputparsersfark.h \
     core/input/sfark/inputsfark.h \
     core/input/sfz/inputparsersfz.h \
@@ -613,7 +606,6 @@
     sound_engine/elements/calibrationsinus.h \
     sound_engine/elements/enveloppevol.h \
     sound_engine/elements/oscsinus.h \
-    lib/sf3/sfont.h \
     options.h \
     mainwindow/widgetshowhistory.h \
     mainwindow/widgetshowhistorycell.h \
@@ -772,7 +764,6 @@
     core/output/not_supported/outputnotsupported.h \
     core/output/sfz/sfzparamlist.h \
     core/output/sf2/sf2indexconverter.h \
-    core/output/sf3/outputsf3.h \
     core/input/sfz/sfzparameter.h \
     core/input/sfz/sfzparametergroup.h \
     core/input/sfz/sfzparametergroupassembly.h \

--- a/sources/core/input/inputfactory.cpp
+++ b/sources/core/input/inputfactory.cpp
@@ -28,7 +28,6 @@
 #include "abstractinputparser.h"
 #include "abstractinput.h"
 #include "sf2/inputsf2.h"
-#include "sf3/inputsf3.h"
 #include "sfz/inputsfz.h"
 #include "sfark/inputsfark.h"
 #include "grandorgue/inputgrandorgue.h"
@@ -45,10 +44,6 @@
     _inputs[input->getInputExtension().toLower()] = input;
     _orderedInputs << input;
 
-    input = new InputSf3();
-    _inputs[input->getInputExtension().toLower()] = input;
-    _orderedInputs << input;
-
     input = new InputSfz();
     _inputs[input->getInputExtension().toLower()] = input;
     _orderedInputs << input;

--- a/sources/core/output/outputfactory.cpp
+++ b/sources/core/output/outputfactory.cpp
@@ -31,7 +31,6 @@
 #include "contextmanager.h"
 #include "abstractoutput.h"
 #include "sf2/outputsf2.h"
-#include "sf3/outputsf3.h"
 #include "sfz/outputsfz.h"
 #include "not_supported/outputnotsupported.h"
 #include "empty/outputdummy.h"
@@ -54,11 +53,6 @@
             // Format sf2
             output = new OutputSf2();
         }
-        else if (extension == "sf3")
-        {
-            // Format sf3
-            output = new OutputSf3();
-        }
         else if (extension == "sfz")
         {
             // Format sfz

qcustomplot

PKGBUILD

# Maintainer (Arch): David Runge <dvzrv@archlinux.org>
# Maintainer: Jayvee Enaguas <harvettfox96@tilde.club>

pkgbase=qcustomplot
pkgname=('qcustomplot' 'qcustomplot-doc')
_name=QCustomPlot
pkgver=2.0.1
_debver=${pkgver}
_dfsgrel=dfsg1
_debrel=4
pkgrel=1
pkgdesc="Qt C++ widget for plotting and data visualization"
arch=('x86_64' 'i686')
url="https://www.qcustomplot.com/"
license=('GPL-3')
makedepends=('doxygen' 'graphviz' 'qt-tools')
source=(${pkgbase}-${pkgver}.tar.bz2::"https://gitlab.com/DerManu/${_name}/-/archive/v${pkgver}/${_name}-v${pkgver}.tar.bz2"
        ${pkgbase}-${pkgver}-source.tar.gz::"https://www.qcustomplot.com/release/${pkgver}/${_name}-source.tar.gz"
        "https://deb.debian.org/debian/pool/main/q/${pkgbase}/${pkgbase}_${_debver}+${_dfsgrel}-${_debrel}.debian.tar.xz")
sha512sums=('fb9184d517007b7c280e7122b3c14b6e49bf6b550bf41b95fe6808cc1c66c66dd82383796bfa4f43ce1ff0406e4c53e579ecc0aa2992741c5a45e5469f4bf5e8'
            'b44abbd8fd95970a829bbb6e7becc0765e24bd8f05958c8c1223303b68fb4c0a64f503cf0a2fe4fc53957e6e61a6618500475cff3e81ed0ab387a9eada2c83a3'
            '8044f7b74d101f2db4890000d48a468db7d633ad2b7dcb4175abc1e508e4d1266e402a8d74e8c0bf8897fa8a01375ebc0ab846da9d33518838ddf94088255083')

prepare() {
  cd ${_name}-v${pkgver}

  # Copy required amalgameted sources into place
  cp ../${pkgbase}-source/*.{cpp,h} .

  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    cp -r ${srcdir}/debian .

    quilt push -av
  fi
}

build() {
  cd ${_name}-v${pkgver}

  qmake-qt5 sharedlib/sharedlib-compilation/sharedlib-compilation.pro
  make

  # Create documentation
  doxygen
  cd documentation
  qhelpgenerator html/index.qhp -o qthelp/qcustomplot.qch
  rm html/*.{md5,map,qhp}
}

package_qcustomplot() {
  depends=('qt-base')

  cd ${_name}-v${pkgver}

  # There's no install target
  install -d "${pkgdir}/usr/lib" && cp -a lib${pkgname}.so* "${pkgdir}/usr/lib"
  install -Dm644 ${pkgname}.h -t "${pkgdir}/usr/include"
  install -Dm644 changelog.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dm644 GPL.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

package_qcustomplot-doc() {
  pkgdesc+=" (docs)"

  cd ${_name}-v${pkgver}/documentation

  install -d "${pkgdir}/usr/share/doc/${pkgbase}" && cp -r ../examples "${pkgdir}/usr/share/doc/${pkgbase}"
  install -Dm644 qthelp/*.qch -t "${pkgdir}/usr/share/doc/qt"
  install -Dm644 html/* -t "${pkgdir}/usr/share/doc/${pkgbase}/html"
  install -Dm644 ../GPL.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

23

Re: [Collection] Packages never getting into the repositories or removed

As manuskript is deleted from our repositories we save the current package here:

PKGBUILD

# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=manuskript
pkgver=0.11.0
_debver=$pkgver
_debrel=2
pkgrel=1
pkgdesc="Provides a rich environment to help writers"
arch=('any')
url='https://www.theologeek.ch/manuskript/'
license=('GPL-3')
depends=('hicolor-icon-theme' 'python-lxml' 'python-markdown' 'python-pyenchant' 'python-pyqt' 'qt-svg')
makedepends=('quilt')
source=("https://github.com/olivierkes/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
        "https://deb.debian.org/debian/pool/main/m/manuskript/manuskript_${_debver}-${_debrel}.debian.tar.xz"
        "manuskript.appdata.xml")
sha512sums=('1f364291449a7005b0f2ab902fe2fbeb20a2c641db17b00ad57d8c131956219663520a634c33278a8df52de1a445c0e91148f9308a4a3091b9b21f7a01087d06'
            '773002ee698d28f517e42a92f7e97c731409180e46e009e51653ece697f23069c114be5d7c9fe4bb70b1c57f004a3cd9bfc8516683e697902bc0f4740ca29e0b'
            '5d80fcd3c5a54ac7ad7808fbd927aa66cb630d531bb7292c8d964354fbc5210de94abeac7823fda3d2d0dead3e29e7740562a4a8430f6694b240c7a16e4c9a8d')

prepare() {
  cd "$pkgname-$pkgver"
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    quilt push -av
  fi
  sed -i "s|\"+appPath('libs/pdf.js/web/viewer.html')|/usr/share/pdf.js/web/viewer.html\"|" manuskript/ui/views/PDFViewer.py
  rm -r libs/pdf.js
  sed -i 's|Icon=.*|Icon=manuskript|' package/create_deb/manuskript.desktop

}

package() {
  cd $pkgname-$pkgver
  install -dm755 "$pkgdir/usr/share/manuskript/"
  cp -r manuskript icons i18n sample-projects resources "$pkgdir/usr/share/manuskript/"
  install -Dm755 package/create_deb/manuskript -t "$pkgdir/usr/bin"
  install -Dm644 package/create_deb/manuskript.desktop -t "$pkgdir/usr/share/applications"
  install -Dm644 $srcdir/$pkgname.appdata.xml -t "$pkgdir/usr/share/metainfo"
  install -Dm644 icons/Manuskript/manuskript.svg -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"

  for i in 16 32 64 128 256 512; do
    install -Dm644 icons/Manuskript/icon-${i}px.png "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/manuskript.png"
  done

  install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}

manuskript.appdata.xml

<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
  <id>ch.theologeek.manuskript</id>
  <launchable type="desktop-id">manuskript.desktop</launchable>
  <name>Manuskript</name>
  <summary>An open source tool for writers</summary>
  <metadata_license>CC0-1.0</metadata_license>
  <project_license>GPL-3.0</project_license>
  <description>
    <p>Manuskript provides a rich environment to help writers create their first draft and then further refine and edit their masterpiece.</p>
    <p>With Manuskript you can:</p>
    <ul>
      <li>Grow your premise from one sentence, to a paragraph, to a full summary</li>
      <li>Create characters</li>
      <li>Conceive plots</li>
      <li>Construct outlines (Outline mode and/or Index cards)</li>
      <li>Write with focus (Distraction free mode)</li>
      <li>Build worlds</li>
      <li>Track items</li>
      <li>Edit and re-organize chapters and scenes</li>
      <li>View Story line</li>
      <li>Compose with fiction or non-fiction templates and writing modes</li>
      <li>Import and export document formats such as HTML, ePub, OpenDocument, DocX, and more</li>
    </ul>
  </description>
  <screenshots>
    <screenshot type="default">
      <image>https://www.theologeek.ch/manuskript/wp-content/uploads/2017/11/manuskript-0.5.0-main-view.jpg</image>
    </screenshot>
  </screenshots>
  <url type="bugtracker">https://github.com/olivierkes/manuskript/issues</url>
  <url type="homepage">https://www.theologeek.ch/manuskript/</url>
</component>

Again also to remember: Everyone is invited to build own packages and share them here - under the condition those packages are completely free and libre licensed, do not demand non-free data further afterwards. We just don't need to add all packages within repositories, especially applications having further problems like rednotebook or now manuskript.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

24

Re: [Collection] Packages never getting into the repositories or removed

Libgccjit and Emacs 28.1 (native compiled) against Lucid to
get all the performance for it. Yes, I know, if you are
blind you might like to use Orca with GTK2/3, but
Emacspeak it's much better on its own.

First it will last for long to compile the PKGBUILD as
it will build native support for your Emacs AND also
in order to compile libgccjit tests will be run so have a
little of patience. It might lasts hours or a single day
to complete building all the Elisp files to native but
the huge performance boost on older machines will earn
every cycle wasted in the previous days.

libgccjit

# Maintainer: Andrew Whatson <https://aur.archlinux.org/account/flatwhatson>
# Maintainer: ZenTauro <zentauro at riseup dot net>
# Contributor: Ruben De Smet <ruben dot de dot smet at glycos dot org>
# Contributor: Jashandeep Sohi <jashandeep.s.sohi@gmail.com>

pkgname=libgccjit
pkgver=8.4.0
pkgrel=1
pkgdesc='Just-In-Time Compilation using GCC.'
arch=('i686' 'x86_64')
license=(GPL3)
url='https://gcc.gnu.org/wiki/JIT'
makedepends=(binutils libmpc)
checkdepends=(dejagnu)
depends=(glibc libmpc "gcc-libs=$pkgver")
options=(!emptydirs)
source=(https://sourceware.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz)
sha256sums=('SKIP')

prepare() {
 cd "$srcdir/gcc-$pkgver"

 # Do not run fixincludes
 sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in

 # Arch Linux installs x86_64 libraries /lib
 sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64

 # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
 sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
}

build() {
 mkdir -p "$srcdir/$pkgname-build"
 cd "$srcdir/$pkgname-build"

 CFLAGS=${CFLAGS/-Werror=format-security/}
 CXXFLAGS=${CXXFLAGS/-Werror=format-security/}

 "$srcdir/gcc-$pkgver/configure" --prefix=/usr \
     --libdir=/usr/lib \
     --libexecdir=/usr/lib \
     --mandir=/usr/share/man \
     --infodir=/usr/share/info \
     --with-bugurl=https://aur.archlinux.org/packages/libgccjit/ \
     --enable-languages=jit \
     --with-linker-hash-style=gnu \
     --with-system-zlib \
     --enable-__cxa_atexit \
     --enable-cet=auto \
     --enable-checking=release \
     --enable-clocale=gnu \
     --enable-default-pie \
     --enable-default-ssp \
     --enable-gnu-indirect-function \
     --enable-gnu-unique-object \
     --enable-install-libiberty \
     --enable-linker-build-id \
     --enable-lto \
     --enable-multilib \
     --enable-plugin \
     --enable-shared \
     --enable-host-shared \
     --enable-threads=posix \
     --disable-bootstrap \
     --disable-multilib \
     --disable-libssp \
     --disable-lto \
     --disable-libquadmath \
     --disable-liboffloadmic \
     --disable-libada \
     --disable-libsanitizer \
     --disable-libquadmath-support \
     --disable-libgomp \
     --disable-libvtv \
     --disable-libsanitizer \
     --disable-libstdcxx-pch \
     --disable-libunwind-exceptions \
     --disable-werror

 make
}

package() {
 cd "$srcdir/$pkgname-build/gcc"
 make DESTDIR="$pkgdir" jit.install-common jit.install-info
}

check() {
 cd "$srcdir/$pkgname-build/gcc"
 make check-jit RUNTESTFLAGS="-v -v -v"
}

post_install() {
 [[ -x usr/bin/install-info ]] || return 0
 install-info usr/share/info/libgccjit.info.gz usr/share/info/dir 2> /dev/null
}

# vim: tabstop=1 expandtab

Emacs

# Maintainer (Arch): Juergen Hoetzel <juergen@archlinux.org>
# Contributor (Arch): Renchi Raju <renchi@green.tam.uiuc.edu>
# Maintainer: André Silva <emulatorman@hyperbola.info>
# Contributor: Jesús E. <heckyel@hyperbola.info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

pkgname=emacs
pkgver=28.2
_debver=$pkgver
_debrel=13
pkgrel=2
pkgdesc="The extensible, customizable, self-documenting real-time display editor"
arch=('i686' 'x86_64')
url='https://www.gnu.org/software/emacs/emacs.html'
license=('GPL-3')
depends=('librsvg-legacy' 'libxaw3d' 'gpm' 'giflib' 'libxpm' 'libxfixes' 'libxinerama' 'libxrandr' 'libotf' 'm17n-lib' 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' 'jansson' 'mesa-libgl' 'libgccjit')
makedepends=('quilt')
conflicts=('emacs-headless')
provides=('emacs-headless')
source=("https://ftp.gnu.org/gnu/emacs/${pkgname}-${pkgver}.tar.xz"
        "https://deb.debian.org/debian/pool/main/e/emacs/emacs_${_debver}+1-${_debrel}.debian.tar.xz"
        "0001-fix-git-permission.patch")
sha512sums=('a7cec7e3e82367815a1442f69af54102dbfc434069810a9dec5938a6660cb8b076e6f1fb0bfff9695b15603dbbe05eb9c7dfd92e90cf40fc4d1e5746bce83bd8'
            '81fe045658856fc518e022769b62a42cd788017c0e67edba8a9d78abdd62f12e5fd8c74d1c565a57083c34e9f93f845bee04426d0ac9ec58e5f4e3e17df17668'
            '86091542c52e94d0e1ca973b64665282a590e2af57f69accf1f93326da86d217d36514b06cefdbe93b773f835f97b151b72a1f6c14c05a7066b647af707b0b6f')

prepare() {
  cd "$srcdir"/$pkgname-$pkgver
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    # Doesn't apply
    rm -v debian/patches/0001-Prefer-usr-share-info-emacs.patch || true
    rm -v debian/patches/0002-Run-debian-startup-and-set-debian-emacs-flavor.patch || true
    rm -v debian/patches/0003-Remove-files-that-appear-to-be-incompatible-with-the.patch || true
    rm -v debian/patches/0004-Adjust-documentation-references-for-Debian.patch || true
    rm -v debian/patches/0005-Modify-the-output-of-version-to-indicate-Debian-modi.patch || true
    rm -v debian/patches/0009-Mark-vc-bzr-test-fauilt-bzr-autoloads-as-unstable-fo.patch || true
    rm -v debian/patches/0010-Mark-echo-server-with-dns-test-as-unstable-for-now.patch || true
    rm -v debian/patches/0011-emacs-module-tests-fix-VPATH-builds.patch || true
    rm -v debian/patches/0014-Skip-tests-that-require-Internet-when-there-s-no-Int.patch || true

    quilt push -av
  fi
  patch -Np1 -i "${srcdir}/0001-fix-git-permission.patch"
}

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ac_cv_lib_gif_EGifPutExtensionLast=yes
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --with-x-toolkit=lucid \
    --with-xft \
    --with-modules \
    --with-wide-int \
    --with-json \
    --without-dbus \
    --without-libsystemd \
    --with-native-compilation
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install

  # remove conflict with ctags package
  mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
  mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}

  # fix user/root permissions on usr/share files
  find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \;

  install -d "$pkgdir/usr/share/licenses/$pkgname"
  install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

25

Re: [Collection] Packages never getting into the repositories or removed

Package focuswriter as it was removed. If someone wants to adapt that package for a port, please feel invited.

# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
# Contributor (Arch): Graeme Gott <graeme@gottcode.org>

pkgname=focuswriter
pkgver=1.7.6
pkgrel=1
pkgdesc='Simple, distraction-free word processor'
arch=('i686' 'x86_64')
url='https://gottcode.org/focuswriter/'
license=('GPL-3')
depends=('hicolor-icon-theme' 'hunspell' 'qt-multimedia')
makedepends=('qt-tools')
source=("https://gottcode.org/$pkgname/$pkgname-$pkgver-src.tar.bz2"{,.asc})
sha512sums=('45e0bc9b20c73b260aa42dcc9ee79515d3ad95d4c9586f60ab75fb404f73c7443484f238b3705ba3224b852a0d9b8b8db17d9145aebb77513f8597a01ab01d3b'
            'SKIP')
validpgpkeys=('57E4D43C10CD7EDB8360C84774FFC7F02C4F6B37')

prepare() {
  cd $pkgname-$pkgver
  sed -i '/INSTALLS +=/ s/ pixmap//' focuswriter.pro
}

build() {
  cd $pkgname-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make INSTALL_ROOT="$pkgdir" install
  install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!