Browse Source

Updated to new version.

master
Franco Masotti 6 years ago
parent
commit
3695e3d476
  1. 6
      .SRCINFO
  2. 4
      .install
  3. 8
      PKGBUILD
  4. 4
      run.sh

6
.SRCINFO

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

4
.install

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

8
PKGBUILD

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

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

Loading…
Cancel
Save