Skip to content

Commit

Permalink
main/system-config-printer: new package (1.5.18)
Browse files Browse the repository at this point in the history
  • Loading branch information
triallax authored and q66 committed Mar 11, 2024
1 parent d7d2aa3 commit 38264ca
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions main/system-config-printer/patches/Makefile-python.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- a/Makefile.am 2022-08-30 16:20:07.000000000 +0100
+++ b/Makefile.am 2024-02-28 23:56:38.523125518 +0000
@@ -59,11 +59,11 @@

# Use distutils to build the module.
all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py
- $(PYTHON) setup.py build
+ $(PYTHON) -m build --wheel --no-isolation .

# Use distutils to install the module.
install-exec-local: .stamp-distutils-in-builddir
- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+ $(PYTHON) -m installer --compile-bytecode 0 --destdir "$(DESTDIR)" $(top_srcdir)/build/dist/cupshelpers-1.0-py3-none-any.whl

# Uninstall the module, crossing our fingers that we know enough
# about how distutils works to do this. Unfortunately, distutils
46 changes: 46 additions & 0 deletions main/system-config-printer/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pkgname = "system-config-printer"
pkgver = "1.5.18"
pkgrel = 0
build_style = "gnu_configure"
make_cmd = "gmake"
hostmakedepends = [
"autoconf-archive",
"automake",
"desktop-file-utils",
"gettext-devel",
"gmake",
"libxml2-progs",
"pkgconf",
"python-build",
"python-installer",
"python-setuptools",
"python-wheel",
"xmlto",
]
makedepends = ["cups-devel", "glib-devel", "libusb-devel", "udev-devel"]
depends = [
"gdk-pixbuf",
"gtk+3",
"libhandy",
"libnotify",
"libsecret",
"python-cairo",
"python-dbus",
"python-gobject",
"python-pycups",
]
pkgdesc = "Graphical user interface for CUPS administration"
maintainer = "triallax <triallax@tutanota.com>"
license = "GPL-2.0-or-later"
url = "https://github.com/OpenPrinting/system-config-printer"
source = (
f"{url}/releases/download/v{pkgver}/system-config-printer-{pkgver}.tar.xz"
)
sha256 = "b1a69e1b4ec2add569a87aeca811a37c5361ee6ae327ec852b79e64223e34bee"


def post_install(self):
self.mv(
self.destdir / "etc/dbus-1/system.d",
self.destdir / "usr/share/dbus-1/system.d",
)

0 comments on commit 38264ca

Please sign in to comment.