Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ aqua-ide-bin
ardour-git
arduino-cli-bin
arduino-ide-bin
artemisrgb-bin
asdf-vm
aseprite
audiorelay-bin
Expand Down
24 changes: 24 additions & 0 deletions packages/artemisrgb-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pkgbase = artemisrgb-bin
gives = artemisrgb
pkgver = 1.2025.0819.0
pkgdesc = A universal RGB control software
url = https://artemis-rgb.com/
arch = x86_64
depends = dotnet-runtime-8.0 | dotnet-runtime-7.0
depends = hicolor-icon-theme
depends = libc6
depends = bash
depends = zlib1g
depends = fontconfig
depends = libstdc++6
makedepends = unzip
conflicts = artemisrgb
conflicts = artemisrgb-git
provides = artemisrgb
noextract = artemisrgb-bin-1.2025.0819.0.zip
license = custom:PolyForm Noncommercial License 1.0.0
maintainer = Rodrigo Tavares <dev@rodrigotavar.es>
source = artemisrgb-bin-1.2025.0819.0.zip::https://updating.artemis-rgb.com/api/artifacts/3795832408
sha256sums = 424b0abdc63a60709cbc217393c80d1112aa6f97a4b0e6a797c2fd7d59e6a790

pkgname = artemisrgb-bin
42 changes: 42 additions & 0 deletions packages/artemisrgb-bin/artemisrgb-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
pkgname=artemisrgb-bin
pkgver=1.2025.0819.0
gives="artemisrgb"
url="https://artemis-rgb.com/"
pkgdesc="A universal RGB control software"
maintainer=("Rodrigo Tavares <dev@rodrigotavar.es>")
arch=("x86_64")
provides=("artemisrgb")
conflicts=("artemisrgb" "artemisrgb-git")
license=("custom:PolyForm Noncommercial License 1.0.0")
depends=("dotnet-runtime-8.0 | dotnet-runtime-7.0" "hicolor-icon-theme" "libc6" "bash" "zlib1g" "fontconfig" "libstdc++6")
makedepends=("unzip")
options=("staticlibs")
source=("${pkgname}-${pkgver}.zip::https://updating.artemis-rgb.com/api/artifacts/3795832408")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL isn't locked to a specific version that can be locked with pkgver, so I'm hesitant to approve this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The official website uses an API to get releases information, and returns artifact ID tied to a specific release.

Get releases:

$ curl 'https://updating.artemis-rgb.com/graphql' \
  -X POST \
  -H 'Accept: */*' \
  -H 'content-type: application/json' \
  --data-raw $'{"operationName":"GetReleases","variables":{"branch":"master","platform":"LINUX"},"query":"query GetReleases($branch: String\041, $platform: Platform\041, $after: String) {\\n  publishedReleases(\\n    first: 50\\n    after: $after\\n    where: {and: [{branch: {eq: $branch}}, {artifacts: {some: {platform: {eq: $platform}}}}]}\\n    order: {createdAt: DESC}\\n  ) {\\n    pageInfo {\\n      hasNextPage\\n      endCursor\\n      __typename\\n    }\\n    edges {\\n      node {\\n        id\\n        version\\n        createdAt\\n        __typename\\n      }\\n      __typename\\n    }\\n    __typename\\n  }\\n}\\n"}'
{"data":{"publishedReleases":{"pageInfo":{"hasNextPage":false,"endCursor":"MA==","__typename":"PageInfo"},"edges":[{"node":{"id":"12612f77-7bbd-4699-bef1-49e3c7fe2e79","version":"1.2025.0819.0","createdAt":"2025-08-19T07:15:36.000Z","__typename":"Release"},"__typename":"PublishedReleasesEdge"}],"__typename":"PublishedReleasesConnection"}}}

(Release version 1.2025.0819.0 with id 12612f77-7bbd-4699-bef1-49e3c7fe2e79)

Get release info:

$ curl 'https://updating.artemis-rgb.com/graphql' \
  -X POST \
  -H 'Accept: */*' \
  -H 'content-type: application/json' \
  --data-raw $'{"operationName":"GetRelease","variables":{"id":"12612f77-7bbd-4699-bef1-49e3c7fe2e79","platform":"LINUX","branch":"master"},"query":"query GetRelease($id: UUID\041, $branch: String\041, $platform: Platform\041) {\\n  publishedRelease(id: $id) {\\n    id\\n    createdAt\\n    commit\\n    artifacts {\\n      platform\\n      artifactId\\n      fileInfo {\\n        downloadSize\\n        __typename\\n      }\\n      __typename\\n    }\\n    __typename\\n  }\\n  nextPublishedRelease(branch: $branch, platform: $platform) {\\n    id\\n    __typename\\n  }\\n}\\n"}'
{"data":{"publishedRelease":{"id":"12612f77-7bbd-4699-bef1-49e3c7fe2e79","createdAt":"2025-08-19T07:15:36.000Z","commit":"acd35176e1c6661a887e467ef4b294eddb532726","artifacts":[{"platform":"OSX","artifactId":3795834372,"fileInfo":{"downloadSize":108848192,"__typename":"ArtifactFileInfo"},"__typename":"Artifact"},{"platform":"LINUX","artifactId":3795832408,"fileInfo":{"downloadSize":106349827,"__typename":"ArtifactFileInfo"},"__typename":"Artifact"},{"platform":"WINDOWS","artifactId":3795842184,"fileInfo":{"downloadSize":119196807,"__typename":"ArtifactFileInfo"},"__typename":"Artifact"}],"__typename":"Release"},"nextPublishedRelease":{"id":"12612f77-7bbd-4699-bef1-49e3c7fe2e79","__typename":"Release"}}}

(Artifact ID for Linux is 3795832408).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm mostly concerned with pacup not being able to be used to update the pacscript, but if there's no other way, lmk and I'll approve the PR.

sha256sums=('424b0abdc63a60709cbc217393c80d1112aa6f97a4b0e6a797c2fd7d59e6a790')
noextract=("${pkgname}-${pkgver}.zip")

package() {
unzip -o "${srcdir}/${pkgname}-${pkgver}.zip" -d "${srcdir}/${pkgname}-${pkgver}/"

mkdir -p "${pkgdir}/opt"
mkdir -p "${pkgdir}/usr/share/"
cp -r --preserve=mode,timestamps "${srcdir}/${pkgname}-${pkgver}/" "${pkgdir}/opt/${gives}"
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/${gives}/Artemis.UI.Linux" "${pkgdir}/usr/bin/${gives}"

# .desktop
cat > "${srcdir}/artemis.desktop" << EOF
[Desktop Entry]
Name=Artemis
Type=Application
Exec=/usr/bin/artemisrgb
Icon=artemis
Categories=Utility
EOF
install -Dm644 "${srcdir}/artemis.desktop" "${pkgdir}/usr/share/applications/${gives}.desktop"

# Icon for .desktop
cd "${srcdir}/${pkgname}-${pkgver}/Icons/"
find . -type f -exec install -Dm644 "{}" "${pkgdir}/usr/share/icons/hicolor/{}" \;

}
25 changes: 25 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,31 @@ pkgbase = arduino-ide-bin

pkgname = arduino-ide-bin
---
pkgbase = artemisrgb-bin
gives = artemisrgb
pkgver = 1.2025.0819.0
pkgdesc = A universal RGB control software
url = https://artemis-rgb.com/
arch = x86_64
depends = dotnet-runtime-8.0 | dotnet-runtime-7.0
depends = hicolor-icon-theme
depends = libc6
depends = bash
depends = zlib1g
depends = fontconfig
depends = libstdc++6
makedepends = unzip
conflicts = artemisrgb
conflicts = artemisrgb-git
provides = artemisrgb
noextract = artemisrgb-bin-1.2025.0819.0.zip
license = custom:PolyForm Noncommercial License 1.0.0
maintainer = Rodrigo Tavares <dev@rodrigotavar.es>
source = artemisrgb-bin-1.2025.0819.0.zip::https://updating.artemis-rgb.com/api/artifacts/3795832408
sha256sums = 424b0abdc63a60709cbc217393c80d1112aa6f97a4b0e6a797c2fd7d59e6a790

pkgname = artemisrgb-bin
---
pkgbase = asdf-vm
pkgver = 0.18.0
pkgdesc = Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Expand Down
Loading