kaptan pisilinux-welcome

This commit is contained in:
Rmys
2024-05-30 20:10:11 +03:00
parent c9a722369a
commit d3e6ae18fc
8 changed files with 194 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
import glob
def build():
pythonmodules.compile(pyVer="3")
def install():
pythonmodules.install(pyVer="3")
@@ -0,0 +1,22 @@
diff -Nuar a/kaptan/kaptan.py b/kaptan/kaptan.py
--- a/kaptan/kaptan.py 2021-04-03 21:29:51.000000000 +0300
+++ b/kaptan/kaptan.py 2023-10-31 11:29:42.336651225 +0300
@@ -26,14 +26,15 @@
class Kaptan(QtWidgets.QWizard):
def __init__(self):
super().__init__()
+ self.setFixedSize(850, 600)
self.setWindowTitle(self.tr("Kaptan"))
self.setWindowIcon(QIcon.fromTheme("kaptan-icon"))
self.setMinimumSize(850, 600)
self.setMaximumSize(950, 620)
- x = (QtWidgets.QDesktopWidget().size().width() - self.width()) / 2
- y = (QtWidgets.QDesktopWidget().size().height() - self.height()) / 2
- self.move(x, y)
+ # x = (QtWidgets.QDesktopWidget().size().width() - self.width()) / 2
+ # y = (QtWidgets.QDesktopWidget().size().height() - self.height()) / 2
+ # self.move(x, y)
self.setPixmap(QtWidgets.QWizard.LogoPixmap, QPixmap("/usr/share/kaptan/images/kaptan.png"))
self.setButtonText(QtWidgets.QWizard.NextButton, self.tr("Next"))
@@ -0,0 +1,14 @@
diff -Nuar a/kaptan5/kaptan.py b/kaptan5/kaptan.py
--- a/kaptan5/kaptan.py 2017-04-05 12:46:42.000000000 +0300
+++ b/kaptan5/kaptan.py 2018-02-06 01:23:49.000000000 +0300
@@ -36,8 +36,8 @@
self.setWindowIcon(QIcon.fromTheme("kaptan-icon"))
self.setMinimumSize(850, 600)
self.setMaximumSize(950, 620)
- x = (QDesktopWidget().screen().width() - self.width())/2
- y = (QDesktopWidget().screen().height() - self.height())/2
+ x = (QDesktopWidget().screenGeometry().width() - self.width())/2
+ y = (QDesktopWidget().screenGeometry().height() - self.height())/2
self.move(x, y)
self.setPixmap(QWizard.LogoPixmap, QPixmap(":/data/images/kaptan.png"))
+56
View File
@@ -0,0 +1,56 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>kaptan-qt6</Name>
<Homepage>https://pisilinux.org</Homepage>
<Packager>
<Name>Metehan Özbek</Name>
<Email>mthnzbk@gmail.com</Email>
</Packager>
<License>GPLv3</License>
<Icon>kaptan</Icon>
<IsA>app:gui</IsA>
<Summary>Kaptan, Pisi Linux workspace configuration wizard</Summary>
<Description>Kaptan lets you configure your workspace on first login.</Description>
<Archive sha1sum="b8fea7dc3cd339d5e281f6c2a8a4d85c2c9efe30" type="binary">https://github.com/PisiLinuxNew/kaptan-qt6/archive/refs/tags/1.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-pyqt6-sip</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-qt6-devel</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>qt6-linguist</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch>kaptan-QtWidgets.patch</Patch> -->
</Patches>
</Source>
<Package>
<Name>kaptan-qt6</Name>
<RuntimeDependencies>
<Dependency>python3-qt6</Dependency>
<Dependency>python3-pyqt6-sip</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/kaptan</Path>
<Path fileType="data">/usr/lib/python3*/site-packages</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/share/icons</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="localdata">/usr/share/kaptan/languages</Path>
<Path fileType="config">/etc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2024-05-30</Date>
<Version>8.0</Version>
<Comment>first</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>kaptan</Name>
<Summary xml:lang="tr">Pisi Linux Kaptan</Summary>
<Summary xml:lang="es">Pisi Linux Kaptan</Summary>
<Description xml:lang="tr">Kaptan, bilgisayarınız ilk defa açıldığında çalışma ortamınızı kişiselleştirmenize yardımcı olur.</Description>
<Description xml:lang="es">Kaptan, el asistente de inicio de Pisi Linux que le ayudará a personalizar su entorno de trabajo.</Description>
</Source>
</PISI>
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
import glob
def install():
pythonmodules.install(pyVer = "3")
#pisitools.insinto("/usr/share/welcome/data/media-content", "data/media-content/logo.png")
@@ -0,0 +1,54 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>pisilinux-welcome-qt6</Name>
<Homepage>https://pisilinux.org</Homepage>
<Packager>
<Name>Metehan Özbek</Name>
<Email>mthnzbk@gmail.com</Email>
</Packager>
<License>GPLv3</License>
<Icon>pisilinux-welcome</Icon>
<IsA>app:gui</IsA>
<Summary>Pisi Linux Welcome Application</Summary>
<Description>Pisi Linux Welcome Application</Description>
<Archive sha1sum="7952c95879e0fda8832aae80cb7510999f37b3a4" type="targz">https://github.com/PisiLinuxNew/pisilinux-welcome-qt6/archive/refs/tags/1.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-qt6</Dependency>
<Dependency>qt6-linguist</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-pyqt6-sip</Dependency>
<Dependency>python3-setuptools</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>pisilinux-welcome-qt6</Name>
<RuntimeDependencies>
<Dependency>python3-qt6</Dependency>
<Dependency>python3-pyqt6-sip</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="data">/usr/share/icons</Path>
<Path fileType="data">/usr/share/pisilinux-welcome</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/lib/python3*/site-packages</Path>
<Path fileType="localdata">/usr/share/welcome/languages</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2024-05-30</Date>
<Version>2.0</Version>
<Comment>first</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>pisilinux-welcome</Name>
<Summary xml:lang="tr">Pisi Linux Hoşgeldin Uygulaması</Summary>
<Description xml:lang="tr">Hoşgeldin uygulaması, bilgisayarınız ilk defa açıldığında sizi karşılar.</Description>
</Source>
</PISI>