aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/apk-tools-d/APKBUILD29
-rw-r--r--unmaintained/chocolate-doom/APKBUILD30
-rw-r--r--unmaintained/crda/01-Makefile-dont-run-ldconfig.patch10
-rw-r--r--unmaintained/crda/APKBUILD34
-rw-r--r--unmaintained/github-cli/APKBUILD49
-rw-r--r--unmaintained/gnats/APKBUILD41
-rw-r--r--unmaintained/gnats/gnats.pre-install6
-rw-r--r--unmaintained/gnats/no-werror.patch13
-rw-r--r--unmaintained/kdewebkit/APKBUILD51
-rw-r--r--unmaintained/ltb-project-ssp/APKBUILD32
-rw-r--r--unmaintained/ltb-project-ssp/ltb-project-ssp-move-config-location.patch11
-rw-r--r--unmaintained/mautrix-telegram/APKBUILD69
-rw-r--r--unmaintained/mautrix-telegram/default-log-dir.patch16
-rw-r--r--unmaintained/mautrix-telegram/mautrix-telegram.confd7
-rw-r--r--unmaintained/mautrix-telegram/mautrix-telegram.initd20
-rw-r--r--unmaintained/mautrix-telegram/mautrix-telegram.post-upgrade11
-rw-r--r--unmaintained/mautrix-telegram/mautrix-telegram.pre-install6
-rw-r--r--unmaintained/notepadqq/APKBUILD36
-rw-r--r--unmaintained/paxmark/APKBUILD19
-rw-r--r--unmaintained/paxmark/paxmark34
-rw-r--r--unmaintained/polipo/APKBUILD30
-rw-r--r--unmaintained/py3-llfuse/APKBUILD27
-rw-r--r--unmaintained/py3-mautrix/APKBUILD34
-rw-r--r--unmaintained/py3-pdfkit/APKBUILD28
-rw-r--r--unmaintained/qt5-qtwebkit/0001-musl-mcontext.patch67
-rw-r--r--unmaintained/qt5-qtwebkit/0002-fix-build-with-bison3.7.patch46
-rw-r--r--unmaintained/qt5-qtwebkit/0003-fix-compilation-with-python3.9.patch27
-rw-r--r--unmaintained/qt5-qtwebkit/0004-glib-2.68.patch26
-rw-r--r--unmaintained/qt5-qtwebkit/0005-Add-support-for-RISC-V-64-bit-architecture.patch76
-rw-r--r--unmaintained/qt5-qtwebkit/APKBUILD74
-rw-r--r--unmaintained/seamonkey/APKBUILD89
-rw-r--r--unmaintained/seamonkey/avoid-getcontext-musl.patch15
-rw-r--r--unmaintained/seamonkey/discard-x86-precision-musl.patch11
-rw-r--r--unmaintained/seamonkey/firefox-gcc-6.0.patch26
-rw-r--r--unmaintained/seamonkey/fix-aouth.patch11
-rw-r--r--unmaintained/seamonkey/fix-crmf.patch13
-rw-r--r--unmaintained/seamonkey/fix-hunspell.patch16
-rw-r--r--unmaintained/seamonkey/fix-i686-musl.patch20
-rw-r--r--unmaintained/seamonkey/fix-libevent.patch11
-rw-r--r--unmaintained/seamonkey/fix-libgen.patch20
-rw-r--r--unmaintained/seamonkey/fix-linux-syscall.patch16
-rw-r--r--unmaintained/seamonkey/fix-mallinfo.patch18
-rw-r--r--unmaintained/seamonkey/fix-platform-linux.patch13
-rw-r--r--unmaintained/seamonkey/fix-siginfo_t.patch11
-rw-r--r--unmaintained/seamonkey/fix-stabs.patch19
-rw-r--r--unmaintained/seamonkey/fix-sysctl.patch11
-rw-r--r--unmaintained/seamonkey/fix-system-headers.patch28
-rw-r--r--unmaintained/seamonkey/mozconfig57
-rw-r--r--unmaintained/tg/APKBUILD70
-rw-r--r--unmaintained/tg/makefile-remove-werror.patch11
-rw-r--r--unmaintained/tg/makefile-tl-parser-nocrc32.patch16
-rw-r--r--unmaintained/tg/musl-include-fix.patch14
-rw-r--r--unmaintained/tg/openssl-1.1.patch102
-rw-r--r--unmaintained/wkhtmltopdf/APKBUILD24
54 files changed, 1495 insertions, 106 deletions
diff --git a/unmaintained/apk-tools-d/APKBUILD b/unmaintained/apk-tools-d/APKBUILD
new file mode 100644
index 0000000000..2ccc4a74cf
--- /dev/null
+++ b/unmaintained/apk-tools-d/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=apk-tools-d
+pkgver=2.10.5.8
+pkgrel=0
+pkgdesc="D bindings for APK, the Alpine Package Keeper"
+url="https://gitlab.alpinelinux.org/Cogitri/apk-toolsd/"
+arch="x86_64 aarch64" # ldc
+arch="" # dependency openssl-d has been moved to untmaintained
+license="GPL-2.0-or-later"
+makedepends="meson ldc ldc-runtime openssl-d-dev"
+subpackages="$pkgname-dev $pkgname-dbg"
+source="https://gitlab.alpinelinux.org/Cogitri/apk-toolsd/-/archive/v$pkgver/apk-toolsd-v$pkgver.tar.gz"
+builddir="$srcdir/apk-toolsd-v$pkgver"
+
+build() {
+ abuild-meson . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+}
+
+sha512sums="8cf69b7c1e2e0c0a59599e01243d204eef022a10a1363bef96206a31a7666c3acf92590e8fc9a54eec1344a9cceb9d329a38606ec6b0b397909e9dbf59091930 apk-toolsd-v2.10.5.8.tar.gz"
diff --git a/unmaintained/chocolate-doom/APKBUILD b/unmaintained/chocolate-doom/APKBUILD
deleted file mode 100644
index 43fb59a217..0000000000
--- a/unmaintained/chocolate-doom/APKBUILD
+++ /dev/null
@@ -1,30 +0,0 @@
-# Maintainer:
-pkgname=chocolate-doom
-pkgver=3.0.1
-pkgrel=0
-pkgdesc="Portable release of Doom, Heretic, Hexen, and Strife"
-url="https://www.chocolate-doom.org"
-arch="all"
-license="GPL-2.0-or-later"
-makedepends="sdl2-dev sdl2_net-dev sdl2_mixer-dev libpng-dev
- libsamplerate-dev mesa-dev"
-subpackages="$pkgname-doc"
-options="!check" # no test suite
-source="https://www.chocolate-doom.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz"
-
-build() {
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --localstatedir=/var
- make
-}
-
-package() {
- make DESTDIR="$pkgdir" install
-}
-
-sha512sums="bec5daf5b26a8dd238780cb4e0c23ffc59b97825d323aa67bb6a3279cd243c18c03e899c4cb4b3106ac187330c6421915a14a6a7c0d34cb0ee75d6f29f9dc905 chocolate-doom-3.0.1.tar.gz"
diff --git a/unmaintained/crda/01-Makefile-dont-run-ldconfig.patch b/unmaintained/crda/01-Makefile-dont-run-ldconfig.patch
new file mode 100644
index 0000000000..d1e7477b68
--- /dev/null
+++ b/unmaintained/crda/01-Makefile-dont-run-ldconfig.patch
@@ -0,0 +1,10 @@
+--- a/Makefile 2014-12-11 00:51:29.000000000 +0100
++++ b/Makefile 2016-04-23 03:03:33.785974265 +0200
+@@ -127,7 +127,6 @@
+ $(NQ) ' INSTALL libreg'
+ $(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
+ $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
+- $(Q)ldconfig
+
+ %.o: %.c regdb.h $(LIBREG)
+ $(NQ) ' CC ' $@
diff --git a/unmaintained/crda/APKBUILD b/unmaintained/crda/APKBUILD
new file mode 100644
index 0000000000..5683baa0d2
--- /dev/null
+++ b/unmaintained/crda/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
+pkgname=crda
+pkgver=4.14
+pkgrel=0
+pkgdesc="Linux Central Regulatory Domain Agent"
+url="https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA"
+arch=""
+license="GPL"
+depends="wireless-regdb"
+makedepends="linux-headers libnl-dev py2-m2crypto libgcrypt-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/$pkgname-$pkgver.tar.gz
+ 01-Makefile-dont-run-ldconfig.patch"
+
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ sed 's/-Werror//' -i $builddir/Makefile
+}
+
+build() {
+ cd "$builddir"
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="0d52cf62589ec2debfd66de95b82b03a1c15048d8425cf5ef43c3e1f51ce1311a6d898fd5f69badcceb3181d35c836db197c6f070654dab351b01e96a1dd1053 crda-4.14.tar.gz
+c642976b193722c0050c13331a010b466cea8391bb5f945832604a556e274ea1a4b289c78f74ff5d502fae800f18219db3d10ff10c0528eefc5e9443a963640f 01-Makefile-dont-run-ldconfig.patch"
diff --git a/unmaintained/github-cli/APKBUILD b/unmaintained/github-cli/APKBUILD
deleted file mode 100644
index 9d1e6da63d..0000000000
--- a/unmaintained/github-cli/APKBUILD
+++ /dev/null
@@ -1,49 +0,0 @@
-# Contributor: Leo <thinkabit.ukim@gmail.com>
-# Maintainer:
-pkgname=github-cli
-pkgver=1.6.0
-pkgrel=1
-pkgdesc="CLI for dealing with GitHub"
-options="net chmod-clean" # Need to fetch modules and clean them up
-url="https://cli.github.com"
-arch="all !ppc64le" # FAIL: TestIssueView_tty_Preview (0.01s)
-license="MIT"
-depends="git"
-makedepends="go"
-subpackages="
- $pkgname-doc
- $pkgname-bash-completion
- $pkgname-zsh-completion
- $pkgname-fish-completion
- "
-source="https://github.com/cli/cli/archive/v$pkgver/github-cli-$pkgver-$pkgver.tar.gz
- "
-builddir="$srcdir/cli-$pkgver"
-
-build() {
- CGO_CPPFLAGS="$CPPFLAGS" \
- CGO_CFLAGS="$CFLAGS" \
- CGO_CXXFLAGS="$CXXFLAGS" \
- CGO_LDFLAGS="$LDFLAGS" \
- \
- make GH_VERSION="v$pkgver" bin/gh manpages
- bin/gh completion -s bash | install -Dm0644 /dev/stdin \
- share/bash-completion/completions/gh
- bin/gh completion -s zsh | install -Dm0644 /dev/stdin \
- share/zsh/site-functions/_gh
- bin/gh completion -s fish | install -Dm0644 /dev/stdin \
- share/fish/completions/gh.fish
-}
-
-check() {
- go test -v ./...
-}
-
-package() {
- install -Dm755 bin/gh "$pkgdir"/usr/bin/gh
-
- mkdir -p "$pkgdir"/usr
- cp -r share "$pkgdir"/usr
-}
-
-sha512sums="fb78e1809ad4d3f018fb6acc9703235af4da0b58509fc6ee257b52b490c6bfe3a02613ab62f16bff21420f006a3197bd3141391952489416460b7e3ac3995cd4 github-cli-1.6.0-1.6.0.tar.gz"
diff --git a/unmaintained/gnats/APKBUILD b/unmaintained/gnats/APKBUILD
new file mode 100644
index 0000000000..1afb2da432
--- /dev/null
+++ b/unmaintained/gnats/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gnats
+pkgver=4.2.0
+pkgrel=5
+pkgdesc="The GNU Bug Tracking System"
+url="https://www.gnu.org/software/gnats/"
+arch="" # Fails to build with gcc-10
+license="GPL-3.0"
+depends="postfix"
+makedepends="texinfo"
+install=
+source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz
+ no-werror.patch
+ "
+subpackages="$pkgname-doc"
+pkgusers="gnats"
+pkggroups="gnats"
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --sharedstatedir=/var/lib \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ || return 1
+
+ make -j1 || return 1
+}
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ rm -f "$pkgdir"/gnats.el
+}
+
+sha512sums="650faa87206889912e27a27daba4c86292fac90250a88e7e6272cc8488fc19dfd6098bdd450553cd6c2c1d446072a8da9395f1ce7b1cd284596994ce53744152 gnats-4.2.0.tar.gz
+f37cbc05bcf4fe37226e95ca84162ffa9ca92da3e30907dbbde67805aa0ab6210724a954a9106f4522c0adcaf936919beb11afb7d477142491be09c9da0ee38d no-werror.patch"
diff --git a/unmaintained/gnats/gnats.pre-install b/unmaintained/gnats/gnats.pre-install
new file mode 100644
index 0000000000..7e46b87e62
--- /dev/null
+++ b/unmaintained/gnats/gnats.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S gnats 2>/dev/null
+adduser -S -D -h /var/lib/gnatsdb -G gnats -g gnats gnats 2>/dev/null
+
+exit 0
diff --git a/unmaintained/gnats/no-werror.patch b/unmaintained/gnats/no-werror.patch
new file mode 100644
index 0000000000..e7d4d14e5e
--- /dev/null
+++ b/unmaintained/gnats/no-werror.patch
@@ -0,0 +1,13 @@
+diff --git a/configure b/configure
+index dfacf87..c3bdb3a 100755
+--- a/configure
++++ b/configure
+@@ -6722,7 +6722,7 @@ fi
+
+
+ if test "x$GCC" = "xyes" ; then
+- GCC_CFLAGS="-ansi -Werror -Wall"
++ GCC_CFLAGS="-ansi -Wall"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
+ $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
diff --git a/unmaintained/kdewebkit/APKBUILD b/unmaintained/kdewebkit/APKBUILD
new file mode 100644
index 0000000000..298ea72229
--- /dev/null
+++ b/unmaintained/kdewebkit/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=kdewebkit
+pkgver=5.87.0
+pkgrel=0
+pkgdesc="Integration of the HTML rendering engine WebKit"
+# armhf blocked by extra-cmake-modules
+# mips64 and riscv64 blocked by qt5-qtwebkit
+# s390x blocked by polkit -> kio
+arch="all !armhf !s390x !mips64 !riscv64"
+url="https://community.kde.org/Frameworks"
+license="LGPL-2.1-or-later"
+depends_dev="
+ kconfig-dev
+ kcoreaddons-dev
+ kio-dev
+ kjobwidgets-dev
+ kparts-dev
+ kservice-dev
+ kwallet-dev
+ qt5-qtbase-dev
+ qt5-qttools-dev
+ qt5-qtwebkit-dev
+ "
+makedepends="$depends_dev
+ extra-cmake-modules
+ "
+source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kdewebkit-$pkgver.tar.xz"
+subpackages="$pkgname-dev"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build build
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+ff745fb1454e821bb0e5e51cd61ef553b3b3a446117f99e42cf78d8a057983ae300f95c1b6c544efc768f404b24238e4f07b761edcf183bf144b2526510e31f2 kdewebkit-5.87.0.tar.xz
+"
diff --git a/unmaintained/ltb-project-ssp/APKBUILD b/unmaintained/ltb-project-ssp/APKBUILD
new file mode 100644
index 0000000000..43c1bf09fa
--- /dev/null
+++ b/unmaintained/ltb-project-ssp/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname="ltb-project-ssp"
+_realname="ltb-project-self-service-password"
+pkgver="1.3"
+pkgrel=0
+pkgdesc="PHP application that allows users to change their password in an LDAP directory"
+url="https://ltb-project.org/wiki/documentation/self-service-password"
+arch="noarch"
+license="GPL"
+_php=php7
+depends="$_php ${_php}-ldap ${_php}-openssl ${_php}-sodium"
+makedepends="$depends_dev"
+options="!check"
+source="http://ltb-project.org/archives/ltb-project-self-service-password-$pkgver.tar.gz
+ ltb-project-ssp-move-config-location.patch
+ "
+builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ return 0
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/etc/ltb-project/ssp
+ mkdir -p "$pkgdir"/usr/share/webapps/ltb-project/ssp
+ mv conf "$pkgdir"/etc/ltb-project/ssp
+ cp -r * "$pkgdir"/usr/share/webapps/ltb-project/ssp
+}
+
+sha512sums="71aec5a3673ee710d4ba4a17862c695e0775ad944d85c8e05e826774010b8e905af5ab9e75886bc8c2efb9d9372ffe00d8856024e9656e1c71a57017b0eeac6d ltb-project-self-service-password-1.3.tar.gz
+52354e07d19d01066fbd95ad95cb1e42e6c2798258c34e6e90225cb60b035427fd639232e4686ba55bafd543215dded9d3428a7c0b31b548a73f3bb9d3b61ba2 ltb-project-ssp-move-config-location.patch"
diff --git a/unmaintained/ltb-project-ssp/ltb-project-ssp-move-config-location.patch b/unmaintained/ltb-project-ssp/ltb-project-ssp-move-config-location.patch
new file mode 100644
index 0000000000..57171d42cb
--- /dev/null
+++ b/unmaintained/ltb-project-ssp/ltb-project-ssp-move-config-location.patch
@@ -0,0 +1,11 @@
+--- a/index.php
++++ b/index.php
+@@ -24,7 +24,7 @@
+ #==============================================================================
+ # Includes
+ #==============================================================================
+-require_once("conf/config.inc.php");
++require_once("/etc/ltb-project/ssp/conf/config.inc.php");
+ require_once("lib/vendor/defuse-crypto.phar");
+ require_once("lib/functions.inc.php");
+ if ($use_recaptcha) {
diff --git a/unmaintained/mautrix-telegram/APKBUILD b/unmaintained/mautrix-telegram/APKBUILD
new file mode 100644
index 0000000000..e560d46b6d
--- /dev/null
+++ b/unmaintained/mautrix-telegram/APKBUILD
@@ -0,0 +1,69 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer:
+pkgname=mautrix-telegram
+pkgver=0.9.0
+pkgrel=5
+pkgdesc="A Matrix-Telegram hybrid puppeting/relaybot bridge"
+url="https://github.com/tulir/mautrix-telegram"
+arch="noarch"
+license="AGPL-3.0-or-later"
+depends="
+ py3-aiohttp
+ py3-alembic
+ py3-commonmark
+ py3-magic
+ py3-mautrix>~0.8.3
+ py3-ruamel.yaml
+ py3-sqlalchemy
+ py3-telethon>~1.17
+ py3-telethon-session-sqlalchemy
+ python3
+ "
+makedepends="
+ py3-pytest-runner
+ py3-setuptools
+ "
+checkdepends="
+ py3-pytest
+ py3-pytest-asyncio
+ py3-pytest-mock
+ py3-pytest-runner
+ "
+install="$pkgname.pre-install $pkgname.post-upgrade"
+subpackages="$pkgname-openrc"
+source="https://github.com/tulir/mautrix-telegram/archive/v$pkgver/mautrix-telegram-v$pkgver.tar.gz
+ mautrix-telegram.initd
+ mautrix-telegram.confd
+ default-log-dir.patch
+ "
+options="!check" # Broken for now
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # Remove installed tests
+ local _site_packages=$(python3 -c "import site; print(site.getsitepackages()[0])")
+ rm -r "$pkgdir/$_site_packages"/tests/
+
+ install -Dm644 mautrix_telegram/example-config.yaml "$pkgdir"/etc/mautrix-telegram/example-config.yaml
+ install -Dm755 "$srcdir"/mautrix-telegram.initd "$pkgdir"/etc/init.d/mautrix-telegram
+ install -Dm644 "$srcdir"/mautrix-telegram.confd "$pkgdir"/etc/conf.d/mautrix-telegram
+
+ mkdir -p "$pkgdir"/usr/share/mautrix-telegram
+ mv \
+ "$pkgdir"/usr/alembic \
+ "$pkgdir"/usr/alembic.ini \
+ "$pkgdir"/usr/share/mautrix-telegram/
+}
+sha512sums="16622cf9f1624c8641fbda9a47e34bc78d08f068cf6c6715fb8da8d2bad19e02fc161b8b246623400831f25d466fa40ae14115bae716997ed83e8ba683e30c76 mautrix-telegram-v0.9.0.tar.gz
+ee0c29822abf213acf2a63205bdb3fca845c916682f1f7dadf17f443fba8191844a0ee9e0ca323e6de7d539e141f2df1b4457a7fbfbe8af607e3189809d23205 mautrix-telegram.initd
+7b3c15dd2d0671c4c777bcf4f2e905d9a0b639a54828313ac9db1a9793fde3d092e92f18aa896bff94b9a81db3df74b3de65661c6879cb648d36f5cec2437df0 mautrix-telegram.confd
+09e9afa45341927fc6085573aaa8a2b3816ad75b664d57ebd2e44cab2612f97972f022e66a4b98e5cd1c7421d257859ffa5333201f11a5666cdaa470b8618c03 default-log-dir.patch"
diff --git a/unmaintained/mautrix-telegram/default-log-dir.patch b/unmaintained/mautrix-telegram/default-log-dir.patch
new file mode 100644
index 0000000000..2b33ee16e5
--- /dev/null
+++ b/unmaintained/mautrix-telegram/default-log-dir.patch
@@ -0,0 +1,16 @@
+Upstream: No, Alpine specific
+Reason: We don't want to log into $PWD by default but into /var/log/mautrix-telegram.log
+
+diff --git a/mautrix_telegram/example-config.yaml b/mautrix_telegram/example-config.yaml
+index 70bc111..9875175 100644
+--- a/mautrix_telegram/example-config.yaml
++++ b/mautrix_telegram/example-config.yaml
+@@ -415,7 +415,7 @@ logging:
+ file:
+ class: logging.handlers.RotatingFileHandler
+ formatter: normal
+- filename: ./mautrix-telegram.log
++ filename: /var/log/mautrix-telegram/mautrix-telegram.log
+ maxBytes: 10485760
+ backupCount: 10
+ console:
diff --git a/unmaintained/mautrix-telegram/mautrix-telegram.confd b/unmaintained/mautrix-telegram/mautrix-telegram.confd
new file mode 100644
index 0000000000..d463224183
--- /dev/null
+++ b/unmaintained/mautrix-telegram/mautrix-telegram.confd
@@ -0,0 +1,7 @@
+# Configuration for /etc/init.d/mautrix-telegram
+
+# Location of configuration file
+config="/etc/mautrix-telegram/config.yaml"
+
+# Extra arguments to be passed when starting mautrix-telegram
+# command_args=""
diff --git a/unmaintained/mautrix-telegram/mautrix-telegram.initd b/unmaintained/mautrix-telegram/mautrix-telegram.initd
new file mode 100644
index 0000000000..d07013d270
--- /dev/null
+++ b/unmaintained/mautrix-telegram/mautrix-telegram.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+supervisor=supervise-daemon
+
+name="mautrix-telegram"
+description="Daemon for mautrix-telegram, the Matrix-Telegram hybrid puppeting/relaybot bridge"
+
+: ${command_user:="mautrix-telegram:mautrix-telegram"}
+: ${config:="/etc/mautrix-telegram/config.yaml"}
+
+command="/usr/bin/python3"
+command_args="-m mautrix_telegram -c $config $command_args"
+
+depends() {
+ need net
+}
+
+start_pre() {
+ checkpath --file --owner "$command_user" /etc/mautrix-telegram/config.yaml
+ checkpath --directory --owner "$command_user" /var/log/mautrix-telegram
+}
diff --git a/unmaintained/mautrix-telegram/mautrix-telegram.post-upgrade b/unmaintained/mautrix-telegram/mautrix-telegram.post-upgrade
new file mode 100644
index 0000000000..d4f7d0a8c8
--- /dev/null
+++ b/unmaintained/mautrix-telegram/mautrix-telegram.post-upgrade
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+cat <<EOF
+You might need to upgrade the database after upgrading to a newer version of
+mautrix-telegram. You can do so using alembic. After making sure it's installed
+run:
+
+ cd /usr/share/mautrix-telegram && alembic -x config=/etc/mautrix-telegram/config.yaml upgrade head
+
+Then restart the service.
+EOF
diff --git a/unmaintained/mautrix-telegram/mautrix-telegram.pre-install b/unmaintained/mautrix-telegram/mautrix-telegram.pre-install
new file mode 100644
index 0000000000..488396b112
--- /dev/null
+++ b/unmaintained/mautrix-telegram/mautrix-telegram.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S mautrix-telegram 2>/dev/null
+adduser -S -D -H -h /var/lib/mautrix-telegram -s /sbin/nologin -G mautrix-telegram -g mautrix-telegram mautrix-telegram 2>/dev/null
+
+exit 0
diff --git a/unmaintained/notepadqq/APKBUILD b/unmaintained/notepadqq/APKBUILD
new file mode 100644
index 0000000000..89a9677bc9
--- /dev/null
+++ b/unmaintained/notepadqq/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=notepadqq
+pkgver=1.4.8
+pkgrel=1
+pkgdesc="Notepad++-like text editor for Linux"
+url="https://notepadqq.altervista.org/"
+#arch="x86 x86_64"
+license="GPL-3.0-only" # No source code headers
+depends="coreutils qt5-qtwebkit qt5-qtsvg qt5-qtbase"
+makedepends="qt5-qtbase-dev qt5-qttools-dev qt5-qtsvg-dev
+ qt5-qtwebkit-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ sed -i \
+ -e 's:/lib/notepadqq/:/bin/:' \
+ src/ui/ui.pro
+ sed -i -e 's:\.\./\.\.:\.\.:' src/ui/notepadqq.cpp
+}
+
+build() {
+ qmake-qt5 PREFIX=/usr LRELEASE=/usr/lib/qt5/bin/lrelease notepadqq.pro
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+sha512sums="fa1937b75a378fb81486a871a5b736f6ba216cd4b71f99e342e457de65ea034c2ee4d2c9f42754c4737671ccb1083fb1e6c946240ab2094042125430578141fa notepadqq-1.4.8.tar.gz"
diff --git a/unmaintained/paxmark/APKBUILD b/unmaintained/paxmark/APKBUILD
new file mode 100644
index 0000000000..0192ef9140
--- /dev/null
+++ b/unmaintained/paxmark/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=paxmark
+pkgver=0.12
+pkgrel=0
+pkgdesc="Manage PaX marking of executables"
+url="https://alpinelinux.org"
+arch="noarch"
+options="!check"
+license="GPL-2.0-or-later"
+depends="attr"
+source="paxmark"
+
+package() {
+ mkdir -p "$pkgdir"/usr/sbin
+ install -m755 "$srcdir"/paxmark "$pkgdir"/usr/sbin
+ ln -s paxmark "$pkgdir"/usr/sbin/paxmark.sh
+}
+
+sha512sums="8bbae69e8159a75abd24b461994ad2c1995529fac1457c48845eec43b7f03b4fe50f49992810978ae15b1854bdf97ed86948f1b48209fd26baabb39384384d52 paxmark"
diff --git a/unmaintained/paxmark/paxmark b/unmaintained/paxmark/paxmark
new file mode 100644
index 0000000000..03e244bc09
--- /dev/null
+++ b/unmaintained/paxmark/paxmark
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+ret=0
+flags="${1//[!zPpEeMmRrSs]}"
+[ -n "${flags}" ] || exit 0
+shift
+
+# Create XATTR_PAX marking using attr
+xval=""
+[ "${flags//[!P]}" ] && xval="${xval}P"
+[ "${flags//[!p]}" -a -z "${flags//[!P]}" ] && xval="${xval}p"
+[ "${flags//[!E]}" ] && xval="${xval}E"
+[ "${flags//[!e]}" -a -z "${flags//[!E]}" ] && xval="${xval}e"
+[ -z "${flags//[!zEe]}" ] && xval="${xval}e"
+[ "${flags//[!M]}" ] && xval="${xval}M"
+[ "${flags//[!m]}" -a -z "${flags//[!M]}" ] && xval="${xval}m"
+[ "${flags//[!R]}" ] && xval="${xval}R"
+[ "${flags//[!r]}" -a -z "${flags//[!R]}" ] && xval="${xval}r"
+[ "${flags//[!S]}" ] && xval="${xval}S"
+[ "${flags//[!s]}" -a -z "${flags//[!S]}" ] && xval="${xval}s"
+
+for f in "$@"; do
+ if [ -n "FAKEROOTKEY" ]; then
+ # fakeroot does not set xattr's on disk.
+ # explicitly do that, because the marked binary might
+ # be executed next during install. But don't fail on it
+ # because if xattr is not supported it's not hardened kernel.
+ LD_PRELOAD="" FAKEROOTKEY="" attr -q -s pax.flags -V "${xval}" "${f}" &>/dev/null
+ fi
+ attr -q -s pax.flags -V "${xval}" "${f}" >/dev/null || ret=1
+done
+
+exit $ret
+
diff --git a/unmaintained/polipo/APKBUILD b/unmaintained/polipo/APKBUILD
new file mode 100644
index 0000000000..b2461d517b
--- /dev/null
+++ b/unmaintained/polipo/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Alexander Georgievskiy <galeksandrp@gmail.com>
+# Maintainer:
+pkgname=polipo
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="The Polipo caching HTTP proxy"
+url="https://github.com/jech/$pkgname"
+arch="all"
+license="MIT"
+depends=""
+makedepends="texinfo"
+install=""
+subpackages="$pkgname-doc"
+source="https://github.com/jech/$pkgname/archive/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgname-$pkgver"
+options="!check"
+
+build() {
+ cd "$builddir"
+
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ make PREFIX="$pkgdir/usr" MANDIR="$pkgdir/usr/share/man" INFODIR="$pkgdir/usr/share/info" LOCAL_ROOT="$pkgdir/usr/share/polipo/www" install
+}
+
+sha512sums="f99f4f7bbd39f2651a1df12e1c88d45938ddbc85ef10e2ce0e8a40e25019986a17e7cd449efcc0a268367297bc9597d935df2d1e4f48661cc8f28310a17b6327 polipo-1.1.1.tar.gz"
diff --git a/unmaintained/py3-llfuse/APKBUILD b/unmaintained/py3-llfuse/APKBUILD
deleted file mode 100644
index 9b2ec7fd64..0000000000
--- a/unmaintained/py3-llfuse/APKBUILD
+++ /dev/null
@@ -1,27 +0,0 @@
-# Contributor: Jakub Jirutka <jakub@jirutka.cz>
-# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
-# TODO: Add check (needs pytest-checklog).
-pkgname=py3-llfuse
-_pkgname=llfuse
-pkgver=1.3.2
-pkgrel=0
-pkgdesc="Python bindings for the low-level FUSE API"
-url="https://bitbucket.org/nikratio/python-llfuse/"
-arch="all"
-license="LGPL"
-makedepends="python3-dev fuse-dev attr-dev"
-checkdepends="pytest"
-source="https://bitbucket.org/nikratio/python-llfuse/downloads/$_pkgname-$pkgver.tar.bz2"
-builddir="$srcdir/$_pkgname-$pkgver"
-
-build() {
- cd "$builddir"
- python3 setup.py build
-}
-
-package() {
- cd "$builddir"
- python3 setup.py install --prefix=/usr --root="$pkgdir"
-}
-
-sha512sums="f065818134b12dd128574836bc7d339404d9b7d9236b535da709378e9206b17cb2accd97fc0b658f39a93efe126a7c3064f7901468231f63f8398a3e053498cf llfuse-1.3.2.tar.bz2"
diff --git a/unmaintained/py3-mautrix/APKBUILD b/unmaintained/py3-mautrix/APKBUILD
new file mode 100644
index 0000000000..23abfd2422
--- /dev/null
+++ b/unmaintained/py3-mautrix/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer:
+pkgname=py3-mautrix
+pkgver=0.8.16
+pkgrel=2
+pkgdesc="A Python 3 asyncio Matrix framework"
+url="https://github.com/tulir/mautrix-python"
+arch="noarch"
+license="MPL-2.0"
+depends="
+ py3-aiohttp
+ py3-attrs
+ py3-commonmark
+ py3-lxml
+ py3-ruamel.yaml
+ py3-sqlalchemy
+ python3
+ "
+makedepends="py3-setuptools"
+source="https://github.com/tulir/mautrix-python/archive/v$pkgver/mautrix-python-v$pkgver.tar.gz"
+options="!check" # No tests
+builddir="$srcdir/mautrix-python-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="
+db153fc71c5d743d70378d4cbc779899d0895347fa8c6064b2f75001799f6cf1664b117085ea1767eeb1ba90a3b0680a8c5af3ce0d7f686b02690225af58149f mautrix-python-v0.8.16.tar.gz
+"
diff --git a/unmaintained/py3-pdfkit/APKBUILD b/unmaintained/py3-pdfkit/APKBUILD
new file mode 100644
index 0000000000..1502a9cb2b
--- /dev/null
+++ b/unmaintained/py3-pdfkit/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer:
+pkgname=py3-pdfkit
+pkgver=0.6.1
+pkgrel=2
+pkgdesc="Python wrapper to convert HTML to PDF using the WebKit rendering engine"
+url="https://github.com/JazzCore/python-pdfkit"
+license="MIT"
+# armhf, mips64 and riscv64 blocked by qt5-qtwebkit -> wkhtmltopdf
+arch="noarch !armhf !mips64 !riscv64"
+depends="wkhtmltopdf python3"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/p/pdfkit/pdfkit-$pkgver.tar.gz"
+options="!check" # No testsuite in pypi tarball, no github releases
+builddir="$srcdir/pdfkit-$pkgver"
+
+replaces="py-pdfkit" # Backwards compatibility
+provides="py-pdfkit=$pkgver-r$pkgrel" # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --root "$pkgdir"
+}
+
+sha512sums="b3ac1016d1c01a2a196f567b9b672caca10f564cc6a62122691d34c3cbbf143f6a846bfba26c3474e9c0296977f0d30c0b5af13b3321ab207b787df3cba12e5d pdfkit-0.6.1.tar.gz"
diff --git a/unmaintained/qt5-qtwebkit/0001-musl-mcontext.patch b/unmaintained/qt5-qtwebkit/0001-musl-mcontext.patch
new file mode 100644
index 0000000000..20100ca6e7
--- /dev/null
+++ b/unmaintained/qt5-qtwebkit/0001-musl-mcontext.patch
@@ -0,0 +1,67 @@
+diff --git a/Source/JavaScriptCore/heap/MachineStackMarker.cpp b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
+index 883914fd3d1..9c0209ad2f3 100644
+--- a/Source/JavaScriptCore/heap/MachineStackMarker.cpp
++++ b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
+@@ -683,7 +683,19 @@ void* MachineThreads::Thread::Registers::framePointer() const
+ #endif
+
+ #else
+-#error Need a way to get the frame pointer for another thread on this platform
++
++// The following sequence depends on musl libc's sys/ucontext.h.
++#if CPU(X86)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_EBP]);
++#elif CPU(X86_64)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_RBP]);
++#elif CPU(ARM)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.arm_fp);
++#elif CPU(ARM64)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.regs[29]);
++#elif CPU(MIPS)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[30]);
++#endif
+ #endif
+ }
+
+@@ -765,7 +777,19 @@ void* MachineThreads::Thread::Registers::instructionPointer() const
+ #endif
+
+ #else
+-#error Need a way to get the instruction pointer for another thread on this platform
++
++// The following sequence depends on musl libc's sys/ucontext.h.
++#if CPU(X86)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_EIP]);
++#elif CPU(X86_64)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_RIP]);
++#elif CPU(ARM)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.arm_pc);
++#elif CPU(ARM64)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.pc);
++#elif CPU(MIPS)
++ return reinterpret_cast<void *>((uintptr_t)regs.machineContext.pc);
++#endif
+ #endif
+ }
+ void* MachineThreads::Thread::Registers::llintPC() const
+@@ -856,7 +880,19 @@ void* MachineThreads::Thread::Registers::llintPC() const
+ #endif
+
+ #else
+-#error Need a way to get the LLIntPC for another thread on this platform
++
++// The following sequence depends on musl libc's sys/ucontext.h.
++#if CPU(X86)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_ESI]);
++#elif CPU(X86_64)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_R8]);
++#elif CPU(ARM)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.arm_r8);
++#elif CPU(ARM64)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.regs[4]);
++#elif CPU(MIPS)
++ return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[12]);
++#endif
+ #endif
+ }
+ #endif // ENABLE(SAMPLING_PROFILER)
diff --git a/unmaintained/qt5-qtwebkit/0002-fix-build-with-bison3.7.patch b/unmaintained/qt5-qtwebkit/0002-fix-build-with-bison3.7.patch
new file mode 100644
index 0000000000..de3bbcfc3e
--- /dev/null
+++ b/unmaintained/qt5-qtwebkit/0002-fix-build-with-bison3.7.patch
@@ -0,0 +1,46 @@
+From d92b11fea65364fefa700249bd3340e0cd4c5b31 Mon Sep 17 00:00:00 2001
+From: Dmitry Shachnev <mitya57@gmail.com>
+Date: Tue, 4 Aug 2020 21:04:06 +0300
+Subject: [PATCH] Let Bison generate the header directly, to fix build with
+ Bison 3.7
+
+Starting with Bison 3.7, the generated C++ file #include's the header
+by default, instead of duplicating it. So we should not delete it.
+
+Remove the code to add #ifdef guards to the header, since Bison adds
+them itself since version 2.6.3.
+---
+ Source/WebCore/css/makegrammar.pl | 21 +--------------------
+ 1 file changed, 1 insertion(+), 20 deletions(-)
+
+diff --git a/Source/WebCore/css/makegrammar.pl b/Source/WebCore/css/makegrammar.pl
+index 5d63b08102eb..9435701c7061 100644
+--- a/Source/WebCore/css/makegrammar.pl
++++ b/Source/WebCore/css/makegrammar.pl
+@@ -73,25 +73,6 @@
+ }
+
+ my $fileBase = File::Spec->join($outputDir, $filename);
+-my @bisonCommand = ($bison, "-d", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp");
++my @bisonCommand = ($bison, "--defines=$fileBase.h", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp");
+ push @bisonCommand, "--no-lines" if $^O eq "MSWin32"; # Work around bug in bison >= 3.0 on Windows where it puts backslashes into #line directives.
+ system(@bisonCommand) == 0 or die;
+-
+-open HEADER, ">$fileBase.h" or die;
+-print HEADER << "EOF";
+-#ifndef CSSGRAMMAR_H
+-#define CSSGRAMMAR_H
+-EOF
+-
+-open HPP, "<$fileBase.cpp.h" or open HPP, "<$fileBase.hpp" or die;
+-while (<HPP>) {
+- print HEADER;
+-}
+-close HPP;
+-
+-print HEADER "#endif\n";
+-close HEADER;
+-
+-unlink("$fileBase.cpp.h");
+-unlink("$fileBase.hpp");
+-
diff --git a/unmaintained/qt5-qtwebkit/0003-fix-compilation-with-python3.9.patch b/unmaintained/qt5-qtwebkit/0003-fix-compilation-with-python3.9.patch
new file mode 100644
index 0000000000..bad26ef543
--- /dev/null
+++ b/unmaintained/qt5-qtwebkit/0003-fix-compilation-with-python3.9.patch
@@ -0,0 +1,27 @@
+From 78360c01c796b6260bf828bc9c8a0ef73c5132fd Mon Sep 17 00:00:00 2001
+From: Konstantin Tokarev <annulen@yandex.ru>
+Date: Wed, 3 Jun 2020 15:01:42 +0300
+Subject: [PATCH] Fix compilation with Python 3.9: avoid passing encoding to
+ json.load()
+
+In Python 2.7 UTF-8 is assumed by default, while in Python 3 this argument
+is not supported.
+
+Change-Id: Ic459d60a6b20bc1838d8771bc36ac41614fe61a9
+---
+ Source/JavaScriptCore/generate-bytecode-files | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Source/JavaScriptCore/generate-bytecode-files b/Source/JavaScriptCore/generate-bytecode-files
+index c5dab429c7b0f..af3431275ecf9 100644
+--- a/Source/JavaScriptCore/generate-bytecode-files
++++ b/Source/JavaScriptCore/generate-bytecode-files
+@@ -163,7 +163,7 @@ if __name__ == "__main__":
+ initBytecodesFile = openOrExit(initASMFileName, "w")
+
+ try:
+- bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
++ bytecodeSections = json.load(bytecodeFile)
+ except:
+ print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()))
+
diff --git a/unmaintained/qt5-qtwebkit/0004-glib-2.68.patch b/unmaintained/qt5-qtwebkit/0004-glib-2.68.patch
new file mode 100644
index 0000000000..3df6078963
--- /dev/null
+++ b/unmaintained/qt5-qtwebkit/0004-glib-2.68.patch
@@ -0,0 +1,26 @@
+From 5b698ba3faffd4e198a45be9fe74f53307395e4b Mon Sep 17 00:00:00 2001
+From: Fabian Vogt <fvogt@suse.de>
+Date: Wed, 7 Apr 2021 13:38:09 +0200
+Subject: [PATCH] Remove invalid g_object declarations to fix build with glib
+ >= 2.68
+
+g_object_ref_sink is defined as a macro meanwhile and so the build fails.
+Just remove the declarations, glib.h is included anyway.
+---
+ Source/WTF/wtf/glib/GRefPtr.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/Source/WTF/wtf/glib/GRefPtr.h b/Source/WTF/wtf/glib/GRefPtr.h
+index 06133d82cb35..d9a1d2f145f5 100644
+--- a/Source/WTF/wtf/glib/GRefPtr.h
++++ b/Source/WTF/wtf/glib/GRefPtr.h
+@@ -29,9 +29,6 @@
+ #include <algorithm>
+ #include <glib.h>
+
+-extern "C" void g_object_unref(gpointer);
+-extern "C" gpointer g_object_ref_sink(gpointer);
+-
+ namespace WTF {
+
+ enum GRefPtrAdoptType { GRefPtrAdopt };
diff --git a/unmaintained/qt5-qtwebkit/0005-Add-support-for-RISC-V-64-bit-architecture.patch b/unmaintained/qt5-qtwebkit/0005-Add-support-for-RISC-V-64-bit-architecture.patch
new file mode 100644
index 0000000000..2fb1643cd5
--- /dev/null
+++ b/unmaintained/qt5-qtwebkit/0005-Add-support-for-RISC-V-64-bit-architecture.patch
@@ -0,0 +1,76 @@
+From 5f98212a18ac3893b8178abb88cbf2b946ccb518 Mon Sep 17 00:00:00 2001
+From: Dmitry Shachnev <mitya57@gmail.com>
+Date: Tue, 14 Apr 2020 13:51:37 +0300
+Subject: [PATCH] Add support for RISC-V 64-bit architecture
+
+---
+ CMakeLists.txt | 2 ++
+ Source/JavaScriptCore/CMakeLists.txt | 1 +
+ Source/WTF/wtf/Platform.h | 8 +++++++-
+ Source/WTF/wtf/dtoa/utils.h | 2 +-
+ 4 files changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 432ae6fce701..eaf3a35dfd5b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -83,6 +83,8 @@ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "s390")
+ set(WTF_CPU_S390 1)
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "s390x")
+ set(WTF_CPU_S390X 1)
++elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64")
++ set(WTF_CPU_RISCV64 1)
+ else ()
+ message(FATAL_ERROR "Unknown CPU '${LOWERCASE_CMAKE_SYSTEM_PROCESSOR}'")
+ endif ()
+diff --git a/Source/JavaScriptCore/CMakeLists.txt b/Source/JavaScriptCore/CMakeLists.txt
+index afd76ca1a184..3d184090dce7 100644
+--- a/Source/JavaScriptCore/CMakeLists.txt
++++ b/Source/JavaScriptCore/CMakeLists.txt
+@@ -1287,6 +1287,7 @@ elseif (WTF_CPU_S390)
+ elseif (WTF_CPU_S390X)
+ elseif (WTF_CPU_MIPS)
+ elseif (WTF_CPU_SH4)
++elseif (WTF_CPU_RISCV64)
+ elseif (WTF_CPU_X86)
+ elseif (WTF_CPU_X86_64)
+ if (MSVC AND ENABLE_JIT)
+diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
+index 5717f3ea1664..7aefa1bab50d 100644
+--- a/Source/WTF/wtf/Platform.h
++++ b/Source/WTF/wtf/Platform.h
+@@ -176,6 +176,11 @@
+ #define WTF_CPU_X86_SSE2 1
+ #endif
+
++/* CPU(RISCV64) - RISCV64 */
++#if defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
++#define WTF_CPU_RISCV64 1
++#endif
++
+ /* CPU(ARM64) - Apple */
+ #if (defined(__arm64__) && defined(__APPLE__)) || defined(__aarch64__)
+ #define WTF_CPU_ARM64 1
+@@ -707,7 +712,8 @@
+ || CPU(S390X) \
+ || CPU(MIPS64) \
+ || CPU(PPC64) \
+- || CPU(PPC64LE)
++ || CPU(PPC64LE) \
++ || CPU(RISCV64)
+ #define USE_JSVALUE64 1
+ #else
+ #define USE_JSVALUE32_64 1
+diff --git a/Source/WTF/wtf/dtoa/utils.h b/Source/WTF/wtf/dtoa/utils.h
+index 889642cee722..176d5909f7d3 100644
+--- a/Source/WTF/wtf/dtoa/utils.h
++++ b/Source/WTF/wtf/dtoa/utils.h
+@@ -49,7 +49,7 @@
+ defined(__ARMEL__) || \
+ defined(_MIPS_ARCH_MIPS32R2)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+-#elif CPU(MIPS) || CPU(MIPS64) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA)
++#elif CPU(MIPS) || CPU(MIPS64) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA) || CPU(RISCV64)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+ #elif defined(_M_IX86) || defined(__i386__)
+ #if defined(_WIN32)
diff --git a/unmaintained/qt5-qtwebkit/APKBUILD b/unmaintained/qt5-qtwebkit/APKBUILD
new file mode 100644
index 0000000000..692b44ed65
--- /dev/null
+++ b/unmaintained/qt5-qtwebkit/APKBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=qt5-qtwebkit
+pkgver=5.212.0_alpha4
+_pkgver=${pkgver/_/-}
+pkgrel=14
+pkgdesc="Qt5 - QtWebKit components"
+url="https://www.qt.io/developers/"
+# armhf blocked by qt5-qtdeclarative
+# mips64 and riscv64 disabled, build failure in JavascriptCore due to lack of JIT
+arch="all !armhf !mips64 !riscv64"
+license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
+depends_dev="
+ qt5-qtbase-dev
+ qt5-qtlocation-dev
+ qt5-qtsensors-dev
+ qt5-qtwebchannel-dev
+ hyphen-dev
+ libjpeg-turbo-dev
+ icu-dev
+ libxml2-dev
+ libxslt-dev
+ libxcomposite-dev
+ libxrender-dev
+ gst-plugins-base-dev
+ libwebp-dev
+ libexecinfo-dev
+ "
+makedepends="$depends_dev
+ cmake
+ bison
+ flex
+ gperf
+ ruby
+ "
+subpackages="$pkgname-dev"
+
+source="https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz
+ 0001-musl-mcontext.patch
+ 0002-fix-build-with-bison3.7.patch
+ 0003-fix-compilation-with-python3.9.patch
+ 0004-glib-2.68.patch
+ 0005-Add-support-for-RISC-V-64-bit-architecture.patch
+ "
+builddir="$srcdir/qtwebkit-$_pkgver"
+
+build() {
+ case "$CARCH" in
+ ppc64le|s390x) _jit=FALSE ;;
+ *) _jit=TRUE ;;
+ esac
+
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPORT=Qt \
+ -DENABLE_JIT=$_jit
+ make -C build
+}
+
+package() {
+ DESTDIR="$pkgdir" make -C build install
+
+ install -d "$pkgdir"/usr/share/licenses
+ ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+sha512sums="
+33f11270bd030599beff9c1983a6c5ff2d61f407cc8a6825f7f405d46f9184c720fc7f60c7359f08f828db96a2170092875066a0d5c0a21ff09bc48a2603fbf6 qtwebkit-5.212.0-alpha4.tar.xz
+11f6b4b5101f5e89917062483c0d55c4180dc4b8107bb3f6ad92ed4e56361ef1b604909056b383313c4072b1229dc9f6606ceacdd84efc1dc80dd1151294b195 0001-musl-mcontext.patch
+cf21eff51e1026f4e506724a512b9925d4619909f5924bf01055244817ec9594e9d3ce105b510cd28ecce4772d122d1393fb7273501e20e16749f43282a3200b 0002-fix-build-with-bison3.7.patch
+e4d4d4abfb8f2e9913c2f5cb7b3a73d5c613a8e8ced66ae1a7789faaa83a2bdf89ff29955d7e9b7bd7a0935ca2ddcad796cf371882e2bb38b4e69c1d528cfe75 0003-fix-compilation-with-python3.9.patch
+f8a49e24023431ac37cff2b5bdf6f88d632021eb777668404956a4c6e4f8744f256205093dc5077325a33ec2a050b6e159dcf5d8cf3c1dda7d26ec0b37db95c3 0004-glib-2.68.patch
+096d567349584070781b7382c75f530fa1f34930281a5f58bdd5e7bb4281f613eb0d1d4e6d356a7e8b93529d742a12814723ec592f0e50f9b2b4829d5156f361 0005-Add-support-for-RISC-V-64-bit-architecture.patch
+"
diff --git a/unmaintained/seamonkey/APKBUILD b/unmaintained/seamonkey/APKBUILD
new file mode 100644
index 0000000000..ef8faba620
--- /dev/null
+++ b/unmaintained/seamonkey/APKBUILD
@@ -0,0 +1,89 @@
+# Contributor: Marc Vertes <mvertes@free.fr>
+# Maintainer: Marc Vertes <mvertes@free.fr>
+pkgname=seamonkey
+pkgver=2.49.5
+pkgrel=4
+pkgdesc="all-in-one internet application suite"
+url="https://www.seamonkey-project.org/"
+arch="x86_64 x86"
+license="GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MPL-2.0"
+makedepends="unzip zip gtk+3.0-dev gtk+2.0-dev yasm alsa-lib-dev libxt-dev linux-headers
+ hunspell-dev nspr-dev nss-dev jpeg-dev bzip2-dev zlib-dev libpng-dev
+ libevent-dev libvpx-dev sqlite-dev libffi-dev pixman-dev python2-dev
+ icu-dev m4 libxcomposite-dev autoconf2.13 nss-static
+ !firefox
+ "
+source="https://archive.mozilla.org/pub/mozilla.org/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz
+ mozconfig
+ fix-aouth.patch
+ fix-crmf.patch
+ fix-hunspell.patch
+ fix-i686-musl.patch
+ fix-libevent.patch
+ fix-libgen.patch
+ fix-linux-syscall.patch
+ fix-mallinfo.patch
+ fix-platform-linux.patch
+ fix-siginfo_t.patch
+ fix-stabs.patch
+ fix-sysctl.patch
+ fix-system-headers.patch
+ firefox-gcc-6.0.patch
+ avoid-getcontext-musl.patch
+ discard-x86-precision-musl.patch
+ "
+options="!check"
+
+build() {
+ cp ../../mozconfig .mozconfig
+ export MOZ_MAKE_FLAGS="$MAKEFLAGS"
+ export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/seamonkey-$pkgver"
+ export SHELL="/bin/ash"
+ unset MAKEFLAGS CPPFLAGS
+
+ # Disable some optimizations in gcc6 (rhbz#1328045)
+ CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 -D_FILE_OFFSET_BITS=64"
+ CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 -D_FILE_OFFSET_BITS=64"
+
+ make -f client.mk build
+}
+
+package() {
+ make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install
+
+ rm -rf "$pkgdir/usr/lib/seamonkey-$pkgver/dictionaries" \
+ "$pkgdir/usr/lib/seamonkey-$pkgver/hypenation"
+ ln -s /usr/share/hunspell \
+ "$pkgdir/usr/lib/seamonkey-$pkgver/dictionaries"
+ ln -s /usr/share/hyphen \
+ "$pkgdir/usr/lib/seamonkey-$pkgver/hyphenation"
+ install -Dm644 suite/branding/nightly/icons/gtk/seamonkey.png \
+ "$pkgdir/usr/share/pixmaps/seamonkey.png"
+ install -Dm644 mozilla/toolkit/mozapps/installer/linux/rpm/mozilla.desktop \
+ "$pkgdir/usr/share/applications/seamonkey.desktop"
+ sed -i 's/@MOZ_APP_DISPLAYNAME@/SeaMonkey internet suite/' \
+ "$pkgdir/usr/share/applications/seamonkey.desktop"
+ sed -i 's/@MOZ_APP_NAME@/seamonkey/' \
+ "$pkgdir/usr/share/applications/seamonkey.desktop"
+ rm -f "$pkgdir/usr/lib/pkgconfig/seamonkey-nss.pc"
+ rm -f "$pkgdir/usr/lib/pkgconfig/seamonkey-nspr.pc"
+}
+
+sha512sums="31309def1ad4276f13ecb343e936c7cade4b6850db88d9d84700f86bff7024b2b217b9e50fc3756b1d1beea483ceaa2a5a3afd053da00f6ac06e3795e9116789 seamonkey-2.49.5.source.tar.xz
+88bd5980cee447ef6fe8c837b60e2ee15dd2737ba3905a443085317da91e4942654e3a2b56b9b67a25844883c9690f504a664255030951bfac6c227cabb79a11 mozconfig
+c3b3b5a32f8672a42c051c03c31761414ce52c4a32258f1c7417af7de891e4b5f620ef2762034a18f84e5c7235559d920963aff0f28c2c1f4ae697a38d49b89c fix-aouth.patch
+e0f8e06ac71e5b4defdee80915793848e618174a9ba538477247a479bc7341ae312c66945b7b206f5f22c576091555a67223d7189e95f7b08a20f26d5e9bd2fc fix-crmf.patch
+ea58a2cf58e7d1d99a2346a6977fcb2acff8052e304f9f0d66e24241d77fe352610537c4d2a886b9085b970368dbe46e5011acc210bebcdf22a88a4b5be960b1 fix-hunspell.patch
+ac6ad28654723f8ee56f6ddcf2dc2800ee217cd4946cc6b543242881aeaf3edc9f66664205fb6939cec9ce4a2cb2ead4758c0ce021858b672b297ba9295fa392 fix-i686-musl.patch
+c2a83214cadc827dd6d37c635ea92ff0779849e55e524b831f1a82ca09dc985770212a81377c2519c3470d752e922fa360d6e49fdfc1f6e9ee581f30ad1885f1 fix-libevent.patch
+f148a9212b9d1bf62ce99e3ea69233fcdd74ffb0948ab53d17ec417539b4f9533409b2e9c487e3789b76cdfca92da074b9ea0f82452f56f72eced9cfbcd078f1 fix-libgen.patch
+fe377b6c0acbbb569f363cde2de8c640837237120bcbc3099cb9d9691f5b576cd76c531b0019e45385f696d7be60bb97141e39f2de742cb6d1a138fbcf217cc5 fix-linux-syscall.patch
+fd6b68082843a17a97a09953f24f74e72090acbcd245e8564ffe41ed5cb0a7afbf3dfc653a6e33a5f0bb0218ec11430f92acedc0c98a32c17dd2a053c3eef855 fix-mallinfo.patch
+25bb4f99a2d831a8604444a1071ca946c14b9fe416929660ce6f9d196b3cecbd84b8706a8a16f2653db0d722a8f033fac9dc2f295bf5b59e7f39024d89221d01 fix-platform-linux.patch
+285e9330810b0f57ebba3d15cb371543840a7c6b8a2656d6d6b3ad7e8d2ec840b34bcb75b92c3747b5a1b42625fbde3a5d1bbec7052ce47fe5455e5076ec6268 fix-siginfo_t.patch
+4a7fae85299969618d729021ed79ab312650419dd849800c4e93c2b78a063a91f4003e2ee66c74abefa28b881376cf78f52e99e5ae3c08b85ba11eeae73a5034 fix-stabs.patch
+43e800bdb15a11c21f71d0552ae2e92ad97574eb324f7be75cc92ed98332201386f9c9846d3e5f27b4e71452ffac71ab5b82ffdc2091d6c4830b9cb792bbdde4 fix-sysctl.patch
+d65900a74901d0455266342e4efbb655d67c62b52e69f482c33c3da3e24af900a3186f1398b88cccd9e822395480cd4ec4ce0d6053978003911457cacc36f767 fix-system-headers.patch
+664983718ba4ed2588850f499cc7da94f2b35d384b6655b1e5ec118e45e8cbd108aa2b9e04cc4b902f4ddba2e1be2cffb056643e053761bfc6da92c942f30305 firefox-gcc-6.0.patch
+c67d6df7ee04539abe126493c2fb61b1377b0cc6d84f660b36ed74e940b575a81830c9d50ce52a70df1ddd1747439b4cef31cbb1642545c176da1d82361fa7da avoid-getcontext-musl.patch
+e6023a4c01204f716849045f1ad3958dd2c0a62540f2b738beda7945ebbe836aabe9017463452ef6cad4df1a53642f2e7a5750870bdfd67d8a4ef6fdae775166 discard-x86-precision-musl.patch"
diff --git a/unmaintained/seamonkey/avoid-getcontext-musl.patch b/unmaintained/seamonkey/avoid-getcontext-musl.patch
new file mode 100644
index 0000000000..5887a7a722
--- /dev/null
+++ b/unmaintained/seamonkey/avoid-getcontext-musl.patch
@@ -0,0 +1,15 @@
+--- a/mozilla/tools/profiler/core/platform-linux.cc
++++ b/mozilla/tools/profiler/core/platform-linux.cc
+@@ -625,10 +625,10 @@
+ {
+ MOZ_ASSERT(aContext);
+ ucontext_t* pContext = reinterpret_cast<ucontext_t*>(aContext);
+- if (!getcontext(pContext)) {
++ /*if (!getcontext(pContext)) {
+ context = pContext;
+ SetSampleContext(this, aContext);
+- }
++ }*/
+ }
+
+ void OS::SleepMicro(int microseconds)
diff --git a/unmaintained/seamonkey/discard-x86-precision-musl.patch b/unmaintained/seamonkey/discard-x86-precision-musl.patch
new file mode 100644
index 0000000000..ef591177f2
--- /dev/null
+++ b/unmaintained/seamonkey/discard-x86-precision-musl.patch
@@ -0,0 +1,11 @@
+--- a/mozilla/js/src/jsnum.cpp
++++ b/mozilla/js/src/jsnum.cpp
+@@ -1120,7 +1120,7 @@
+ void
+ js::FIX_FPU()
+ {
+-#if (defined __GNUC__ && defined __i386__) || \
++#if (defined __GLIBC__ && defined __i386__) || \
+ (defined __SUNPRO_CC && defined __i386)
+ short control;
+ asm("fstcw %0" : "=m" (control) : );
diff --git a/unmaintained/seamonkey/firefox-gcc-6.0.patch b/unmaintained/seamonkey/firefox-gcc-6.0.patch
new file mode 100644
index 0000000000..6b02e59dd8
--- /dev/null
+++ b/unmaintained/seamonkey/firefox-gcc-6.0.patch
@@ -0,0 +1,26 @@
+diff -up ./mozilla/nsprpub/config/make-system-wrappers.pl.back firefox-44.0/nsprpub/config/make-system-wrappers.pl
+--- ./mozilla/nsprpub/config/make-system-wrappers.pl.back 2016-01-24 00:23:49.000000000 +0100
++++ ./mozilla/nsprpub/config/make-system-wrappers.pl 2016-02-02 14:58:45.064112655 +0100
+@@ -19,7 +19,9 @@ while (<STDIN>) {
+ open OUT, ">$output_dir/$_";
+ print OUT "#pragma GCC system_header\n"; # suppress include_next warning
+ print OUT "#pragma GCC visibility push(default)\n";
++ print OUT "#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS\n";
+ print OUT "#include_next \<$_\>\n";
++ print OUT "#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS\n";
+ print OUT "#pragma GCC visibility pop\n";
+ close OUT;
+ }
+diff -up firefox-44.0/mozglue/build/arm.cpp.old firefox-44.0/mozglue/build/arm.cpp
+--- ./mozilla/mozglue/build/arm.cpp.old 2016-02-03 10:07:29.879526500 +0100
++++ ./mozilla/mozglue/build/arm.cpp 2016-02-03 10:08:11.062697517 +0100
+@@ -104,7 +104,9 @@ check_neon(void)
+
+ # elif defined(__linux__) || defined(ANDROID)
+ # include <stdio.h>
++#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
+ # include <stdlib.h>
++#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
+ # include <string.h>
+
+ enum{
diff --git a/unmaintained/seamonkey/fix-aouth.patch b/unmaintained/seamonkey/fix-aouth.patch
new file mode 100644
index 0000000000..a79c18bccf
--- /dev/null
+++ b/unmaintained/seamonkey/fix-aouth.patch
@@ -0,0 +1,11 @@
+--- seamonkey-2.46/mozilla/toolkit/crashreporter/google-breakpad/src/common/stabs_reader.h.orig
++++ seamonkey-2.46/mozilla/toolkit/crashreporter/google-breakpad/src/common/stabs_reader.h
+@@ -56,7 +56,7 @@
+ #ifdef HAVE_MACH_O_NLIST_H
+ #include <mach-o/nlist.h>
+ #elif defined(HAVE_A_OUT_H)
+-#include <a.out.h>
++#include <linux/a.out.h>
+ #endif
+
+ #include <string>
diff --git a/unmaintained/seamonkey/fix-crmf.patch b/unmaintained/seamonkey/fix-crmf.patch
new file mode 100644
index 0000000000..c4eda8ef3f
--- /dev/null
+++ b/unmaintained/seamonkey/fix-crmf.patch
@@ -0,0 +1,13 @@
+--- seamonkey-2.49.5/mozilla/security/manager/ssl/moz.build.orig
++++ seamonkey-2.49.5/mozilla/security/manager/ssl/moz.build
+@@ -184,10 +184,6 @@
+
+ DEFINES['CERT_AddTempCertToPerm'] = '__CERT_AddTempCertToPerm'
+
+-USE_LIBS += [
+- 'crmf',
+-]
+-
+ include('/ipc/chromium/chromium-config.mozbuild')
+
+ if CONFIG['GNU_CXX']:
diff --git a/unmaintained/seamonkey/fix-hunspell.patch b/unmaintained/seamonkey/fix-hunspell.patch
new file mode 100644
index 0000000000..9eb4284e59
--- /dev/null
+++ b/unmaintained/seamonkey/fix-hunspell.patch
@@ -0,0 +1,16 @@
+--- seamonkey-2.46/mozilla/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h.orig
++++ seamonkey-2.46/mozilla/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h
+@@ -50,9 +50,9 @@
+ #include "mozilla/mozalloc.h"
+ #include "mozHunspellAllocator.h"
+
+-#define malloc(size) HunspellAllocator::CountingMalloc(size)
+-#define calloc(count, size) HunspellAllocator::CountingCalloc(count, size)
+-#define free(ptr) HunspellAllocator::CountingFree(ptr)
+-#define realloc(ptr, size) HunspellAllocator::CountingRealloc(ptr, size)
++//#define malloc(size) HunspellAllocator::CountingMalloc(size)
++//#define calloc(count, size) HunspellAllocator::CountingCalloc(count, size)
++//#define free(ptr) HunspellAllocator::CountingFree(ptr)
++//#define realloc(ptr, size) HunspellAllocator::CountingRealloc(ptr, size)
+
+ #endif
diff --git a/unmaintained/seamonkey/fix-i686-musl.patch b/unmaintained/seamonkey/fix-i686-musl.patch
new file mode 100644
index 0000000000..a85727d9b9
--- /dev/null
+++ b/unmaintained/seamonkey/fix-i686-musl.patch
@@ -0,0 +1,20 @@
+--- a/mozilla/mozglue/misc/StackWalk.cpp 2017-04-11 04:13:21.000000000 +0200
++++ b/mozilla/mozglue/misc/StackWalk.cpp 2017-11-29 15:23:07.218649970 +0100
+@@ -41,7 +41,7 @@
+ #define MOZ_STACKWALK_SUPPORTS_MACOSX 0
+ #endif
+
+-#if (defined(linux) && \
++#if defined(__GLIBC__) && (defined(linux) && \
+ ((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
+ defined(HAVE__UNWIND_BACKTRACE)))
+ #define MOZ_STACKWALK_SUPPORTS_LINUX 1
+@@ -911,7 +911,7 @@
+ }
+
+ // {x86, ppc} x {Linux, Mac} stackwalking code.
+-#if ((defined(__i386) || defined(PPC) || defined(__ppc__)) && \
++#if defined(__GLIBC__) && ((defined(__i386) || defined(PPC) || defined(__ppc__)) && \
+ (MOZ_STACKWALK_SUPPORTS_MACOSX || MOZ_STACKWALK_SUPPORTS_LINUX))
+
+ MFBT_API bool
diff --git a/unmaintained/seamonkey/fix-libevent.patch b/unmaintained/seamonkey/fix-libevent.patch
new file mode 100644
index 0000000000..2d410237cd
--- /dev/null
+++ b/unmaintained/seamonkey/fix-libevent.patch
@@ -0,0 +1,11 @@
+--- seamonkey-2.48/mozilla/ipc/chromium/src/base/message_pump_libevent.cc.orig
++++ seamonkey-2.48/mozilla/ipc/chromium/src/base/message_pump_libevent.cc
+@@ -23,7 +23,7 @@
+ // This macro checks that the _EVENT_SIZEOF_* constants defined in
+ // ipc/chromiume/src/third_party/<platform>/event2/event-config.h are correct.
+ #define CHECK_EVENT_SIZEOF(TYPE, type) \
+- static_assert(_EVENT_SIZEOF_##TYPE == sizeof(type), \
++ static_assert(EVENT__SIZEOF_##TYPE == sizeof(type), \
+ "bad _EVENT_SIZEOF_"#TYPE);
+
+ CHECK_EVENT_SIZEOF(LONG, long);
diff --git a/unmaintained/seamonkey/fix-libgen.patch b/unmaintained/seamonkey/fix-libgen.patch
new file mode 100644
index 0000000000..d0b03c5ff1
--- /dev/null
+++ b/unmaintained/seamonkey/fix-libgen.patch
@@ -0,0 +1,20 @@
+--- seamonkey-2.39/mozilla/tools/profiler/lul/LulElf.cpp.orig
++++ seamonkey-2.39/mozilla/tools/profiler/lul/LulElf.cpp
+@@ -47,6 +47,7 @@
+
+ #include <errno.h>
+ #include <fcntl.h>
++#include <libgen.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <sys/mman.h>
+--- seamonkey-2.39/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc.orig
++++ seamonkey-2.39/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
+@@ -38,6 +38,7 @@
+ #include <elf.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <libgen.h>
+ #include <link.h>
+ #include <stdio.h>
+ #include <stdlib.h>
diff --git a/unmaintained/seamonkey/fix-linux-syscall.patch b/unmaintained/seamonkey/fix-linux-syscall.patch
new file mode 100644
index 0000000000..2a0f2c674a
--- /dev/null
+++ b/unmaintained/seamonkey/fix-linux-syscall.patch
@@ -0,0 +1,16 @@
+--- seamonkey-2.46/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h.orig
++++ seamonkey-2.46/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h
+@@ -1506,6 +1506,13 @@
+ /* End of powerpc defininitions */
+ #endif
+
++#ifndef __NR_pread
++#define __NR_pread __NR_pread64
++#endif
++#ifndef __NR_pwrite
++#define __NR_pwrite __NR_pwrite64
++#endif
++
+
+ /* After forking, we must make sure to only call system calls. */
+ #if defined(__BOUNDED_POINTERS__)
diff --git a/unmaintained/seamonkey/fix-mallinfo.patch b/unmaintained/seamonkey/fix-mallinfo.patch
new file mode 100644
index 0000000000..4f6d91f648
--- /dev/null
+++ b/unmaintained/seamonkey/fix-mallinfo.patch
@@ -0,0 +1,18 @@
+--- seamonkey-2.40/mozilla/xpcom/base/nsMemoryReporterManager.cpp.orig
++++ seamonkey-2.40/mozilla/xpcom/base/nsMemoryReporterManager.cpp
+@@ -176,6 +176,7 @@
+ };
+ NS_IMPL_ISUPPORTS(ResidentUniqueReporter, nsIMemoryReporter)
+
++#ifdef __GLIBC__
+ #define HAVE_SYSTEM_HEAP_REPORTER 1
+ nsresult
+ SystemHeapSize(int64_t* aSizeOut)
+@@ -195,6 +196,7 @@
+ *aSizeOut = size_t(info.hblkhd) + size_t(info.uordblks);
+ return NS_OK;
+ }
++#endif
+
+ #elif defined(__DragonFly__) || defined(__FreeBSD__) \
+ || defined(__NetBSD__) || defined(__OpenBSD__) \
diff --git a/unmaintained/seamonkey/fix-platform-linux.patch b/unmaintained/seamonkey/fix-platform-linux.patch
new file mode 100644
index 0000000000..f9e3192906
--- /dev/null
+++ b/unmaintained/seamonkey/fix-platform-linux.patch
@@ -0,0 +1,13 @@
+--- seamonkey-2.39/mozilla/tools/profiler/core/platform-linux.cc.orig
++++ seamonkey-2.39/mozilla/tools/profiler/core/platform-linux.cc
+@@ -98,6 +98,10 @@
+
+ #define SIGNAL_SAVE_PROFILE SIGUSR2
+
++#ifndef gettid
++#define gettid() syscall(SYS_gettid)
++#endif
++
+ using namespace mozilla;
+
+ #if defined(USE_LUL_STACKWALK)
diff --git a/unmaintained/seamonkey/fix-siginfo_t.patch b/unmaintained/seamonkey/fix-siginfo_t.patch
new file mode 100644
index 0000000000..f0175b41dd
--- /dev/null
+++ b/unmaintained/seamonkey/fix-siginfo_t.patch
@@ -0,0 +1,11 @@
+--- seamonkey-2.39/mozilla/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc.orig
++++ seamonkey-2.39/mozilla/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc
+@@ -155,7 +155,7 @@
+ // most versions of glibc don't include this information in siginfo_t. So,
+ // we need to explicitly copy it into a arch_sigsys structure.
+ struct arch_sigsys sigsys;
+- memcpy(&sigsys, &info->_sifields, sizeof(sigsys));
++ memcpy(&sigsys, &info->__si_fields, sizeof(sigsys));
+
+ #if defined(__mips__)
+ // When indirect syscall (syscall(__NR_foo, ...)) is made on Mips, the
diff --git a/unmaintained/seamonkey/fix-stabs.patch b/unmaintained/seamonkey/fix-stabs.patch
new file mode 100644
index 0000000000..f0b1ae6787
--- /dev/null
+++ b/unmaintained/seamonkey/fix-stabs.patch
@@ -0,0 +1,19 @@
+--- seamonkey-2.39/mozilla/toolkit/crashreporter/google-breakpad/src/common/stabs_reader.cc.orig
++++ seamonkey-2.39/mozilla/toolkit/crashreporter/google-breakpad/src/common/stabs_reader.cc
+@@ -34,7 +34,15 @@
+ #include "common/stabs_reader.h"
+
+ #include <assert.h>
+-#include <stab.h>
++//#include <stab.h>
++//#define N_UNDF 0x0
++#define N_FUN 0x24
++#define N_SLINE 0x44
++#define N_SO 0x64
++#define N_LSYM 0x80
++#define N_BINCL 0x82
++#define N_SOL 0x84
++
+ #include <string.h>
+
+ #include <string>
diff --git a/unmaintained/seamonkey/fix-sysctl.patch b/unmaintained/seamonkey/fix-sysctl.patch
new file mode 100644
index 0000000000..d450950908
--- /dev/null
+++ b/unmaintained/seamonkey/fix-sysctl.patch
@@ -0,0 +1,11 @@
+--- seamonkey-2.39/mozilla/media/libav/libavutil/cpu.c.orig
++++ seamonkey-2.39/mozilla/media/libav/libavutil/cpu.c
+@@ -36,7 +36,7 @@
+ #include <sys/param.h>
+ #endif
+ #include <sys/types.h>
+-#include <sys/sysctl.h>
++#include <linux/sysctl.h>
+ #endif
+ #if HAVE_SYSCONF
+ #include <unistd.h>
diff --git a/unmaintained/seamonkey/fix-system-headers.patch b/unmaintained/seamonkey/fix-system-headers.patch
new file mode 100644
index 0000000000..d0ce6d273f
--- /dev/null
+++ b/unmaintained/seamonkey/fix-system-headers.patch
@@ -0,0 +1,28 @@
+--- seamonkey-2.39/mozilla/config/system-headers.orig
++++ seamonkey-2.39/mozilla/config/system-headers
+@@ -172,7 +172,7 @@
+ android_audio/AudioSystem.h
+ #endif
+ ansi_parms.h
+-a.out.h
++linux/a.out.h
+ app/Cursor.h
+ Appearance.h
+ AppFileInfo.h
+@@ -419,7 +419,6 @@
+ extras.h
+ fabdef.h
+ fcntl.h
+-features.h
+ fibdef.h
+ File.h
+ filehdr.h
+@@ -1062,7 +1061,7 @@
+ sys/stat.h
+ sys/statvfs.h
+ sys/syscall.h
+-sys/sysctl.h
++linux/sysctl.h
+ sys/sysinfo.h
+ sys/sysmp.h
+ sys/syssgi.h
diff --git a/unmaintained/seamonkey/mozconfig b/unmaintained/seamonkey/mozconfig
new file mode 100644
index 0000000000..c587527705
--- /dev/null
+++ b/unmaintained/seamonkey/mozconfig
@@ -0,0 +1,57 @@
+ac_add_options --enable-application=suite
+
+ac_add_options --prefix=/usr
+ac_add_options --libdir=/usr/lib
+
+# System libraries
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+ac_add_options --with-system-bz2
+ac_add_options --with-system-png
+ac_add_options --with-system-libevent
+ac_add_options --with-system-libvpx
+ac_add_options --with-system-icu
+
+ac_add_options --enable-system-hunspell
+ac_add_options --enable-system-sqlite
+ac_add_options --enable-system-ffi
+ac_add_options --enable-system-cairo
+ac_add_options --with-pthreads
+ac_add_options --enable-system-pixman
+
+# Features
+ac_add_options --enable-default-toolkit=cairo-gtk3
+#ac_add_options --enable-startup-notification
+ac_add_options --enable-safe-browsing
+ac_add_options --enable-gio
+#ac_add_options --disable-gstreamer
+#ac_add_options --enable-optimize
+ac_add_options --enable-optimize="$CFLAGS"
+ac_add_options --enable-pie
+ac_add_options --enable-strip
+ac_add_options --enable-install-strip
+ac_add_options --enable-official-branding
+ac_add_options --enable-safe-browsing
+ac_add_options --enable-url-classifier
+
+ac_add_options --disable-pulseaudio
+ac_add_options --disable-gconf
+ac_add_options --disable-elf-hack
+ac_add_options --disable-crashreporter
+ac_add_options --disable-updater
+ac_add_options --disable-tests
+ac_add_options --disable-necko-wifi
+ac_add_options --disable-icf
+ac_add_options --disable-dbus
+ac_add_options --disable-gnomeui
+ac_add_options --disable-jemalloc
+ac_add_options --disable-debug
+ac_add_options --disable-debug-symbols
+ac_add_options --enable-release
+ac_add_options --disable-gold
+
+export MOZILLA_OFFICIAL=1
+export BUILD_OFFICIAL=1
+export USE_SHORT_LIBNAME=1
diff --git a/unmaintained/tg/APKBUILD b/unmaintained/tg/APKBUILD
new file mode 100644
index 0000000000..21857fa6f5
--- /dev/null
+++ b/unmaintained/tg/APKBUILD
@@ -0,0 +1,70 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=tg
+pkgver=1.3.1
+pkgrel=13
+_tglver=2.0.1
+_tlparserver=0_git20151118
+pkgdesc="Command line Telegram client"
+url="https://github.com/vysheng/tg"
+arch="all !s390x !mips !mips64"
+license="GPL-3.0"
+depends_dev="readline-dev openssl-dev libconfig-dev libevent-dev jansson-dev lua5.3-dev"
+makedepends="$depends_dev zlib-dev grep"
+provides="telegram-cli"
+source="$pkgname-$pkgver.tar.gz::https://github.com/vysheng/tg/archive/$pkgver.tar.gz
+ tgl-$_tglver.tar.gz::https://github.com/vysheng/tgl/archive/$_tglver.tar.gz
+ https://dev.alpinelinux.org/archive/tl-parser/tl-parser-$_tlparserver.tar.gz
+
+ makefile-tl-parser-nocrc32.patch
+ musl-include-fix.patch
+ makefile-remove-werror.patch
+ openssl-1.1.patch
+ "
+# tgl-openssl-1.1.patch::https://github.com/vysheng/tgl/pull/126/commits/66758bbea27515c5f35e3fafc64d3a3601a5b777.patch
+pkgusers="telegram"
+pkggroups="telegram"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ mv "$srcdir"/tg-$_tlparserver/* "$srcdir/tgl-$_tglver/tl-parser"
+ mv "$srcdir"/tgl-$_tglver/* "$srcdir/tg-$pkgver/tgl"
+
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+
+ export LUA=/usr/bin/lua5.3
+ export LUA_INCLUDE=-I/usr/include/lua5.3
+ export LUA_LIB=$(pkg-config --libs lua5.3)
+ CFLAGS="$CFLAGS -fcommon" \
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-libconfig \
+ --enable-liblua
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ install -D bin/telegram-cli \
+ "$pkgdir"/usr/bin/telegram-cli
+ install -D tg-server.pub \
+ "$pkgdir"/etc/telegram-cli/tg.pub
+}
+
+sha512sums="ac8341e8f951922fa78a1db74d9b1a87b03c3339307bd9c46da71656d8d6e55bf0b546abba1638ae01843341a4d2134b6ab244e15547e8806d74b21ac1306114 tg-1.3.1.tar.gz
+5d16a0e9c6e63ce91238501520e7699164298d9e6e275d8b90da675cca6d0b09944888d95320482e8e232d1bd540dbe80cfe58ac7d70f3157a4372c7fd550366 tgl-2.0.1.tar.gz
+a7f16bd2cdedf62a1dbd180fcf957850d3b1c1c08b99f4f389ef5a83e228eb773e5da84e3127455880f4ebb526787bdae097200b337ae6df74b50bebec7c92fe tl-parser-0_git20151118.tar.gz
+b61e5907c6cf035ce067cfbc19995a04afa1f04cef00be52a02943e850d4a2754dba67732fa6ca958f2e48a741b2048fb38652c17b73e46359c550257e563f42 makefile-tl-parser-nocrc32.patch
+4e26e7421db48b7074197e4cea1c6a6fce33a2b259f0da0e378f9a83f115e961016586b63d960d491cb5c4866fffbf454a5e0eda47ad16b3b77d117c8508f1f2 musl-include-fix.patch
+1f8fab90948079abc94169751851347a6753dc13cf19973ba05a6f533ac173ba6ce70863988f2b167c27a347f4aeaa710c70cc960c0ba4090c43461386f8b217 makefile-remove-werror.patch
+46ada5490a7db962aa70b73fe867f737a852fa5fcad331d9221afaae93e0bb2f0129568bb9c9eb337fad3ead8935b5eb5262e87d156411f12860aa1e740d5b39 openssl-1.1.patch"
diff --git a/unmaintained/tg/makefile-remove-werror.patch b/unmaintained/tg/makefile-remove-werror.patch
new file mode 100644
index 0000000000..19359d567d
--- /dev/null
+++ b/unmaintained/tg/makefile-remove-werror.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -4,7 +4,7 @@
+ LDFLAGS=@LDFLAGS@ @OPENSSL_LDFLAGS@
+ CPPFLAGS=@CPPFLAGS@ @OPENSSL_INCLUDES@
+ DEFS=@DEFS@
+-COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC
++COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC
+
+ EXTRA_LIBS=@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@
+ LOCAL_LDFLAGS=-rdynamic -ggdb -levent ${EXTRA_LIBS}
diff --git a/unmaintained/tg/makefile-tl-parser-nocrc32.patch b/unmaintained/tg/makefile-tl-parser-nocrc32.patch
new file mode 100644
index 0000000000..7e16ef61de
--- /dev/null
+++ b/unmaintained/tg/makefile-tl-parser-nocrc32.patch
@@ -0,0 +1,16 @@
+--- a/tgl/Makefile.tl-parser
++++ b/tgl/Makefile.tl-parser
+@@ -1,4 +1,4 @@
+-TL_PARSER_OBJECTS=${OBJ}/tl-parser.o ${OBJ}/tlc.o ${OBJ}/crc32.o
++TL_PARSER_OBJECTS=${OBJ}/tl-parser.o ${OBJ}/tlc.o
+
+ ${TL_PARSER_OBJECTS}: ${OBJ}/%.o: ${srcdir}/tl-parser/%.c | create_dirs
+ ${CC} ${INCLUDE} ${COMPILE_FLAGS} -iquote ${srcdir}/tl-parser -c -MP -MD -MF ${DEP}/$*.d -MQ ${OBJ}/$*.o -o $@ $<
+--- a/Makefile.tl-parser
++++ b/Makefile.tl-parser
+@@ -1,4 +1,4 @@
+-TL_PARSER_OBJECTS=${OBJ}/tl-parser.o ${OBJ}/tlc.o ${OBJ}/crc32.o
++TL_PARSER_OBJECTS=${OBJ}/tl-parser.o ${OBJ}/tlc.o
+
+ ${TL_PARSER_OBJECTS}: ${OBJ}/%.o: ${srcdir}/tgl/tl-parser/%.c | create_dirs
+ ${CC} ${INCLUDE} ${COMPILE_FLAGS} -iquote ${srcdir}/tgl/tl-parser -c -MP -MD -MF ${DEP}/$*.d -MQ ${OBJ}/$*.o -o $@ $<
diff --git a/unmaintained/tg/musl-include-fix.patch b/unmaintained/tg/musl-include-fix.patch
new file mode 100644
index 0000000000..a6cb63f2c7
--- /dev/null
+++ b/unmaintained/tg/musl-include-fix.patch
@@ -0,0 +1,14 @@
+--- a/tgl/generate.c
++++ b/tgl/generate.c
+@@ -25,7 +25,11 @@
+
+ #include <stdio.h>
+ #include <signal.h>
++
++#ifdef HAVE_EXECINFO_H
+ #include <execinfo.h>
++#endif
++
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
diff --git a/unmaintained/tg/openssl-1.1.patch b/unmaintained/tg/openssl-1.1.patch
new file mode 100644
index 0000000000..fd79156308
--- /dev/null
+++ b/unmaintained/tg/openssl-1.1.patch
@@ -0,0 +1,102 @@
+diff --git a/tgl/mtproto-client.c b/tgl/mtproto-client.c
+index 075decc..0f6c3f2 100644
+--- a/tgl/mtproto-client.c
++++ b/tgl/mtproto-client.c
+@@ -143,7 +143,9 @@ static int decrypt_buffer[ENCRYPT_BUFFER_INTS];
+
+ static int encrypt_packet_buffer (struct tgl_state *TLS, struct tgl_dc *DC) {
+ RSA *key = TLS->rsa_key_loaded[DC->rsa_key_idx];
+- return tgl_pad_rsa_encrypt (TLS, (char *) packet_buffer, (packet_ptr - packet_buffer) * 4, (char *) encrypt_buffer, ENCRYPT_BUFFER_INTS * 4, key->n, key->e);
++ const BIGNUM *n, *e;
++ RSA_get0_key(key, &n, &e, NULL);
++ return tgl_pad_rsa_encrypt (TLS, (char *) packet_buffer, (packet_ptr - packet_buffer) * 4, (char *) encrypt_buffer, ENCRYPT_BUFFER_INTS * 4, n, e);
+ }
+
+ static int encrypt_packet_buffer_aes_unauth (const char server_nonce[16], const char hidden_client_nonce[32]) {
+diff --git a/tgl/mtproto-common.c b/tgl/mtproto-common.c
+index f3b6582..b782256 100644
+--- a/tgl/mtproto-common.c
++++ b/tgl/mtproto-common.c
+@@ -178,10 +178,12 @@ int tgl_serialize_bignum (BIGNUM *b, char *buffer, int maxlen) {
+ long long tgl_do_compute_rsa_key_fingerprint (RSA *key) {
+ static char tempbuff[4096];
+ static unsigned char sha[20];
+- assert (key->n && key->e);
+- int l1 = tgl_serialize_bignum (key->n, tempbuff, 4096);
++ const BIGNUM *n, *e;
++ RSA_get0_key(key, &n, &e, NULL);
++ assert (n && e);
++ int l1 = tgl_serialize_bignum (n, tempbuff, 4096);
+ assert (l1 > 0);
+- int l2 = tgl_serialize_bignum (key->e, tempbuff + l1, 4096 - l1);
++ int l2 = tgl_serialize_bignum (e, tempbuff + l1, 4096 - l1);
+ assert (l2 > 0 && l1 + l2 <= 4096);
+ SHA1 ((unsigned char *)tempbuff, l1 + l2, sha);
+ return *(long long *)(sha + 12);
+@@ -258,21 +260,20 @@ int tgl_pad_rsa_encrypt (struct tgl_state *TLS, char *from, int from_len, char *
+ assert (size >= chunks * 256);
+ assert (RAND_pseudo_bytes ((unsigned char *) from + from_len, pad) >= 0);
+ int i;
+- BIGNUM x, y;
+- BN_init (&x);
+- BN_init (&y);
++ BIGNUM *x = BN_new();
++ BIGNUM *y = BN_new();
+ rsa_encrypted_chunks += chunks;
+ for (i = 0; i < chunks; i++) {
+- BN_bin2bn ((unsigned char *) from, 255, &x);
+- assert (BN_mod_exp (&y, &x, E, N, TLS->BN_ctx) == 1);
+- unsigned l = 256 - BN_num_bytes (&y);
++ BN_bin2bn ((unsigned char *) from, 255, x);
++ assert (BN_mod_exp (y, x, E, N, TLS->BN_ctx) == 1);
++ unsigned l = 256 - BN_num_bytes (y);
+ assert (l <= 256);
+ memset (to, 0, l);
+- BN_bn2bin (&y, (unsigned char *) to + l);
++ BN_bn2bin (y, (unsigned char *) to + l);
+ to += 256;
+ }
+- BN_free (&x);
+- BN_free (&y);
++ BN_free (x);
++ BN_free (y);
+ return chunks * 256;
+ }
+
+@@ -285,26 +286,25 @@ int tgl_pad_rsa_decrypt (struct tgl_state *TLS, char *from, int from_len, char *
+ assert (bits >= 2041 && bits <= 2048);
+ assert (size >= chunks * 255);
+ int i;
+- BIGNUM x, y;
+- BN_init (&x);
+- BN_init (&y);
++ BIGNUM *x = BN_new();
++ BIGNUM *y = BN_new();
+ for (i = 0; i < chunks; i++) {
+ ++rsa_decrypted_chunks;
+- BN_bin2bn ((unsigned char *) from, 256, &x);
+- assert (BN_mod_exp (&y, &x, D, N, TLS->BN_ctx) == 1);
+- int l = BN_num_bytes (&y);
++ BN_bin2bn ((unsigned char *) from, 256, x);
++ assert (BN_mod_exp (y, x, D, N, TLS->BN_ctx) == 1);
++ int l = BN_num_bytes (y);
+ if (l > 255) {
+- BN_free (&x);
+- BN_free (&y);
++ BN_free (x);
++ BN_free (y);
+ return -1;
+ }
+ assert (l >= 0 && l <= 255);
+ memset (to, 0, 255 - l);
+- BN_bn2bin (&y, (unsigned char *) to + 255 - l);
++ BN_bn2bin (y, (unsigned char *) to + 255 - l);
+ to += 255;
+ }
+- BN_free (&x);
+- BN_free (&y);
++ BN_free (x);
++ BN_free (y);
+ return chunks * 255;
+ }
+
diff --git a/unmaintained/wkhtmltopdf/APKBUILD b/unmaintained/wkhtmltopdf/APKBUILD
new file mode 100644
index 0000000000..574edb1568
--- /dev/null
+++ b/unmaintained/wkhtmltopdf/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=wkhtmltopdf
+pkgver=0.12.6
+pkgrel=0
+pkgdesc="Simple shell utility to convert html to pdf"
+url="https://wkhtmltopdf.org/"
+# armhf, mips64 and riscv64 blocked by qt5-qtwebkit
+arch="all !armhf !mips64 !riscv64"
+license="LGPL-3.0-or-later"
+makedepends="qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtsvg-dev
+ qt5-qtxmlpatterns-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/wkhtmltopdf/wkhtmltopdf/archive/$pkgver.tar.gz"
+options="!check" # no test suite
+
+build() {
+ qmake-qt5 -makefile && make
+}
+
+package() {
+ make install INSTALL_ROOT="$pkgdir"/usr
+}
+
+sha512sums="616f51a9094ae91339ca9b6228ee15a67e4092117d087124e2966d3aa53d1caa27f729a40df4e1f2c95149bea86c9b6f184ce9930f9025728d2cdfe6c94a2fbb wkhtmltopdf-0.12.6.tar.gz"