summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUladzimir Panasiuk2019-02-22 13:29:00 +0300
committerUladzimir Panasiuk2019-02-22 13:29:00 +0300
commiteb5680828ff7714cfc7df010a29611dcce051c59 (patch)
tree3c45474277e46dcd144d30d138624c70a46fb2a6
downloadaur-eb5680828ff7714cfc7df010a29611dcce051c59.tar.gz
initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD46
-rw-r--r--ecbd.service10
-rw-r--r--epson-printer-utility.install13
4 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b2ea890d727
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = epson-printer-utility
+ pkgdesc = This is a Printer Utility program for Epson. Using this software, you can check ink levels, view error and other status... on EPSON Printers.
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
+ install = epson-printer-utility.install
+ arch = x86_64
+ license = LGPL
+ license = custom:Epson Licence Agreement
+ depends = qt4
+ depends = ld-lsb>=3
+ options = !strip
+ source = https://download3.ebz.epson.net/dsc/f/03/00/09/02/33/71b2905a4cdf07374e83281333a767b24b57bc2d/epson-printer-utility_1.0.2-1lsb3.2_amd64.deb
+ source = ecbd.service
+ source = epson-printer-utility.install
+ sha256sums = ecfe72484087bb1af5eb7ce83410f4efe96530f670a151ffeb9bad7b5b230650
+ sha256sums = 6b377d0e9a5b80b5b4eab0eafe6b06eb0c968ce25e61f3b8ebb86687113604b9
+ sha256sums = 14abcc9698bcf380adb56075bf97c014ec32af66140bf225a9a0976df0137913
+
+pkgname = epson-printer-utility
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b8f29481dde
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Uladzimir Panasiuk <v.s.panasyuk(at)gmail.com>
+
+pkgname=epson-printer-utility
+pkgver=1.0.2
+pkgrel=1
+pkgdesc='This is a Printer Utility program for Epson. Using this software, you can check ink levels, view error and other status... on EPSON Printers.'
+arch=('x86_64')
+url='http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX'
+license=('LGPL' 'custom:Epson Licence Agreement')
+options=('!strip')
+depends=(
+ 'qt4'
+ 'ld-lsb>=3'
+)
+install=$pkgname.install
+source=("https://download3.ebz.epson.net/dsc/f/03/00/09/02/33/71b2905a4cdf07374e83281333a767b24b57bc2d/${pkgname}_${pkgver}-1lsb3.2_amd64.deb"
+ ecbd.service
+ $pkgname.install)
+sha256sums=('ecfe72484087bb1af5eb7ce83410f4efe96530f670a151ffeb9bad7b5b230650'
+ '6b377d0e9a5b80b5b4eab0eafe6b06eb0c968ce25e61f3b8ebb86687113604b9'
+ '14abcc9698bcf380adb56075bf97c014ec32af66140bf225a9a0976df0137913')
+
+prepare() {
+ [ -d data ] && rm -rf data
+ mkdir data
+ cd data
+ for datatar in ../data.tar.*; do
+ msg2 "Unpacking $datatar"
+ tar -xf $datatar
+ done
+}
+
+package() {
+ mkdir -p $pkgdir/{opt/$pkgname,usr}
+ cp -dr --no-preserve=ownership $srcdir/data/opt/epson-printer-utility/{bin,lib,resource} $pkgdir/opt/epson-printer-utility
+
+ mkdir -p $pkgdir/usr/lib/
+ cp -dr --no-preserve=ownership $srcdir/data/usr/lib/cups $pkgdir/usr/lib/
+ install -Dm 755 $srcdir/data/usr/lib/epson-backend/ecbd $pkgdir/usr/lib/epson-backend/ecbd
+
+ mkdir -p $pkgdir/usr/bin
+ ln -s /opt/$pkgname/bin/$pkgname $pkgdir/usr/bin/$pkgname
+
+ install -Dm644 $srcdir/ecbd.service $pkgdir/usr/lib/systemd/system/ecbd.service
+}
+
diff --git a/ecbd.service b/ecbd.service
new file mode 100644
index 00000000000..4eaccfb6bb9
--- /dev/null
+++ b/ecbd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Epson Printer Utility Daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/lib/epson-backend/ecbd
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/epson-printer-utility.install b/epson-printer-utility.install
new file mode 100644
index 00000000000..6a94ddf0cd3
--- /dev/null
+++ b/epson-printer-utility.install
@@ -0,0 +1,13 @@
+SERVICE=ecbd.service
+
+post_install() {
+ systemctl enable --now $SERVICE
+}
+
+pre_remove() {
+ [[ $(systemctl is-enabled $SERVICE) ]] && systemctl disable --now $SERVICE
+}
+
+post_upgrade() {
+ [[ $(systemctl is-active $SERVICE) ]] && systemctl restart $SERVICE
+}