Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: matrix-mirage #22834

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions srcpkgs/matrix-mirage/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'matrix-mirage'
pkgname=matrix-mirage
version=0.6.0
revision=1
wrksrc="mirage-${version}"
build_style=qmake
hostmakedepends="python3-setuptools qt5-qmake qt5-quickcontrols2-devel qt5-declarative-devel"
makedepends="qt5-quickcontrols2-devel qt5-declarative-devel libXScrnSaver-devel"
depends="python3 python3-Pillow python3-aiofiles python3-appdirs python3-blist python3-filetype
python3-html-sanitizer python3-lxml python3-matrix-nio python3-mistune python3-pymediainfo
python3-pyotherside python3-peewee python3-CairoSVG qt5-graphicaleffects"
short_desc="Qt/QML+Python Matrix client for encrypted and decentralized chat"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="GPL-3.0-or-later"
homepage="https://github.com/mirukana/mirage"
_hsluv_commit=9e9be32d6010cad484a7b12b1a3d19c6cf4c1353
distfiles="https://github.com/mirukana/mirage/archive/v${version}.tar.gz
https://github.com/hsluv/hsluv-c/archive/${_hsluv_commit}.tar.gz"
checksum="8dee7a54b58ee244203b2e2c4a52596459f52afcd5f596af4cc614d9a8d1402f
73bbdcec587339d6b385ab2da4d43d486db578b2521a9b527d2ac9110f5000c1"

post_extract() {
mv "${XBPS_BUILDDIR}/hsluv-c-${_hsluv_commit}/"* submodules/hsluv-c/
# binary name conflicts with mirage the image viewer
sed -i 's/TARGET[[:space:]]*=[[:space:]]*mirage/TARGET = matrix-mirage/g' mirage.pro
sed -i 's/Exec=mirage/Exec=matrix-mirage/g' extra/linux/mirage.desktop
}
15 changes: 15 additions & 0 deletions srcpkgs/python3-CairoSVG/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Template file for 'python3-CairoSVG'
pkgname=python3-CairoSVG
version=2.4.2
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-cairocffi python3-cssselect2 python3-defusedxml python3-Pillow python3-tinycss2"
short_desc="Simple SVG Converter based on Cairo"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="LGPL-3.0-or-later"
homepage="https://cairosvg.org/"
distfiles="${PYPI_SITE}/C/CairoSVG/CairoSVG-${version}.tar.gz"
checksum=4e668f96653326780036ebb0a9ff2bb59a8443d7bcfc51a14aab77b57a8e67ad
20 changes: 20 additions & 0 deletions srcpkgs/python3-blist/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Template file for 'python3-blist'
pkgname=python3-blist
version=1.3.6
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools"
makedepends="python3-devel"
depends="python3"
short_desc="Replacement for the Python list with better performance"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="BSD-3-Clause"
homepage="https://pypi.org/project/blist/"
distfiles="https://github.com/DanielStutzbach/blist/archive/v${version}.tar.gz"
checksum=99f09df7a711fd1ed3fbcd80babf3e76e3c25c8a488a6dcdc543d61ebfde2bae
# NOTE: the pypi tarball has broken permission, do not use it

post_install() {
vlicense LICENSE
}
19 changes: 19 additions & 0 deletions srcpkgs/python3-cssselect2/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-cssselect2'
pkgname=python3-cssselect2
version=0.3.0
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python"
short_desc="CSS selectors for Python2 ElementTree"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="BSD-3-Clause"
homepage="https://cssselect2.readthedocs.io/"
distfiles="${PYPI_SITE}/c/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=5c2716f06b5de93f701d5755a9666f2ee22cbcd8b4da8adddfc30095ffea3abc

post_install() {
vlicense LICENSE
}
19 changes: 19 additions & 0 deletions srcpkgs/python3-html-sanitizer/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-html-sanitizer'
pkgname=python3-html-sanitizer
version=1.9.1
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Allowlist-based HTML cleaner"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="BSD-3-Clause"
homepage="https://github.com/matthiask/html-sanitizer/"
distfiles="${PYPI_SITE}/h/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=13c0aebe3ceff55540e37ee8717181ce314a8bedb92e1cb322be6455016a69d5

post_install() {
vlicense LICENSE
}
19 changes: 19 additions & 0 deletions srcpkgs/python3-pymediainfo/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-pymediainfo'
pkgname=python3-pymediainfo
version=4.2.1
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3 libmediainfo"
short_desc="Python wrapper for the mediainfo library"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="MIT"
homepage="https://pymediainfo.readthedocs.io/"
distfiles="${PYPI_SITE}/p/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=392d99d6bf74046ebaa2f7036d92d5327611d27532a384540e9310a62b8be26d

post_install() {
vlicense LICENSE
}
23 changes: 23 additions & 0 deletions srcpkgs/python3-pyotherside/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Template file for 'python3-pyotherside'
pkgname=python3-pyotherside
version=1.5.9
revision=1
wrksrc="pyotherside-${version}"
build_style=qmake
hostmakedepends="pkg-config python3-devel
qt5-qmake qt5-quickcontrols2-devel qt5-declarative-devel qt5-svg-devel"
makedepends="${hostmakedepends/pkg-config/}"
short_desc="Asynchronous Python 3 Bindings for Qt 5"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="ISC"
homepage="https://thp.io/2011/pyotherside/"
distfiles="https://github.com/thp/pyotherside/archive/${version}.tar.gz"
checksum=189cb0b973e40fcb6b95fd51b0bcd6cc8494b514d49ffe966ec488cf05bbf51e

if [ "$CROSS_BUILD" ]; then
configure_args="PYTHON_CONFIG=\"${XBPS_CROSS_BASE}/bin/python3-config\""
fi

post_install() {
vlicense LICENSE
}
20 changes: 20 additions & 0 deletions srcpkgs/python3-tinycss2/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Template file for 'python3-tinycss2'
pkgname=python3-tinycss2
version=1.0.2
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
depends="python3-webencodings"
short_desc="Complete yet simple CSS parser for Python"
maintainer="mobinmob <mobinmob@disroot.org>"
license="BSD-3-Clause"
homepage="https://tinycss2.readthedocs.io/en/latest/"
distfiles="${PYPI_SITE}/t/tinycss2/tinycss2-${version}.tar.gz"
checksum=6427d0e3faa0a5e0e8c9f6437e2de26148a7a197a8b0992789f23d9a802788cf

post_install() {
vlicense LICENSE
}