summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-10-14 18:28:52 -0700
committerAndy Weidenbaum2015-10-14 18:28:52 -0700
commitb94ebafa96faf24491a27fdd09e7e87cadd65949 (patch)
treeaf05658e07d9867f394e52b16bef46f6dfe08f1a
parenta3df1fd9f0c866884135e1f651f5163b1b12275b (diff)
downloadaur-b94ebafa96faf24491a27fdd09e7e87cadd65949.tar.gz
s/nodejs-bower/bower
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--swagger-editor.install6
3 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6c7f2fd28e9..b8e5bb72349 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = swagger-editor-git
pkgdesc = Swagger Editor
- pkgver = 20150904
+ pkgver = 20151009
pkgrel = 1
url = https://github.com/swagger-api/swagger-editor
install = swagger-editor.install
arch = i686
arch = x86_64
license = Apache
+ makedepends = bower
makedepends = git
- makedepends = nodejs-bower
makedepends = nodejs-grunt-cli
makedepends = npm
depends = darkhttpd
diff --git a/PKGBUILD b/PKGBUILD
index cec64cd0b44..3f8adc2ac43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,12 @@
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=swagger-editor-git
-pkgver=20150904
+pkgver=20151009
pkgrel=1
pkgdesc="Swagger Editor"
arch=('i686' 'x86_64')
depends=('darkhttpd' 'nodejs')
-makedepends=('git' 'nodejs-bower' 'nodejs-grunt-cli' 'npm')
+makedepends=('bower' 'git' 'nodejs-grunt-cli' 'npm')
url="https://github.com/swagger-api/swagger-editor"
license=('Apache')
source=(git+https://github.com/swagger-api/swagger-editor
diff --git a/swagger-editor.install b/swagger-editor.install
index 5e79c1acc06..6f8f7ce640a 100644
--- a/swagger-editor.install
+++ b/swagger-editor.install
@@ -1,6 +1,6 @@
post_install() {
_mkuser
- chown -R swaggereditor:swaggereditor /usr/share/swagger-editor
+ chown -R swaggereditor:swaggereditor /etc/swagger-editor /usr/share/swagger-editor
printf "%b\n" "$swaggereditor"
}
@@ -10,14 +10,14 @@ post_upgrade() {
post_remove() {
_rmuser
- rm -rf /usr/share/swagger-editor
+ rm -rf /etc/swagger-editor /usr/share/swagger-editor
}
_mkuser() {
getent passwd swaggereditor &>/dev/null || {
echo -n "Creating swaggereditor user... "
grep -E "^swaggereditor:" /etc/group >/dev/null || groupadd swaggereditor
- useradd -M -g swaggereditor -s /usr/bin/nologin swaggereditor
+ useradd -m -d /etc/swagger-editor -g swaggereditor -s /usr/bin/nologin swaggereditor
echo "done"
}
}