summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsurefire2016-09-26 10:39:08 +0300
committersurefire2016-09-26 10:41:15 +0300
commit956c98a45534289cb119256479f3f7279e87ff31 (patch)
tree97f5eb8f9cdbb29320a5b10cc3a280a8bcdcf2be /PKGBUILD
downloadaur-956c98a45534289cb119256479f3f7279e87ff31.tar.gz
Initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f5d2a4c89ee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: surefire@cryptomile.net
+
+pkgname=keeweb
+pkgver=1.3.3
+pkgrel=1
+pkgdesc="Desktop password manager compatible with KeePass databases."
+arch=('any')
+url="https://github.com/antelle/keeweb"
+license=('MIT')
+depends=('electron')
+makedepends=('npm' 'asar')
+conflicts=("keeweb-desktop")
+source=("https://github.com/keeweb/keeweb/archive/v${pkgver}.tar.gz"
+ 'keeweb.desktop'
+ 'keeweb'
+)
+
+sha1sums=('82916cdf893ea1d2b1d69e2fe2592deccabd57dd'
+ 'd2ac08ed22950787a7a0c074be050822ca97f74f'
+ '339d6b5ca97f0c67f71db7e5b058047e921ef6dc')
+
+prepare() {
+
+ cd "${pkgname}-${pkgver}"
+
+ # skip electron installation
+ sed -i \
+ -e '/electron-prebuild/ d' \
+ -e '/grunt-electron/ d' \
+ -e '/postinstall/ d' \
+ package.json
+
+ sed -i \
+ -e '/mainWindow = new electron\.BrowserWindow({$/ a \ autoHideMenuBar: true,' \
+ electron/app.js
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ npm install
+ node_modules/.bin/grunt
+
+ cp electron/* dist
+
+ asar p dist ../keeweb.asar
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ 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/applications" ../keeweb.desktop
+ install -Dm0644 electron/icon.png "${pkgdir}/usr/share/pixmaps/keeweb.png"
+
+}