diff options
author | Franco Masotti | 2017-02-17 12:21:16 +0100 |
---|---|---|
committer | Franco Masotti | 2017-02-17 12:21:16 +0100 |
commit | 278bf947e7a08220bdadc69206f9ea10db34439c (patch) | |
tree | c927ca2239c6b2c180d0aa366f46d46ffa138c48 /PKGBUILD | |
download | aur-278bf947e7a08220bdadc69206f9ea10db34439c.tar.gz |
Added files.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79ae28318d8f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# 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-cplint-bin +pkgver=r1789.2563692 +pkgrel=1 +pkgdesc="SWI-Prolog for SHaring: a SWI-Prolog web IDE integrated with the cplint suite - precompiled version" +arch=('x86_64') +url="https://github.com/friguzzi/swish" +license=('BSD') +depends=('libxinerama' + 'libxpm' + 'git' + 'graphviz' + 'swi-prolog-devel' + 'rserve-sandbox-docker-bin') +makedepends=('git' + 'sed' + 'unzip' + 'curl') +conflicts=('swish' + 'swish-cplint') +install=.install +source=('git+https://github.com/friguzzi/swish#branch=master') +md5sums=('SKIP') + +build() { + cd ${srcdir}/swish + # Unzip in swish/web/bower_components + curl -o swish-bower-components.zip \ + http://www.swi-prolog.org/download/swish/swish-bower-components.zip + unzip swish-bower-components.zip + rm -rf swish-bower-components.zip + # Patch + cp ../../run.pl . + cp ../../run.sh . + cp ../../install_web_iface_deps.pl . +} + +pkgver () { + cd ${srcdir}/swish + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd ${srcdir} + install -d "${pkgdir}"/usr/share/"${pkgname%-bin}" + install -d "${pkgdir}"/usr/bin + cp -r swish/* "${pkgdir}"/usr/share/"${pkgname%-bin}" + install -D -m644 swish/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname%-bin}"/LICENSE + install -D -m644 ../"${pkgname%-bin}".service ${pkgdir}/usr/lib/systemd/system/"${pkgname%-bin}".service + ln -s /usr/share/"${pkgname%-bin}"/run.sh "${pkgdir}"/usr/bin/"${pkgname%-bin}" +} |