diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .install | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rwxr-xr-x | run.sh | 4 |
4 files changed, 15 insertions, 7 deletions
@@ -1,14 +1,18 @@ pkgbase = swish pkgdesc = SWI-Prolog for SHaring: a SWI-Prolog web IDE - pkgver = r1170.dacea67 + pkgver = r1360.237320c pkgrel = 1 url = https://github.com/SWI-Prolog/swish install = .install arch = x86_64 license = BSD makedepends = git + makedepends = make makedepends = bower makedepends = sed + depends = bash + depends = coreutils + depends = gawk depends = libxinerama depends = libxpm depends = swi-prolog-devel @@ -1,7 +1,7 @@ post_install() { # Add swish user and group. - getent group swish &>/dev/null || groupadd -r swish >/dev/null - getent passwd swish &>/dev/null || useradd -m -d /home/swish \ + getent group swish 1>/dev/null 2>/dev/null || groupadd -r swish >/dev/null + getent passwd swish 1>/dev/null 2>/dev/null || useradd -m -d /home/swish \ -r -g swish swish >/dev/null chown -R swish:swish /usr/share/swish @@ -1,16 +1,20 @@ # Maintainer: Franco Masotti <franco dot masotti at student dot unife dot it> # Contributor: Franco Masotti <franco dot masotti at student dot unife dot it> pkgname=swish -pkgver=r1170.dacea67 +pkgver=r1360.237320c pkgrel=1 pkgdesc="SWI-Prolog for SHaring: a SWI-Prolog web IDE" arch=('x86_64') url="https://github.com/SWI-Prolog/swish" license=('BSD') -depends=('libxinerama' +depends=('bash' + 'coreutils' + 'gawk' + 'libxinerama' 'libxpm' 'swi-prolog-devel') makedepends=('git' + 'make' 'bower' 'sed') conflicts=('swish-cplint' @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash # # run.sh @@ -53,7 +53,7 @@ killd() # kill action only if process exists. if [ -f "$pid_file" ]; then pid=$(cat "$pid_file") - ps -q $pid > /dev/null + ps -p $pid > /dev/null if [ $? -eq 0 ]; then kill -s TERM $pid fi |