diff options
author | David Runge | 2018-01-29 20:12:11 +0100 |
---|---|---|
committer | David Runge | 2018-01-29 20:12:11 +0100 |
commit | 4629bcca6b11fb218d85fed1322792e89024ca72 (patch) | |
tree | 036ef773cc3e0f6a1d169e263ceab23fce68cd6e | |
parent | 89587ceedbd8a906ca8ac0e711f95fee384ba8ed (diff) | |
download | aur-4629bcca6b11fb218d85fed1322792e89024ca72.tar.gz |
PKGBUILD: Removing gnuplot from depends. Setting all install, copy, move and link procedures verbose.
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 60 |
2 files changed, 30 insertions, 37 deletions
@@ -1,17 +1,14 @@ -# Generated by mksrcinfo v8 -# Fri Dec 22 17:11:20 UTC 2017 pkgbase = etherpad-lite pkgdesc = Lightweight fork of etherpad based on javascript pkgver = 1.6.2 - pkgrel = 2 + pkgrel = 3 epoch = 1 url = http://etherpad.org arch = any license = Apache makedepends = npm - depends = nodejs depends = coffeescript - depends = gnuplot + depends = nodejs optdepends = sqlite: to use sqlite as databse optdepends = mariadb: to use mariadb as database optdepends = postgresql: to use postgresql as database @@ -6,13 +6,13 @@ _jqueryver=1.9.1 pkgname=etherpad-lite pkgver=1.6.2 -pkgrel=2 +pkgrel=3 epoch=1 pkgdesc="Lightweight fork of etherpad based on javascript" arch=(any) url="http://etherpad.org" license=('Apache') -depends=('nodejs' 'coffeescript' 'gnuplot') +depends=('coffeescript' 'nodejs') makedepends=('npm') optdepends=('sqlite: to use sqlite as databse' 'mariadb: to use mariadb as database' @@ -38,20 +38,20 @@ prepare() { # create needed initializing file touch src/.ep_initialized # create custom js and css from templates - cp src/static/custom/js.template src/static/custom/index.js - cp src/static/custom/js.template src/static/custom/pad.js - cp src/static/custom/js.template src/static/custom/timeslider.js - cp src/static/custom/css.template src/static/custom/index.css - cp src/static/custom/css.template src/static/custom/pad.css - cp src/static/custom/css.template src/static/custom/timeslider.css + cp -v src/static/custom/js.template src/static/custom/index.js + cp -v src/static/custom/js.template src/static/custom/pad.js + cp -v src/static/custom/js.template src/static/custom/timeslider.js + cp -v src/static/custom/css.template src/static/custom/index.css + cp -v src/static/custom/css.template src/static/custom/pad.css + cp -v src/static/custom/css.template src/static/custom/timeslider.css # write dirty.db to StateDirectory by default sed -i 's/var\/dirty.db/\/var\/lib\/etherpad-lite\/dirty.db/g' \ settings.json.template # create needed symlink because setup is weird - mkdir node_modules && cd node_modules - ln -s ../src "ep_${pkgname}" + mkdir -v node_modules && cd node_modules + ln -vs ../src "ep_${pkgname}" } build() { @@ -69,56 +69,52 @@ build() { package() { cd "${pkgname}-${pkgver}" # install initialization file - install -t "${pkgdir}/usr/share/${pkgname}/src/" -Dm644 \ - "src/.ep_initialized" + install -t "${pkgdir}/usr/share/${pkgname}/src/" \ + -vDm644 "src/.ep_initialized" # node modules - mv node_modules "${pkgdir}/usr/share/${pkgname}/" + mv -v node_modules "${pkgdir}/usr/share/${pkgname}/" # custom js and css templates - install -t "${pkgdir}/etc/${pkgname}/custom" -Dm0640 \ - "src/static/custom/"*.{css,js} - rm -r src/static/custom + install -t "${pkgdir}/etc/${pkgname}/custom" \ + -vDm0644 "src/static/custom/"*.{css,js} + rm -rv src/static/custom # move sources - mv src/* "${pkgdir}/usr/share/${pkgname}/src/" + mv -v src/* "${pkgdir}/usr/share/${pkgname}/src/" # symlink directory for custom css and js - ln -s "/etc/${pkgname}/custom/" \ + ln -vs "/etc/${pkgname}/custom/" \ "${pkgdir}/usr/share/${pkgname}/src/static/" # symlink needed files (not yet created) - ln -s /var/lib/etherpad-lite/SESSIONKEY.txt \ + ln -vs /var/lib/etherpad-lite/SESSIONKEY.txt \ "${pkgdir}/usr/share/${pkgname}/SESSIONKEY.txt" - ln -s /var/lib/etherpad-lite/APIKEY.txt \ + ln -vs /var/lib/etherpad-lite/APIKEY.txt \ "${pkgdir}/usr/share/${pkgname}/APIKEY.txt" #jquery - install -Dm0644 "${srcdir}/jquery.js" \ + install -vDm0644 "${srcdir}/jquery.js" \ "${pkgdir}/usr/share/${pkgname}/src/static/js/jquery.js" # configuration - install -Dm0644 settings.json.template \ + install -vDm0644 settings.json.template \ "${pkgdir}/etc/${pkgname}/settings.json" # systemd service - install -Dm0644 "${srcdir}/${pkgname}.service" \ + install -vDm0644 "${srcdir}/${pkgname}.service" \ "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" # systemd-sysusers - install -Dm0644 "${srcdir}/${pkgname}-sysusers.conf" \ + install -vDm0644 "${srcdir}/${pkgname}-sysusers.conf" \ "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" # systemd-tmpfiles - install -Dm0644 "${srcdir}/${pkgname}-tmpfiles.conf" \ + install -vDm0644 "${srcdir}/${pkgname}-tmpfiles.conf" \ "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf" # documentation - install -Dm0644 CHANGELOG.md \ - "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md" - install -Dm0644 CONTRIBUTING.md \ - "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING.md" - install -Dm0644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" - install -Dm0644 documentation.html \ - "${pkgdir}/usr/share/doc/${pkgname}/documentation.html" + install -t "${pkgdir}/usr/share/doc/${pkgname}/" \ + -vDm0644 {CHANGELOG,CONTRIBUTING,README}.md \ + -vDm0644 documentation.html } |