Package Details: inkstitch 3.3.0-4

Git Clone URL: https://aur.archlinux.org/inkstitch.git (read-only, click to copy)
Package Base: inkstitch
Description: An open source machine embroidery design platform based on Inkscape
Upstream URL: https://inkstitch.org/
Licenses: GPL-3.0-or-later
Submitter: gyscos
Maintainer: gyscos
Last Packager: gyscos
Votes: 11
Popularity: 1.00
First Submitted: 2020-05-01 06:17 (UTC)
Last Updated: 2026-09-16 16:17 (UTC)

Latest Comments

1 2 Next › Last »

erbil commented on 2026-11-07 10:31 (UTC)

Hi maintainer! Just a heads up that the package currently fails to build out of the box because the PKGBUILD has missing/broken dependency definitions (such as python-diskcache and python-pystitch split issues), causing standard AUR helpers and clean builds to fail.

gyscos commented on 2026-09-16 16:21 (UTC) (edited on 2026-09-25 17:47 (UTC) by gyscos)

Thanks! Moved python-pystitch to its own pkgbuild, and added the fonts & debug log fix here.

In the split package, python-pystitch was using inkstitch's version 3.3.0 (incorrectly). The new separate package uses its own correct version (1.0.1). Since it's lower, pacman may sometimes complain that it would be a downgrade. I recommend forcing this downgrade initially.

bakumr commented on 2026-08-18 14:48 (UTC)

May also want to ship the fonts. This could be done as a separate package, one could possibly automate creation of font subpackages so people only install what they need. Example PKGBUILD below that bundles the fonts with Ink/Stitch. For the DEBUG settings see https://github.com/inkstitch/inkstitch/issues/4002

pkgbase=inkstitch
pkgname=('inkstitch')
pkgver=3.3.0
pkgrel=4
fonts_commit=084eac038bf1af5a3a8b881a6cf0cc3340cf6e9b
arch=('any')
url="https://inkstitch.org/"
makedepends=('gettext' 'python-build' 'python-flask' 'python-installer' 'python-pystitch' 'python-setuptools' 'python-trimesh' 'python-wheel')
source=(
    "https://github.com/inkstitch/inkstitch/archive/refs/tags/v${pkgver}.tar.gz"
    "https://github.com/inkstitch/embroidery-fonts/archive/${fonts_commit}/inkstitch-fonts.tar.gz"
)
b2sums=(
    '02a5696d39333684ccc5dbf7311338e0f0aa540df66e4eec57c1524f782067ae1faef912fe90e6af847f38bdc3ff1105853a456bc5b29b6e4f2caa72352db7ef'
    'b9f672d2bbef7673bb5bddf700d637fb996a2b7fe06e5f49853c21c106b165809b529f41411d4a62473ffbcf663556127efe7277d0fe704e968fa517b52f872c'
)
depends=('inkscape' 'python-colormath2' 'python-diskcache' 'python-flask' 'python-fonttools' 'python-jinja'
    'python-lxml' 'python-networkx' 'python-numpy' 'python-platformdirs' 'python-pystitch' 'python-shapely' 'python-trimesh'
    'python-wxpython' 'python-inkex')

prepare() {
    tar -xf inkstitch-fonts.tar.gz
    rm -r inkstitch-${pkgver}/fonts
    mv embroidery-fonts-${fonts_commit} inkstitch-${pkgver}/fonts
    cp "inkstitch-${pkgver}/DEBUG_template.toml" "inkstitch-${pkgver}/DEBUG.toml" 
    sed -i 's/# disable_logging = true/disable_logging = true/g' "inkstitch-${pkgver}/DEBUG.toml"
    sed -i 's/# disable_from_inkscape = true/disable_from_inkscape = true/g' "inkstitch-${pkgver}/DEBUG.toml"
    sed -i 's/# force_frozen = true/force_frozen = true/g' "inkstitch-${pkgver}/DEBUG.toml"
}

build() {
    cd "inkstitch-${pkgver}"
    GITHUB_REF="refs/tags/v${pkgver}" \
        make PYTHON_EXECUTABLE=python inx
}

package_inkstitch() {
    pkgdesc="An open source machine embroidery design platform based on Inkscape"
    license=('GPL-3.0-or-later')
    depends=('inkscape' 'python-colormath2' 'python-diskcache' 'python-flask'
             'python-fonttools' 'python-jinja' 'python-lxml' 'python-networkx'
             'python-numpy' 'python-platformdirs' 'python-pystitch' 'python-shapely'
             'python-trimesh' 'python-wxpython')

    cd "inkstitch-${pkgver}"
    install -dm755 "$pkgdir/usr/share/inkscape/extensions/inkstitch"
    cp -a DEBUG.toml inkstitch.py lib addons dbus fonts icons locales palettes symbols tiles \
          print inx VERSION LICENSE "$pkgdir/usr/share/inkscape/extensions/inkstitch/"
    find "$pkgdir/usr/share/inkscape/extensions/inkstitch" -name '__pycache__' -type d -prune -exec rm -rf {} \;
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/inkstitch/LICENSE"
}

bakumr commented on 2026-08-18 14:42 (UTC)

Pystitch is a separate python package. It can also be helpful to run tests for it.

gyscos commented on 2026-08-18 12:32 (UTC) (edited on 2026-08-18 12:55 (UTC) by gyscos)

Maybe, but why? Are you having issues building this package?

~Since pystitch and inkstitch are built from the same repo (with roughly the same commands) it makes sense to build both at the same time.~ Ah nvm I forgot I was already checking out the separate package.

bakumr commented on 2026-08-18 11:03 (UTC)

Is it possible to have a separate PKGBUILD file for pystitch? Possible example below

_base=pystitch
pkgname=python-${_base}
pkgver=1.0.0
pkgrel=0
pkgdesc="Embroidery IO library"
arch=(any)
url="https://github.com/inkstitch/${_base}"
license=(MIT)
depends=(python)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python)
# Wheel on pypi is missinng the file 
# test/pattern_for_tests.py
#source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz)
source=(https://github.com/inkstitch/pystitch/archive/v${pkgver}/${_base}-${pkgver}.tar.gz)
sha512sums=('5ebb2fb69400f3bfd7880b444f337aa54aed7b2d1b3f897e36483d4fda1b97a65f6b8296aef49bcef13672fcf0172a6a360c2272865b6eb8399d6df3912f9c36')

build() {
  cd ${_base}-${pkgver}
  python -m build --wheel --skip-dependency-check --no-isolation
}

check() {
  cd ${_base}-${pkgver}
    local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
    if [ -d "../test_dir" ]; then rm -Rf "../test_dir"; fi
    python -m installer --destdir=../test_dir dist/*.whl
    PYTHONPATH="$PWD/../test_dir/usr/lib/python$python_version/site-packages" python -m unittest discover test
}

package() {
  cd ${_base}-${pkgver}
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

gyscos commented on 2026-08-12 14:35 (UTC) (edited on 2026-08-12 14:48 (UTC) by gyscos)

It's using pre-packaged releases, but it's mostly python code, nothing pre-compiled, not sure the -bin suffix would be justified.

EDIT: Hmm looks like there's more than just that indeed. In particular it looks like it's currently bundling a full python interpreter to be portable.

Will look into properly compiling it to use the system python instead.

bakumr commented on 2026-02-06 06:01 (UTC)

Should this be named inkstitch-bin as it uses pre-built binaries?

gyscos commented on 2024-08-06 18:33 (UTC) (edited on 2024-08-06 18:34 (UTC) by gyscos)

Looks like packaging works, but stripping causes an issue at the end.

No idea why it fails here, but since we load pre-built release binaries, they're most likely already stripped, so I added the !strip option in the update to 3.1.0.

gabethebabe commented on 2024-08-06 18:17 (UTC)

I am running into a similar issue as b1nb4sh.