Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ ehthumbs.db
Thumbs.db

# demo project
MyPlasmoid
MyPlasmoid
pkg/deb/prasmoid/debian/prasmoid.config.js
3 changes: 2 additions & 1 deletion pkg/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
!*
!*
*.log
15 changes: 15 additions & 0 deletions pkg/aur/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# check PKGBUILD
namcap PKGBUILD

# build in chroot
pkgctl build

# check package
namcap *.pkg.tar.zst

# upload
#git add PKGBUILD .SRCINFO
#git commit -m "something useful"
#git push
10 changes: 5 additions & 5 deletions pkg/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Clem Lorteau <spam at lorteau dot fr>
pkgname=prasmoid
pkgver=0.0.3
pkgver=0.0.4
pkgrel=2
pkgdesc="The All in One Development Toolkit for KDE Plasmoids. Build, test, and manage your plasmoids with unparalleled ease and efficiency."
arch=("x86_64")
Expand All @@ -11,16 +11,16 @@ depends=(
"qt6-declarative"
)
makedepends=(
"go>=1.22"
"go>=1.23"
"git"
)

source=(
"${pkgname}-${pkgver}::git+https://github.com/PRASSamin/prasmoid.git#tag=v0.0.3"
"${pkgname}-${pkgver}::git+https://github.com/PRASSamin/prasmoid.git#tag=v0.0.4"
)

sha256sums=(
'7044508f97f1e4030adaf974aaaa0e19ff4f850b60731ed691cbe4873a12fdd5'
'2a4d67734ede4275377e4896916b366d7dbc5d8886d1bcb980f9713ef767c4a2'
)

build() {
Expand All @@ -34,7 +34,7 @@ build() {
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-s -w -X github.com/PRASSamin/prasmoid/internal.Version={pkgver}" -o prasmoid ./src
-ldflags "-s -w -X github.com/PRASSamin/prasmoid/internal.Version=${pkgver}" -o prasmoid .
Copy link

Copilot AI Sep 13, 2025

Choose a reason for hiding this comment

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

The ldflags string contains unescaped variable substitution. The ${pkgver} should be $pkgver or the entire string should use double quotes to allow variable expansion.

Suggested change
-ldflags "-s -w -X github.com/PRASSamin/prasmoid/internal.Version=${pkgver}" -o prasmoid .
-ldflags "-s -w -X github.com/PRASSamin/prasmoid/internal.Version=$pkgver" -o prasmoid .

Copilot uses AI. Check for mistakes.
}

package() {
Expand Down
37 changes: 0 additions & 37 deletions pkg/aur/PKGBUILD.binonly

This file was deleted.

19 changes: 19 additions & 0 deletions pkg/deb/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
#
# Builds source and binary debian packages by compiling from source in a base chroot
# Assumes a fresh pbuilder up-to-date environment for the target distro with nothing in 'result'

set -e

DIST=plucky

# build in chroot
sudo cowbuilder build --logfile build.log --distribution $DIST --hookdir $(pwd)/prasmoid/debian/pbuilderhook.d prasmoid_0.0.4-1.dsc

# check
lintian /var/cache/pbuilder/result/*source.changes

# upload
#sudo sed -i '/\.buildinfo/d' /var/cache/pbuilder/result/*source.changes #don't upload binary
#debsign /var/cache/pbuilder/result/*source.changes
#dput ppa:northern-lights/prasmoid /var/cache/pbuilder/result/*source.changes
2 changes: 1 addition & 1 deletion pkg/deb/prasmoid/debian/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/.debhelper/
/debhelper-build-stamp
/files

prasmoid.config.js
43 changes: 0 additions & 43 deletions pkg/deb/prasmoid/debian/README

This file was deleted.

10 changes: 10 additions & 0 deletions pkg/deb/prasmoid/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
prasmoid (0.0.4-1) plucky; urgency=medium

* Prasmoid update me has been renamed to prasmoid upgrade (shorter and clearer).
* The commands subcommand is now just command. You can manage custom commands with prasmoid command add/remove.
* Install script now gives clearer feedback while running.
* Logs show complex data more cleanly.
* Improved init command with better setup.

-- Clem Lorteau <clem@lorteau.fr> Thu, 11 Sep 2025 19:20:27 -0700

prasmoid (0.0.3-1) plucky; urgency=medium

* Initial release (Closes: #xxxx)
Expand Down
4 changes: 2 additions & 2 deletions pkg/deb/prasmoid/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Build-Depends: debhelper-compat (= 13),
golang-github-spf13-cobra-dev,
golang-golang-x-sys-dev,
golang-golang-x-term-dev,
golang-golang-x-net-dev,
golang-github-google-pprof-dev,
golang-github-go-sourcemap-sourcemap-dev,
golang-github-stretchr-testify-dev,
plasma-sdk,
qt6-declarative-dev-tools,
curl,
Expand All @@ -34,7 +34,7 @@ Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
Static-Built-Using: ${misc:Static-Built-Using}
Description: The All in One Development Toolkit for KDE Plasmoids. (program)
Description: The All in One Development Toolkit for KDE Plasmoids.
Prasmoid CLI
.
------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pkg/deb/prasmoid/debian/pbuilderhook.d/C10shell
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
echo "** Build failed, bringing up shell"
echo "\n\n** Build failed, bringing up shell\n"
apt-get install -y vim less fish > /dev/null
/bin/fish < /dev/tty > /dev/tty 2> /dev/tty
7 changes: 0 additions & 7 deletions pkg/deb/prasmoid/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@
%:
dh $@ --builddirectory=_build --buildsystem=golang

override_dh_auto_install:
# dh_auto_install -- --no-source
dh_auto_install
rm debian/prasmoid/usr/bin/prasmoid
mv debian/prasmoid/usr/bin/src debian/prasmoid/usr/bin/prasmoid


Binary file removed pkg/deb/prasmoid_0.0.3.orig.tar.gz
Binary file not shown.
Binary file added pkg/deb/prasmoid_0.0.4-1.debian.tar.xz
Binary file not shown.
24 changes: 7 additions & 17 deletions pkg/deb/prasmoid_0.0.3-1.dsc → pkg/deb/prasmoid_0.0.4-1.dsc
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 3.0 (quilt)
Source: prasmoid
Binary: prasmoid
Architecture: any
Version: 0.0.3-1
Version: 0.0.4-1
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Clem Lorteau <clem@lorteau.fr>,
Homepage: https://github.com/PRASSamin/prasmoid
Expand All @@ -17,20 +14,13 @@ Build-Depends: debhelper-compat (= 13), dh-sequence-golang, golang-any, golang-g
Package-List:
prasmoid deb golang optional arch=any
Checksums-Sha1:
136c24fcbe94c01208c4333ecd853c622f5f507d 921468 prasmoid_0.0.3.orig.tar.gz
47742965dc58f11ddb0454625552b19ce8aca259 324520 prasmoid_0.0.3-1.debian.tar.xz
9f4a3b9d3d90b26993e0208c8bd18739d961f4c5 1851675 prasmoid_0.0.4.orig.tar.gz
76c2663cf7666ff1210ba124775168b2cc8a0509 3476 prasmoid_0.0.4-1.debian.tar.xz
Checksums-Sha256:
53a0c0c645f0e2d4ba4985d853af192bc55296114d75bfa9b1911bb45208cc17 921468 prasmoid_0.0.3.orig.tar.gz
c1b821993449aeafb0fb93c621c1e3d2372a82608f57a53f150fbe532c25582f 324520 prasmoid_0.0.3-1.debian.tar.xz
2ddd45a8f177e20e2d368dc6a2e5729fd9b8acbba9dfba7f9829cb01315713e3 1851675 prasmoid_0.0.4.orig.tar.gz
46f9d106dacaf0c479a9c1d9962590918cf3c9df0f33a0bd6597c2062c885776 3476 prasmoid_0.0.4-1.debian.tar.xz
Files:
2e3bd0a379ca8bad35a42d6c17512b0f 921468 prasmoid_0.0.3.orig.tar.gz
8ea57006c30877dd2f2bb848d515af9f 324520 prasmoid_0.0.3-1.debian.tar.xz
c6f85260379265d11dbe215608fb4569 1851675 prasmoid_0.0.4.orig.tar.gz
828a57840a61ce7bb7689b49ad1f254a 3476 prasmoid_0.0.4-1.debian.tar.xz
Go-Import-Path: github.com/PRASSamin/prasmoid

-----BEGIN PGP SIGNATURE-----

iIYEARYKAC4WIQSbnCN78hmmAjXm26fVpLUsx0toXwUCaKEYjBAcY2xlbUBsb3J0
ZWF1LmZyAAoJENWktSzHS2hf3E0A/jDA7nBdYq+f59XMWI/A2JYUZw5xJhWmmHOf
x60AWlk2AQDwyxeeKFY80Srzr1ElZvMXX6HZ9Sk0JHAabZKK7WhhBA==
=vkLt
-----END PGP SIGNATURE-----
Binary file added pkg/deb/prasmoid_0.0.4.orig.tar.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions pkg/rpm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.tar.gz
results_prasmoid/*
*.rpm
17 changes: 17 additions & 0 deletions pkg/rpm/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

# download specified version of sources
spectool -g prasmoid.spec

# build
fedpkg --release f42 mockbuild

# check
# rpm --query --package --list results_prasmoid/0.0.4/1.fc42/prasmoid-0.0.4-1.fc42.x86_64.rpm
# fedpkg --release f42 lint

# upload
#copr-cli build prasmoid prasmoid-0.0.4-1.fc42.src.rpm

15 changes: 0 additions & 15 deletions pkg/rpm/README

This file was deleted.

Binary file added pkg/rpm/prasmoid-0.0.4-vendor.tar.bz2
Binary file not shown.
24 changes: 10 additions & 14 deletions pkg/rpm/prasmoid.spec
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
%bcond check 1

# https://github.com/PRASSamin/prasmoid
%global goipath github.com/PRASSamin/prasmoid
Version: 0.0.3
Version: 0.0.4

%gometa -L -f


Name: prasmoid
Release: 2%{?dist}
Release: 1%{?dist}
Summary: The All in One Development Toolkit for KDE Plasmoids

# Generated by go-vendor-tools
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT
URL: %{gourl}
Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml

Expand All @@ -36,7 +32,7 @@ The All in One Development Toolkit for KDE Plasmoids.
%prep
%goprep -A
%setup -q -T -D -a1 %{forgesetupargs}
%autopatch -p1
# %autopatch -p1

%generate_buildrequires
%go_vendor_license_buildrequires -c %{S:2}
Expand All @@ -45,15 +41,15 @@ The All in One Development Toolkit for KDE Plasmoids.
%global gomodulesmode GO111MODULE=on
export PATH=$PATH:
%gobuild -o %{gobuilddir}/bin/prasmoid %{goipath}
for cmd in src; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
rm %{gobuilddir}/bin/prasmoid
mv %{gobuilddir}/bin/src %{gobuilddir}/bin/prasmoid
# for cmd in prasmoid/*; do
# %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
# done
# rm %{gobuilddir}/bin/prasmoid
# mv %{gobuilddir}/bin/src %{gobuilddir}/bin/prasmoid

%install
%go_vendor_license_install -c %{S:2}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/prasmoid %{buildroot}%{_bindir}/
# rm %{buildroot}/lib/debug/usr/bin/*.debug

Expand Down
1 change: 1 addition & 0 deletions pkg/snap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.snap
7 changes: 7 additions & 0 deletions pkg/snap/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

#build
snapcraft pack

#upload
3 changes: 3 additions & 0 deletions pkg/snap/org.prasmoid.prasmoid.metainfo.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
</provides>

<releases>
<release version="v0.0.4" date="2025-09-12">
<url type="details">https://github.com/PRASSamin/prasmoid/releases/download/v0.0.4</url>
</release>
<release version="v0.0.3" date="2025-08-10">
<url type="details">https://github.com/PRASSamin/prasmoid/releases/download/v0.0.3</url>
</release>
Expand Down
Loading
Loading