git » picocom.git » commit 6c9a419

fix FS#37352

author Sébastien Luttringer
2013-10-20 22:35:02 UTC
committer Sébastien Luttringer
2013-10-20 22:35:02 UTC
parent d98293c54cb2d0e38950813c98f0c46f250755d4

fix FS#37352

- fix call to type in install file

PKGBUILD +2 -2
picocom.install +3 -5

diff --git a/PKGBUILD b/PKGBUILD
index bdff67c..ad23ea6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=picocom
 pkgver=1.7
-pkgrel=2
+pkgrel=3
 pkgdesc='Minimal dumb-terminal emulation program, very much like minicom'
 url='http://code.google.com/p/picocom/'
 license=('GPL2')
@@ -15,7 +15,7 @@ sha1sums=('bde6e36af71db845913f9d61f28dee1b485218fa')
 
 build() {
   cd $pkgname-$pkgver
-  make --environment-overrides UUCP_LOCK_DIR=/run/lock/picocom
+  make UUCP_LOCK_DIR=/run/lock/picocom
 }
 
 package() {
diff --git a/picocom.install b/picocom.install
index 4d2f2ed..aab48bd 100644
--- a/picocom.install
+++ b/picocom.install
@@ -1,8 +1,8 @@
-#!/bin/sh
+# vim:set ts=2 sw=2 ft=sh et:
 
 ## arg 1:  the new package version
 post_install() {
-  type systemd-tmpfiles >/dev/null && systemd-tmpfiles --create picocom.conf
+  type -P systemd-tmpfiles >/dev/null && systemd-tmpfiles --create picocom.conf
 }
 
 # arg 1:  the new package version
@@ -13,7 +13,5 @@ post_upgrade() {
 
 ## arg 1:  the old package version
 post_remove() {
- type systemd-tmpfiles >/dev/null && systemd-tmpfiles --clean --remove picocom.conf
+ type -P systemd-tmpfiles >/dev/null && systemd-tmpfiles --clean --remove picocom.conf
 }
-
-# vim:set ts=2 sw=2 ft=sh et: