summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsurefire2017-02-04 19:22:04 +0300
committersurefire2017-02-04 19:22:04 +0300
commit3230be39dc8397cfd6bb5889aeb080df785a4c9b (patch)
tree066d4197945abafd3d9336b4f2efe730de002fbb /PKGBUILD
parentf142d730787439e164763a4fcbf29d38ccb23d3d (diff)
downloadaur-3230be39dc8397cfd6bb5889aeb080df785a4c9b.tar.gz
upgpkg: keeweb 1.4.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 17 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 89a1efb2d86..5cc9a38d2a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: surefire@cryptomile.net
pkgname=keeweb
-pkgver=1.3.3
-pkgrel=7
+pkgver=1.4.0
+pkgrel=1
pkgdesc="Desktop password manager compatible with KeePass databases."
arch=('any')
url="https://github.com/antelle/keeweb"
@@ -10,12 +10,11 @@ license=('MIT')
depends=('electron')
makedepends=('npm' 'asar')
optdepends=('xdotool: for auto-type')
-conflicts=("keeweb-desktop")
+conflicts=('keeweb-desktop')
source=("https://github.com/keeweb/keeweb/archive/v${pkgver}.tar.gz"
- 'keeweb'
-)
+ 'keeweb')
-sha1sums=('82916cdf893ea1d2b1d69e2fe2592deccabd57dd'
+sha1sums=('01cba0ac0a216a27b6258ac597ba7357019d150f'
'6f73285126a5d6d948712de73053957528aba0cc')
prepare() {
@@ -23,11 +22,9 @@ prepare() {
cd "${pkgname}-${pkgver}"
# remove extra dependencies
- rm npm-shrinkwrap.json
-
sed -i \
-e '/"babel-/ d' \
- -e '/"electron-prebuilt"/ d' \
+ -e '/"electron": "^/ d' \
-e '/"grunt-electron"/ d' \
-e '/"grunt-appdmg"/ d' \
-e '/"grunt-concurrent"/ d' \
@@ -36,22 +33,24 @@ prepare() {
-e '/"grunt-contrib-watch"/ d' \
-e '/"grunt-contrib-uglify"/ d' \
-e '/"grunt-eslint"/ d' \
- -e '/"eslint-/ d' \
+ -e '/"eslint/ d' \
-e '/"uglify-loader"/ d' \
+ -e '/"webpack-dev-server"/ d' \
+ -e '/"webpack"/ s/,$//' \
package.json
sed -i \
- -e '/electronVersion/ d' \
- -e "/loader: 'babel'/,+2 d" \
- -e "/'eslint',/ d" \
- -e "/'uglify',/ d" \
- -e "/loader: 'uglify'/ d" \
+ -e "/electronVersion/ d" \
+ -e "/loader: 'babel-loader'/,+2 d" \
+ -e "/loader: 'uglify-loader'/ d" \
+ -e "/'eslint',/ d" \
+ -e "/'uglify',/ d" \
Gruntfile.js
# hide electron menu
sed -i \
-e '/mainWindow = new electron\.BrowserWindow({$/ a \ autoHideMenuBar: true,' \
- electron/app.js
+ desktop/app.js
sed -i \
-e '/Exec=/ c \Exec=keeweb %u' \
@@ -61,7 +60,7 @@ prepare() {
build() {
cd "${pkgname}-${pkgver}"
- npm install
+ npm install --no-shrinkwrap
node_modules/.bin/grunt build-web-app build-desktop-app-content
asar p tmp/desktop/app ../keeweb.asar
@@ -73,7 +72,7 @@ package() {
install -Dm0644 -t "${pkgdir}/usr/lib/keeweb" ../keeweb.asar
install -Dm0755 -t "${pkgdir}/usr/bin" ../keeweb
- install -Dm0644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt
+ install -Dm0644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt LICENSES-DEPS.txt
install -Dm0644 -t "${pkgdir}/usr/share/mime/packages" package/deb/usr/share/mime/packages/keeweb.xml
install -Dm0644 -t "${pkgdir}/usr/share/applications" package/deb/usr/share/applications/keeweb.desktop