diff options
author | emersion | 2018-07-29 22:40:18 +0100 |
---|---|---|
committer | emersion | 2018-07-29 22:40:18 +0100 |
commit | a240d487b3b3554912654f18c1c83c59f15359ff (patch) | |
tree | 2e8c7f0920d38795ba1f4bac0fd01b73e98cf1a5 | |
download | aur-a240d487b3b3554912654f18c1c83c59f15359ff.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..683f2b5dec26 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = protonmail-web-git + pkgdesc = Official AngularJS web client for the ProtonMail secure email service + pkgver = r4782.81406ede + pkgrel = 1 + url = https://github.com/ProtonMail/WebClient + arch = any + license = MIT + makedepends = npm + provides = protonmail-web + conflicts = protonmail-web + source = protonmail-web::git+https://github.com/ProtonMail/WebClient.git + sha1sums = SKIP + +pkgname = protonmail-web-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b32338c46b86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: emersion <contact emersion fr> +pkgname=protonmail-web-git +_pkgname=protonmail-web +pkgver=r4782.81406ede +pkgrel=1 +license=('MIT') +pkgdesc='Official AngularJS web client for the ProtonMail secure email service' +makedepends=("npm") +arch=("any") +url='https://github.com/ProtonMail/WebClient' +source=("${pkgname%-*}::git+https://github.com/ProtonMail/WebClient.git") +sha1sums=('SKIP') +provides=('protonmail-web') +conflicts=('protonmail-web') + +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${_pkgname}" + npm install + npm run build --api=prod +} + +package() { + cd "${srcdir}/${_pkgname}" + install -dm755 "${pkgdir}/usr/share/webapps/${_pkgname}" + cp -rL build/* "${pkgdir}/usr/share/webapps/${_pkgname}" +} |