new package nody-greeter
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pisi.actionsapi import shelltools, get, pisitools
|
||||
|
||||
def setup():
|
||||
shelltools.system("git clone --recursive https://github.com/JezerM/nody-greeter.git temp_dir")
|
||||
shelltools.system("cp -rf temp_dir/* .")
|
||||
shelltools.system("cp -rf temp_dir/.* . 2>/dev/null || true")
|
||||
shelltools.system("rm -rf temp_dir")
|
||||
|
||||
if shelltools.can_access_file("../../package.patch"):
|
||||
shelltools.system("patch -p1 < ../../package.patch")
|
||||
|
||||
shelltools.system("npm install node-gtk@latest nan@latest --legacy-peer-deps")
|
||||
shelltools.system("npm install --legacy-peer-deps")
|
||||
|
||||
def build():
|
||||
shelltools.system("sed -i 's/assert { type: \"json\" }/with { type: \"json\" }/g' build.js")
|
||||
shelltools.system("sed -i 's/assert { type: \"json\" }/with { type: \"json\" }/g' compile.js")
|
||||
shelltools.system("sed -i 's/npm ci --omit=dev --ignore-scripts/npm install --omit=dev --ignore-scripts --legacy-peer-deps/g' build.js")
|
||||
shelltools.system("sed -i 's/.*removeSync.*/\/\/ removeSync engellendi/g' build.js")
|
||||
shelltools.system("sed -i 's/.*rmSync.*/\/\/ rmSync engellendi/g' build.js")
|
||||
shelltools.system("rm -rf build/unpacked")
|
||||
shelltools.system("npm run rebuild")
|
||||
|
||||
if not shelltools.can_access_directory("themes/themes"):
|
||||
shelltools.system("mkdir -p themes/themes && cp -r themes/* themes/themes/ 2>/dev/null || true")
|
||||
|
||||
shelltools.system("npm run build")
|
||||
|
||||
def install():
|
||||
shelltools.system("node make --DEST_DIR=" + get.installDIR() + " install")
|
||||
shelltools.system("rm -rf " + get.installDIR()+"/usr/bin/nody-greeter")
|
||||
pisitools.dosym("/opt/nody-greeter/nody-greeter", "/usr/bin/nody-greeter")
|
||||
if shelltools.can_access_file("nody-greeter.desktop"):
|
||||
shelltools.system("cp nody-greeter.desktop " + get.installDIR() + "/usr/share/xgreeters/")
|
||||
|
||||
pisitools.dodir("/usr/share/xgreeters")
|
||||
|
||||
pisitools.dodoc("README.md", "LICENSE")
|
||||
@@ -0,0 +1,12 @@
|
||||
--- old/install.js 2024-07-21 11:42:13.920979705 +0900
|
||||
+++ new/install.js 2024-07-21 11:42:36.466023502 +0900
|
||||
@@ -43,9 +43,5 @@ DEST_DIR = argv.DEST_DIR;
|
||||
export async function install() {
|
||||
console.log(`Copying nody-greeter to "${DEST_DIR}"...`);
|
||||
await makeCopy(INSTALL_ROOT, DEST_DIR);
|
||||
- fs.createSymlinkSync(
|
||||
- path.join(DEST_DIR, "opt/nody-greeter/nody-greeter"),
|
||||
- path.join(DEST_DIR, PREFIX, "bin/nody-greeter")
|
||||
- );
|
||||
console.log("\x1b[92mSUCCESS!!\x1b[0m");
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>nody-greeter</Name>
|
||||
<Homepage>https://web-greeter-page.vercel.app/</Homepage>
|
||||
<Packager>
|
||||
<Name>Erkan IŞIK</Name>
|
||||
<Email>erkanisik@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3</License>
|
||||
<IsA>app</IsA>
|
||||
<Summary>Web Greeter A Web Based Greeter For LightDM</Summary>
|
||||
<Description>LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js</Description>
|
||||
<Archive sha1sum="e72d33ee8aa70a8782fb750a9ee05bb5f82ad4af" type="targz">https://github.com/JezerM/nody-greeter/archive/refs/tags/1.6.2.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>git</Dependency>
|
||||
<Dependency>nodejs</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>cairo-devel</Dependency>
|
||||
<Dependency>gobject-introspection-devel</Dependency>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency>gtk3-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
<Patches>
|
||||
<Patch>package.patch</Patch>
|
||||
</Patches>
|
||||
<Package>
|
||||
<Name>nody-greeter</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>lightdm</Dependency>
|
||||
<Dependency>cairo</Dependency>
|
||||
<Dependency>gobject-introspection</Dependency>
|
||||
<Dependency>glib2</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="data">/opt</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2026-02-09</Date>
|
||||
<Version>1.6.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Erkan IŞIK</Name>
|
||||
<Email>erkanisik@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>nody-greeter</Name>
|
||||
<Summary xml:lang="tr">Web Greeter A Web Based Greeter For LightDM</Summary>
|
||||
<Description xml:lang="tr">LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user