[arch-commits] Commit in system-config-printer/repos (2 files)

2020-11-12 Thread Felix Yan via arch-commits
Date: Thursday, November 12, 2020 @ 17:49:14
  Author: felixonmars
Revision: 400649

archrelease: copy trunk to staging-x86_64

Added:
  system-config-printer/repos/staging-x86_64/
  system-config-printer/repos/staging-x86_64/PKGBUILD
(from rev 400648, system-config-printer/trunk/PKGBUILD)

--+
 PKGBUILD |   53 +
 1 file changed, 53 insertions(+)

Copied: system-config-printer/repos/staging-x86_64/PKGBUILD (from rev 400648, 
system-config-printer/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-11-12 17:49:14 UTC (rev 400649)
@@ -0,0 +1,53 @@
+# Maintainer: AndyRTR 
+# Contributor: Andrea Scarpino 
+
+pkgname=system-config-printer
+pkgver=1.5.13
+pkgrel=2
+pkgdesc="A CUPS printer configuration tool and status applet"
+url="https://github.com/OpenPrinting/system-config-printer;
+arch=('x86_64')
+license=('GPL')
+depends=('python-pycups' 'python-dbus' 'python-pycurl' 'libnotify'
+ 'python-requests' 'python-gobject' 'gtk3' 'python-cairo')
+makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libsecret')
+optdepends=('libsecret: password management'
+'python-pysmbc: SMB browser support'
+'cups-pk-helper: PolicyKit helper to configure cups with 
fine-grained privileges')
+source=(https://github.com/OpenPrinting/system-config-printer/releases/download/v${pkgver}/system-config-printer-${pkgver}.tar.xz)
+sha256sums=('eea3f06448aa5bb5fa0decdf9b912aefd21e3bd6615fc3e77b349ca443dcb8a1')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # create missing dummy files
+  #touch ./{README,ChangeLog}
+  touch README
+  autoreconf -vfi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+--sbindir=/usr/bin \
+--sysconfdir=/etc \
+--with-udevdir=/usr/lib/udev --with-udev-rules
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="$pkgdir" install
+
+  # Compile *.pyc
+  find "$pkgdir" -name '*.py' -exec python -mpy_compile {} +
+  # Compile *.pyo
+  find "$pkgdir" -name '*.py' -exec python -O -mpy_compile {} +
+  
+  # new cups 2.0.0 service naming
+  sed -i "s|cups.socket|org.cups.cupsd.socket|g" 
"$pkgdir"/usr/lib/systemd/system/configure-printer@.service
+
+  # fix dbus policy location - --with-dbusdir doens't work
+  install -dm755 "$pkgdir"/usr/share/dbus-1/system.d
+  mv "$pkgdir"/etc/dbus-1/system.d/* "$pkgdir"/usr/share/dbus-1/system.d
+  rm -rf "$pkgdir"/etc/dbus-1
+}


[arch-commits] Commit in system-config-printer/repos (2 files)

2020-03-17 Thread Andreas Radke via arch-commits
Date: Tuesday, March 17, 2020 @ 10:59:51
  Author: andyrtr
Revision: 377810

archrelease: copy trunk to testing-x86_64

Added:
  system-config-printer/repos/testing-x86_64/
  system-config-printer/repos/testing-x86_64/PKGBUILD
(from rev 377809, system-config-printer/trunk/PKGBUILD)

--+
 PKGBUILD |   59 +++
 1 file changed, 59 insertions(+)

Copied: system-config-printer/repos/testing-x86_64/PKGBUILD (from rev 377809, 
system-config-printer/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-03-17 10:59:51 UTC (rev 377810)
@@ -0,0 +1,59 @@
+# Maintainer: AndyRTR 
+# Contributor: Andrea Scarpino 
+
+pkgname=system-config-printer
+pkgver=1.5.12+33+g23b454ef
+pkgrel=1
+_commit=23b454ef52dd1992fb931a11481e8c25b7c7b755 # master
+pkgdesc="A CUPS printer configuration tool and status applet"
+url="https://github.com/OpenPrinting/system-config-printer;
+arch=('x86_64')
+license=('GPL')
+depends=('python-pycups' 'python-dbus' 'python-pycurl' 'libnotify'
+ 'python-requests' 'python-gobject' 'gtk3' 'python-cairo')
+makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libsecret' 
'git')
+optdepends=('libsecret: password management'
+'python-pysmbc: SMB browser support'
+'cups-pk-helper: PolicyKit helper to configure cups with 
fine-grained privileges')
+source=(#https://github.com/OpenPrinting/system-config-printer/releases/download/$pkgver/system-config-printer-${pkgver}.tar.xz
+
"git+https://github.com/OpenPrinting/system-config-printer.git#commit=$_commit;)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd ${pkgname} #-${pkgver}
+  # create missing dummy files
+  touch ./{README,ChangeLog}
+  autoreconf -vfi
+}
+
+build() {
+  cd ${pkgname} #-${pkgver}
+  ./configure --prefix=/usr \
+--sbindir=/usr/bin \
+--sysconfdir=/etc \
+--with-udevdir=/usr/lib/udev --with-udev-rules
+  make
+}
+
+package() {
+  cd ${pkgname} #-${pkgver}
+  make DESTDIR="$pkgdir" install
+
+  # Compile *.pyc
+  find "$pkgdir" -name '*.py' -exec python -mpy_compile {} +
+  # Compile *.pyo
+  find "$pkgdir" -name '*.py' -exec python -O -mpy_compile {} +
+  
+  # new cups 2.0.0 service naming
+  sed -i "s|cups.socket|org.cups.cupsd.socket|g" 
"$pkgdir"/usr/lib/systemd/system/configure-printer@.service
+
+  # fix dbus policy location - --with-dbusdir doens't work
+  install -dm755 "$pkgdir"/usr/share/dbus-1/system.d
+  mv "$pkgdir"/etc/dbus-1/system.d/* "$pkgdir"/usr/share/dbus-1/system.d
+  rm -rf "$pkgdir"/etc/dbus-1
+}


[arch-commits] Commit in system-config-printer/repos (2 files)

2019-11-03 Thread Felix Yan via arch-commits
Date: Monday, November 4, 2019 @ 06:31:10
  Author: felixonmars
Revision: 366680

archrelease: copy trunk to staging-x86_64

Added:
  system-config-printer/repos/staging-x86_64/
  system-config-printer/repos/staging-x86_64/PKGBUILD
(from rev 366679, system-config-printer/trunk/PKGBUILD)

--+
 PKGBUILD |   45 +
 1 file changed, 45 insertions(+)

Copied: system-config-printer/repos/staging-x86_64/PKGBUILD (from rev 366679, 
system-config-printer/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-11-04 06:31:10 UTC (rev 366680)
@@ -0,0 +1,45 @@
+# Maintainer: AndyRTR 
+# Contributor: Andrea Scarpino 
+
+pkgname=system-config-printer
+pkgver=1.5.12
+pkgrel=2
+pkgdesc="A CUPS printer configuration tool and status applet"
+url="https://github.com/OpenPrinting/system-config-printer;
+arch=('x86_64')
+license=('GPL')
+depends=('python-pycups' 'python-dbus' 'python-pycurl' 'libnotify'
+ 'python-requests' 'python-gobject' 'gtk3' 'python-cairo')
+makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libsecret')
+optdepends=('libsecret: password management'
+'python-pysmbc: SMB browser support'
+'cups-pk-helper: PolicyKit helper to configure cups with 
fine-grained privileges')
+source=(https://github.com/OpenPrinting/system-config-printer/releases/download/$pkgver/system-config-printer-${pkgver}.tar.xz)
+sha256sums=('6b16717dfe1f64ada6ef9398dcab07b8b7c864f006588d03002e41b743cf1e14')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+--sbindir=/usr/bin \
+--sysconfdir=/etc \
+--with-udevdir=/usr/lib/udev --with-udev-rules
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="$pkgdir" install
+
+  # Compile *.pyc
+  find "$pkgdir" -name '*.py' -exec python -mpy_compile {} +
+  # Compile *.pyo
+  find "$pkgdir" -name '*.py' -exec python -O -mpy_compile {} +
+  
+  # new cups 2.0.0 service naming
+  sed -i "s|cups.socket|org.cups.cupsd.socket|g" 
"$pkgdir"/usr/lib/systemd/system/configure-printer@.service
+
+  # fix dbus policy location - --with-dbusdir doens't work
+  install -dm755 "$pkgdir"/usr/share/dbus-1/system.d
+  mv "$pkgdir"/etc/dbus-1/system.d/* "$pkgdir"/usr/share/dbus-1/system.d
+  rm -rf "$pkgdir"/etc/dbus-1
+}


[arch-commits] Commit in system-config-printer/repos (2 files)

2018-02-01 Thread Andreas Radke via arch-commits
Date: Thursday, February 1, 2018 @ 17:21:25
  Author: andyrtr
Revision: 315730

archrelease: copy trunk to testing-x86_64

Added:
  system-config-printer/repos/testing-x86_64/
  system-config-printer/repos/testing-x86_64/PKGBUILD
(from rev 315729, system-config-printer/trunk/PKGBUILD)

--+
 PKGBUILD |   41 +
 1 file changed, 41 insertions(+)

Copied: system-config-printer/repos/testing-x86_64/PKGBUILD (from rev 315729, 
system-config-printer/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-02-01 17:21:25 UTC (rev 315730)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: AndyRTR 
+# Contributor: Andrea Scarpino 
+
+pkgname=system-config-printer
+pkgver=1.5.11
+pkgrel=1
+pkgdesc="A CUPS printer configuration tool and status applet"
+url="https://github.com/zdohnal/system-config-printer;
+arch=('x86_64')
+license=('GPL')
+depends=('python-pycups' 'python-dbus' 'python-pycurl' 'libnotify'
+ 'python-requests' 'python-gobject' 'gtk3' 'python-cairo')
+makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libsecret')
+optdepends=('libsecret: password management'
+'python-pysmbc: SMB browser support'
+'cups-pk-helper: PolicyKit helper to configure cups with 
fine-grained privileges')
+source=(https://github.com/zdohnal/system-config-printer/releases/download/$pkgver/system-config-printer-${pkgver}.tar.xz)
+sha256sums=('38ad78d117c30ddb8c6c008a91d1bc0fa2e854ec04ee2de5cdd12ab842c100d3')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+--sbindir=/usr/bin \
+--sysconfdir=/etc \
+--with-udevdir=/usr/lib/udev --with-udev-rules 
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+
+  # Compile *.pyc
+  find "${pkgdir}" -name '*.py' -exec python -mpy_compile {} +
+  # Compile *.pyo
+  find "${pkgdir}" -name '*.py' -exec python -O -mpy_compile {} +
+  
+  # new cups 2.0.0 service naming
+  sed -i "s|cups.socket|org.cups.cupsd.socket|g" 
${pkgdir}/usr/lib/systemd/system/configure-printer@.service
+}