Updated to new version.

This commit is contained in:
Franco Masotti 2017-03-09 15:16:54 +01:00
parent 3e8078f09a
commit 3695e3d476
4 changed files with 15 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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'

4
run.sh
View File

@ -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