blob: 5390501f7f58c1ce848e5d33c8c28b898bbff5ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: dacoit <dacoit at tuta.io>
pkgname=tutanota
pkgver=1.9.7
pkgrel=1
pkgdesc='Tutanota end-to-end encrypted email client webapp'
url='https://tutanota.de'
arch=('any')
license=('GPL3')
makedepends=('npm' 'nodejs-gulp')
source=("https://github.com/tutao/tutanota/archive/tutanota-release-$pkgver.tar.gz")
# Set to any value to install a symlink
# from the document root to the webapp
_doc_root_symlink=y
_doc_root="/srv/http"
build() {
cd "$pkgname-$pkgname-release-$pkgver/web"
npm install
gulp dist
}
package() {
mkdir -p "$pkgdir/usr/share/webapps"
cp -a "$pkgname-$pkgname-release-$pkgver/web/build" "$pkgdir/usr/share/webapps/$pkgname"
if [ -n "$_doc_root_symlink" ]; then
mkdir -p "$pkgdir/$_doc_root"
ln -s "/usr/share/webapps/$pkgname" "$pkgdir/$_doc_root/$pkgname"
fi
}
md5sums=('8898f362c3966a723e3167e48c7fe4c7')
|