summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUladzimir Panasiuk2019-02-22 13:45:46 +0300
committerUladzimir Panasiuk2019-02-22 13:45:46 +0300
commit4ae47db4346aa98953531eebb216b9c50a502646 (patch)
treec8b88869d2183d5344e0c87b7efc34d8f6ef22d8
parenteb5680828ff7714cfc7df010a29611dcce051c59 (diff)
downloadaur-4ae47db4346aa98953531eebb216b9c50a502646.tar.gz
some fixes
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD8
-rw-r--r--ecbd.service2
-rw-r--r--epson-printer-utility.install5
4 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b2ea890d727..d3bd9259a96 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,14 +8,14 @@ pkgbase = epson-printer-utility
license = LGPL
license = custom:Epson Licence Agreement
depends = qt4
- depends = ld-lsb>=3
+ 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
+ sha256sums = 8cc99a3e68b3367f4a78c05b93fdbbdcded13302fac72daf20b5a0ec9c6c9d55
+ sha256sums = a44c620094a8f807bd7c1286e772ca3de6f8983517d83f1ecd684d2632051f94
pkgname = epson-printer-utility
diff --git a/PKGBUILD b/PKGBUILD
index b8f29481dde..fcdf5573f1b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,15 +10,15 @@ license=('LGPL' 'custom:Epson Licence Agreement')
options=('!strip')
depends=(
'qt4'
- 'ld-lsb>=3'
+ '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')
+ '8cc99a3e68b3367f4a78c05b93fdbbdcded13302fac72daf20b5a0ec9c6c9d55'
+ 'a44c620094a8f807bd7c1286e772ca3de6f8983517d83f1ecd684d2632051f94')
prepare() {
[ -d data ] && rm -rf data
@@ -36,7 +36,7 @@ package() {
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
+ install -Dm 755 $srcdir/data/usr/lib/epson-backend/ecbd $pkgdir/opt/$pkgname/lib/epson-backend/ecbd
mkdir -p $pkgdir/usr/bin
ln -s /opt/$pkgname/bin/$pkgname $pkgdir/usr/bin/$pkgname
diff --git a/ecbd.service b/ecbd.service
index 4eaccfb6bb9..42d42f96602 100644
--- a/ecbd.service
+++ b/ecbd.service
@@ -3,7 +3,7 @@ Description=Epson Printer Utility Daemon
[Service]
Type=forking
-ExecStart=/usr/lib/epson-backend/ecbd
+ExecStart=/opt/epson-printer-utility/lib/epson-backend/ecbd
Restart=on-failure
[Install]
diff --git a/epson-printer-utility.install b/epson-printer-utility.install
index 6a94ddf0cd3..6be45f253f4 100644
--- a/epson-printer-utility.install
+++ b/epson-printer-utility.install
@@ -9,5 +9,8 @@ pre_remove() {
}
post_upgrade() {
- [[ $(systemctl is-active $SERVICE) ]] && systemctl restart $SERVICE
+ if systemctl is-active $SERVICE; then
+ systemctl daemon-reload
+ systemctl restart $SERVICE
+ fi
}