Compare commits

...

4 Commits

Author SHA1 Message Date
Mike Wilson
9aa85bb01a Add several packages for slidcord 2025-10-21 20:54:02 -04:00
a41bdc263e Make fixes to biboumi PKGBUILD 2025-10-21 11:52:43 -04:00
Mike Wilson
8dcbc5104e Add biboumi-git 2025-10-21 11:35:39 -04:00
Mike Wilson
8d1d7a3ab8 Don't ignore all files 2025-10-21 11:35:28 -04:00
7 changed files with 167 additions and 8 deletions

8
.gitignore vendored
View File

@@ -13,11 +13,3 @@ build_single_nofail.sh
ppa.cfg ppa.cfg
src/doom-wads/*.WAD src/doom-wads/*.WAD
# ignore all
*
# except new PKGBUILDS
!.gitignore
!src/*/PKGBUILD

54
src/biboumi-git/PKGBUILD Normal file
View File

@@ -0,0 +1,54 @@
_pkgname=biboumi
pkgname="$_pkgname-git"
pkgver=9.0.r58.gd1d35f2
pkgrel=1
pkgdesc="XMPP gateway to IRC"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://biboumi.codeberg.page/"
license=('ZLIB')
depends=('expat' 'libidn' 'udns' 'sqlite')
makedepends=('git' 'cmake')
backup=("etc/$_pkgname/$_pkgname.cfg")
install="$_pkgname.install"
source=("$_pkgname::git+https://codeberg.org/poezio/biboumi"
'biboumi.install'
'sysuser.conf')
sha256sums=('SKIP'
'7a50498d059e72b68a93057c51dc0766d9e39229f85da68721c78857ad8ce329'
'45aed4eff7e06cc7bf54268e32de1630e0474131c817a47ddd4ef4134cf71dd1')
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local cmake_options=(
-B build
-S $_pkgname
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX=/usr
-DSERVICE_USER=biboumi
-DSERVICE_GROUP=jabber
-DWITH_BOTAN=1
-DWITH_LIBIDN=1
-DWITH_SQLITE3=1
-DWITH_UDNS=1
-Wno-dev
)
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
cd $_pkgname
install -dm755 "$pkgdir"/usr/share/doc/$_pkgname/
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
install -Dm644 doc/*.rst "$pkgdir"/usr/share/doc/$_pkgname/
install -Dm644 conf/biboumi.cfg "$pkgdir"/etc/$_pkgname/$_pkgname.cfg
cd ..
install -Dm644 sysuser.conf "$pkgdir"/usr/lib/sysusers.d/$_pkgname.conf
DESTDIR="$pkgdir/" cmake --install build
}

View File

@@ -0,0 +1,13 @@
post_install() {
systemd-sysusers biboumi.conf
install -dm750 -o biboumi -g jabber var/lib/biboumi
install -dm750 -o biboumi -g jabber var/log/biboumi
}
post_upgrade() {
post_install $1
}
post_remove() {
systemd-sysusers biboumi.conf
}

View File

@@ -0,0 +1,3 @@
g jabber 17 - -
u biboumi - "Biboumi, XMPP gateway to IRC" /var/lib/biboumi
m biboumi jabber

View File

@@ -0,0 +1,29 @@
# WARNING: DRAFT ONLY - No idea if it actually builds yet
_pkgname=slidge
pkgname="python-$_pkgname-git"
pkgver=0.1.0.r9.gc45818f
pkgrel=1
pkgdesc='XMPP puppeteer gateway library in python'
arch=('x86_64' 'armv7h' 'aarch64')
url="https://slidge.im/"
license=('AGPL3')
depends=('python>=3.11' 'python-slixmpp>=1.12.0' 'python-slixmpp<1.13.0' 'python-aiohttp>=3.11.11' 'python-aiohttp<4' 'python-qrcode>=8.0' 'python-qrcode<9.0' 'python-magic>=0.4.27' 'python-magic<0.5' 'python-configargparse>=1.7' 'python-configargparse<2' 'python-pillow>=11.0.0' 'python-pillow<12' 'python-alembic>=1.14.0' 'python-alembic<2' 'python-sqlalchemy>=2' 'python-sqlalchemy<3' 'python-defusedxml>=0.7.1' 'python-blurhash')
# TODO: package python-thumbhash as python-blurhash replacement
makedepends=('git' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools')
source=('git+https://codeberg.org/slidge/slidge')
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_pkgname
python -m build --wheel --no-isolation
}
package() {
cd slidge
python -m installer --destdir="$pkgdir" dist/*.whl
}

View File

@@ -0,0 +1,28 @@
_pkgname=thumbhash
pkgname="python-$_pkgname"
pkgver=0.1.2
pkgrel=1
pkgdesc='Python port of thumbhash, a very compact representation of an image placeholder'
arch=('x86_64' 'aarch64')
url="https://github.com/justinforlenza/thumbhash-py"
license=('MIT')
depends=('python-pillow')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-hatchling'
)
checkdepends=('python-pytest')
source=("https://github.com/justinforlenza/thumbhash-py/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('ef4e6398f93f3b5ad480dc8e3a3b3a200813c86a8857fb069f8478be809f8247')
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}

40
src/slidcord-git/PKGBUILD Normal file
View File

@@ -0,0 +1,40 @@
_pkgname=slidcord
pkgname="$_pkgname-git"
pkgver=r270.f2db4b7
pkgrel=1
pkgdesc='A feature-rich Discord to XMPP gateway'
arch=('x86_64' 'armv7h' 'aarch64')
url="https://slidge.im/docs/slidcord/main/"
license=('AGPL3')
depends=('python' 'python-slidge-git' 'python-emoji')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=('git+https://codeberg.org/slidge/slidcord')
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd $_pkgname
python -m build --wheel --no-isolation
}
package() {
cd $_pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
}
check(){
cd $_pkgname
# Builtin unittest
python -m unittest discover -v
# For nosetests
nosetests
# For pytest
pytest
}