From a18cf800c928c959561b9c87a75628f80e04325c Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 17 Aug 2023 09:56:49 -0400 Subject: [PATCH 1/3] vips: update to 8.14.4. --- srcpkgs/vips/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/vips/template b/srcpkgs/vips/template index d058b65661ea9..6b08ed1088e38 100644 --- a/srcpkgs/vips/template +++ b/srcpkgs/vips/template @@ -1,7 +1,7 @@ # Template file for 'vips' pkgname=vips -version=8.14.2 -revision=2 +version=8.14.4 +revision=1 build_style=meson build_helper=gir # TODO: As of version 8.11 vips supports loading its support for OpenSlide, @@ -30,7 +30,7 @@ license="LGPL-2.1-or-later" homepage="https://www.libvips.org/" changelog="https://raw.githubusercontent.com/libvips/libvips/master/ChangeLog" distfiles="https://github.com/libvips/libvips/archive/refs/tags/v${version}.tar.gz" -checksum=feb30b82161cfc30d5ba396c95b08bf9af3110bc960ccc0efecebb45db22deda +checksum=0638150ee5066814aa22ca89e0285f2310a539be3c39a631edeb38135a3f1f15 python_version=3 build_options="gir gtk_doc hdf5" From 34eb79729c1ce395efc0483cdd1de710ae153c3a Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 14 Jun 2023 17:18:12 -0400 Subject: [PATCH 2/3] New package: lemmy-0.18.4 --- srcpkgs/lemmy/files/lemmy/run | 6 ++++++ srcpkgs/lemmy/template | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 srcpkgs/lemmy/files/lemmy/run create mode 100644 srcpkgs/lemmy/template diff --git a/srcpkgs/lemmy/files/lemmy/run b/srcpkgs/lemmy/files/lemmy/run new file mode 100644 index 0000000000000..8e7871ac50ffb --- /dev/null +++ b/srcpkgs/lemmy/files/lemmy/run @@ -0,0 +1,6 @@ +#!/bin/sh +exec 2>&1 +[ -r ./conf ] && . ./conf +export LEMMY_CONFIG_LOCATION=${LEMMY_CONFIG_LOCATION:-/etc/lemmy/lemmy.hjson} +cd /var/lib/lemmy || exit 1 +exec chpst -u _lemmy:_lemmy lemmy_server diff --git a/srcpkgs/lemmy/template b/srcpkgs/lemmy/template new file mode 100644 index 0000000000000..9e16171196c06 --- /dev/null +++ b/srcpkgs/lemmy/template @@ -0,0 +1,40 @@ +# Template file for 'lemmy' +pkgname=lemmy +version=0.18.4 +revision=1 +_translation_commit=1c42c579460871de7b4ea18e58dc25543b80d289 +build_style=cargo +configure_args="--features=embed-pictrs" +hostmakedepends="pkg-config protobuf" +makedepends="openssl-devel libpqxx-devel libzstd-devel" +depends="ImageMagick ffmpeg exiftool" +short_desc="Link aggregator and forum for the fediverse" +maintainer="Joel Beckmeyer " +license="AGPL-3.0-only" +homepage="https://join-lemmy.org/" +changelog="https://raw.githubusercontent.com/LemmyNet/lemmy/main/RELEASES.md" +distfiles="https://github.com/LemmyNet/lemmy/archive/refs/tags/${version}.tar.gz + https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz" +checksum="47b0e7880f355879ab1d557aa679924e3fa9419736c680c00dca63d69ff57f83 + 7775b2a3070205f9b4b099215b30ee6bef3d5fb0c4e95aab52697e2bcb7cf9f7" +system_accounts="_lemmy" +make_dirs="/var/lib/lemmy 0700 _lemmy _lemmy" +_lemmy_homedir="/var/lib/lemmy" +conf_files="/etc/lemmy/lemmy.hjson" + +post_extract() { + cp -r lemmy-${version}/. . + cp -r lemmy-translations-${_translation_commit}/. crates/utils/translations + rm -rf lemmy-${version} lemmy-translations-${_translation_commit} +} + +post_patch() { + vsed -i "s/unknown version/$version/" crates/utils/src/version.rs +} + +post_install() { + vsconf config/defaults.hjson + vinstall config/config.hjson 644 etc/lemmy lemmy.hjson + vsv lemmy + vlicense LICENSE +} From 2da88c002844f64f6a43d0e5b6f79e4ba27d58a9 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Fri, 16 Jun 2023 10:09:22 -0400 Subject: [PATCH 3/3] New package: lemmy-ui-0.18.4 --- srcpkgs/lemmy-ui/files/lemmy-ui/run | 5 +++ srcpkgs/lemmy-ui/template | 58 +++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 srcpkgs/lemmy-ui/files/lemmy-ui/run create mode 100644 srcpkgs/lemmy-ui/template diff --git a/srcpkgs/lemmy-ui/files/lemmy-ui/run b/srcpkgs/lemmy-ui/files/lemmy-ui/run new file mode 100644 index 0000000000000..26535bea510c0 --- /dev/null +++ b/srcpkgs/lemmy-ui/files/lemmy-ui/run @@ -0,0 +1,5 @@ +#!/bin/sh +exec 2>&1 +[ -r ./conf ] && . ./conf +cd /usr/lib/lemmy-ui || exit 1 +exec chpst -u _lemmyui:_lemmyui node dist/js/server.js diff --git a/srcpkgs/lemmy-ui/template b/srcpkgs/lemmy-ui/template new file mode 100644 index 0000000000000..e526ee6ef5078 --- /dev/null +++ b/srcpkgs/lemmy-ui/template @@ -0,0 +1,58 @@ +# Template file for 'lemmy-ui' +pkgname=lemmy-ui +version=0.18.4 +revision=1 +_translation_commit=1c42c579460871de7b4ea18e58dc25543b80d289 +hostmakedepends="yarn pkg-config python3" +makedepends="libvips-devel" +depends="nodejs" +short_desc="Official web app for lemmy" +maintainer="Joel Beckmeyer " +license="AGPL-3.0-only" +homepage="https://join-lemmy.org/" +distfiles="https://github.com/LemmyNet/lemmy-ui/archive/refs/tags/${version}.tar.gz + https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz" +checksum="e8f436b40eca86a104d86d9521de52f93d2f60210e66d756087ba0ba9e7cf373 + 7775b2a3070205f9b4b099215b30ee6bef3d5fb0c4e95aab52697e2bcb7cf9f7" +python_version=3 +system_accounts="_lemmyui" + +export NODE_ENV=production +case "$XBPS_TARGET_MACHINE" in + aarch64*) export npm_config_arch=arm64;; + armv5*) export npm_config_arch=arm; export npm_config_arm_version=5;; + armv6*) export npm_config_arch=arm; export npm_config_arm_version=6;; + armv7*) export npm_config_arch=arm; export npm_config_arm_version=7;; + i686*) export npm_config_arch=ia32;; + x86_64*) export npm_config_arch=x64;; +esac +export npm_config_build_from_source=true +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + export npm_config_libc=musl +fi +export npm_config_platform=linux + +post_extract() { + cp -r lemmy-ui-${version}/. . + cp -r lemmy-translations-${_translation_commit}/. lemmy-translations + rm -rf lemmy-${version} lemmy-translations-${_translation_commit} + + yarn install --pure-lockfile +} + +post_patch() { + vsed -i "s/unknown version/$version/" src/shared/version.ts +} + +do_build() { + yarn build:prod +} + +do_install() { + npm prune + vmkdir usr/lib/lemmy-ui + vcopy dist usr/lib/lemmy-ui + vcopy node_modules usr/lib/lemmy-ui + vlicense LICENSE + vsv lemmy-ui +}