Github messages for voidlinux
 help / color / mirror / Atom feed
From: JezerM <JezerM@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: nody-greeter-1.3.2
Date: Sun, 03 Jul 2022 23:39:40 +0200	[thread overview]
Message-ID: <20220703213940.gC8OrlYnWHsUYFmoa4sL38U1VHWNpNe7mGv7k5nbB4s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34948@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

There is an updated pull request by JezerM against master on the void-packages repository

https://github.com/JezerM/void-packages master
https://github.com/void-linux/void-packages/pull/34948

New package: nody-greeter-1.3.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)

A patch file from https://github.com/void-linux/void-packages/pull/34948.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-34948.patch --]
[-- Type: text/x-diff, Size: 2158 bytes --]

From 417dafa7feea23dc2a5376c8fc94ae2cf00261f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jezer=20Mej=C3=ADa?= <amyuki4@icloud.com>
Date: Sun, 3 Jul 2022 15:38:58 +0000
Subject: [PATCH] New package: nody-greeter-1.4.1

---
 srcpkgs/nody-greeter/template | 57 +++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 srcpkgs/nody-greeter/template

diff --git a/srcpkgs/nody-greeter/template b/srcpkgs/nody-greeter/template
new file mode 100644
index 000000000000..8134ff8780be
--- /dev/null
+++ b/srcpkgs/nody-greeter/template
@@ -0,0 +1,57 @@
+# Template file for 'nody-greeter'
+pkgname=nody-greeter
+version=1.4.1
+revision=1
+conf_files="/etc/lightdm/web-greeter.yml /etc/lightdm/Xgreeter /etc/xdg/lightdm/lightdm.conf.d/90-greeter-wrapper.conf"
+hostmakedepends="base-devel nodejs python3"
+makedepends="base-devel libxcb-devel libX11-devel liblightdm-gobject gobject-introspection cairo"
+depends="lightdm liblightdm-gobject libgirepository"
+short_desc="LightDM greeter made with node.js"
+maintainer="JezerM <amyuki4@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/JezerM/nody-greeter"
+distfiles="https://github.com/JezerM/nody-greeter/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
+checksum="217ee316f286610d75bf221939d1c7d19cea0b51c5e46b4ec5df33a6b8682263"
+mutable_files="/usr/share/web-greeter/*"
+
+get_target_arch() {
+	case ${XBPS_TARGET_MACHINE} in
+		x86_64*)
+			echo "x64"
+			;;
+		i686*)
+			echo "ia32"
+			;;
+		aarch64*)
+			echo "arm64"
+			;;
+		armv*)
+			echo "arm"
+			;;
+		*)
+			echo ${XBPS_TARGET_MACHINE}
+	esac
+}
+
+_target_arch=$(get_target_arch)
+export npm_config_arch=${_target_arch}
+
+pre_build() {
+	echo "Trying to install npm packages as ${npm_config_arch}"
+	npm clean-install
+}
+
+do_build() {
+	echo "Trying to build ${XBPS_TARGET_MACHINE} as ${_target_arch}"
+	npx tsc --build
+	node make build --DEST_DIR="${DESTDIR}" --ARCH="${_target_arch}"
+}
+
+do_install() {
+	node make install --DEST_DIR="${DESTDIR}"
+}
+
+post_install() {
+	rm -f ${DESTDIR}/usr/bin/nody-greeter
+	ln -s /opt/nody-greeter/nody-greeter ${DESTDIR}/usr/bin/nody-greeter
+}

  parent reply	other threads:[~2022-07-03 21:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-08 18:12 [PR PATCH] New package: nody-greeter-1.3.1 JezerM
2022-01-08 23:43 ` [PR PATCH] [Updated] " JezerM
2022-01-09 19:23 ` JezerM
2022-01-09 19:26 ` JezerM
2022-01-10 18:50 ` [PR REVIEW] " Chocimier
2022-01-10 18:51 ` Chocimier
2022-01-10 18:51 ` Chocimier
2022-01-10 18:51 ` Chocimier
2022-01-10 18:51 ` Chocimier
2022-01-10 18:51 ` Chocimier
2022-01-13  2:42 ` JezerM
2022-01-13 18:50 ` [PR PATCH] [Updated] " JezerM
2022-01-13 18:51 ` JezerM
2022-01-13 19:21 ` New package: nody-greeter-1.3.2 JezerM
2022-02-18  3:13 ` [PR PATCH] [Updated] " JezerM
2022-06-21  2:13 ` github-actions
2022-07-03 21:39 ` JezerM [this message]
2022-07-03 21:41 ` JezerM

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220703213940.gC8OrlYnWHsUYFmoa4sL38U1VHWNpNe7mGv7k5nbB4s@z \
    --to=jezerm@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).