Add several packages for slidcord
This commit is contained in:
29
src/python-slidge-git/PKGBUILD
Normal file
29
src/python-slidge-git/PKGBUILD
Normal 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
|
||||||
|
}
|
||||||
28
src/python-thumbhash/PKGBUILD
Normal file
28
src/python-thumbhash/PKGBUILD
Normal 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
40
src/slidcord-git/PKGBUILD
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user