wok-undigest annotate cryptpad/receipt @ rev 1227
copied perl recipe from wok-next
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 15 17:49:31 2019 +0100 (2019-11-15) |
parents | 828875cd6511 |
children |
rev | line source |
---|---|
pascal@1210 | 1 # SliTaz package receipt. |
pascal@1210 | 2 |
pascal@1210 | 3 PACKAGE="cryptpad" |
pascal@1210 | 4 VERSION="0.3.0" |
pascal@1210 | 5 CATEGORY="network" |
pascal@1210 | 6 SHORT_DESC="CryptPad is the zero knowledge realtime collaborative editor." |
pascal@1210 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1210 | 8 LICENSE="AGPL3" |
pascal@1210 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1210 | 10 WEB_SITE="https://cryptpad.fr/" |
pascal@1210 | 11 WGET_URL="https://github.com/xwiki-labs/cryptpad/archive/$VERSION.tar.gz" |
pascal@1210 | 12 CONFIG_FILES="/etc/cryptpad/config.js" |
pascal@1210 | 13 |
pascal@1210 | 14 DEPENDS="node" |
pascal@1211 | 15 BUILD_DEPENDS="wget" |
pascal@1210 | 16 |
pascal@1210 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1210 | 18 genpkg_rules() |
pascal@1210 | 19 { |
pascal@1210 | 20 mkdir -p $fs/usr/lib/node_modules $fs/etc/cryptpad |
pascal@1210 | 21 cp -a $src $fs/usr/lib/node_modules/cryptpad |
pascal@1210 | 22 cp $src/config.js.dist $fs/etc/cryptpad/config.js |
pascal@1210 | 23 ln -s /etc/cryptpad/config.js $fs/usr/lib/node_modules/cryptpad/ |
pascal@1210 | 24 } |
pascal@1210 | 25 |
pascal@1210 | 26 post_install() |
pascal@1210 | 27 { |
pascal@1210 | 28 chroot $1/ /bin/sh <<EOT |
pascal@1210 | 29 cd /usr/lib/node_modules/cryptpad |
pascal@1210 | 30 npm install |
pascal@1210 | 31 #npm install -g bower |
pascal@1210 | 32 #bower install |
pascal@1210 | 33 #node ./server.js |
pascal@1210 | 34 EOT |
pascal@1210 | 35 } |