summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiacomo Longo2017-02-01 21:06:53 +0100
committerGiacomo Longo2017-02-01 21:06:53 +0100
commit250369cd9ee1484a2c41e9a58bb02171e92870df (patch)
tree509a73ba329904a69b57ba6e258b131a953744a7
downloadaur-250369cd9ee1484a2c41e9a58bb02171e92870df.tar.gz
Development branch version, leveraging Electron
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD59
-rw-r--r--kdbx.xml7
-rw-r--r--keeweb.desktop12
4 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..53017eca518
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = keeweb-devel
+ pkgdesc = Desktop password manager compatible with KeePass databases.
+ pkgver = v1.3.3.r80.gab46c0d
+ pkgrel = 1
+ url = https://github.com/keeweb/keeweb
+ arch = any
+ license = MIT
+ makedepends = nodejs-grunt
+ makedepends = npm
+ makedepends = sed
+ depends = electron
+ depends = xdg-utils
+ depends = sh
+ provides = keeweb
+ conflicts = keeweb
+ source = git+https://github.com/keeweb/keeweb.git#branch=develop
+ source = kdbx.xml
+ source = keeweb.desktop
+ sha512sums = SKIP
+ sha512sums = beb2de28654be6c2cb234d8ab5b983e19c25512b4814ab486785f26fe5d3609dd42acee21582f5bc54f2e0fefa676a1af833164c1b7939b83fd62923686b7665
+ sha512sums = a2fcc7a18a73a024b912eb0c496f948c82fa5d7ea06c2e5a855b1bd84dcfbe2eb0152f70fe1c9c6ed725cd88dc89cca59a55e8e5657bc94f61bca6db9fc228ee
+
+pkgname = keeweb-devel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3baa1a09ac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: gabibbo97 <gabibbo97@gmail.com>
+
+pkgname=keeweb-devel
+_pkgname=keeweb
+pkgver=v1.3.3.r80.gab46c0d
+pkgrel=1
+pkgdesc="Desktop password manager compatible with KeePass databases."
+arch=('any')
+url="https://github.com/keeweb/keeweb"
+license=('MIT')
+depends=('electron' 'xdg-utils' 'sh')
+makedepends=('nodejs-grunt' 'npm' 'sed')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=('git+https://github.com/keeweb/keeweb.git#branch=develop'
+ 'kdbx.xml'
+ 'keeweb.desktop')
+sha512sums=('SKIP'
+ 'beb2de28654be6c2cb234d8ab5b983e19c25512b4814ab486785f26fe5d3609dd42acee21582f5bc54f2e0fefa676a1af833164c1b7939b83fd62923686b7665'
+ 'a2fcc7a18a73a024b912eb0c496f948c82fa5d7ea06c2e5a855b1bd84dcfbe2eb0152f70fe1c9c6ed725cd88dc89cca59a55e8e5657bc94f61bca6db9fc228ee')
+
+_desktop="${_pkgname}.desktop"
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${_pkgname}"
+ npm install
+}
+
+build() {
+ cd "${_pkgname}"
+ grunt --force
+}
+
+package() {
+ # Desktop icon
+ desktop-file-install -m 644 --dir "${pkgdir}"/usr/share/applications/ keeweb.desktop
+ # MIME type
+ install -Dm644 kdbx.xml "$pkgdir"/usr/share/mime/packages/kdbx.xml
+ for res in 128x128; do
+ # Directory
+ install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
+ # Get the icon from the upstream repository
+ install -Dm755 "${srcdir}/${_pkgname}/graphics/${res}.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/keeweb.png"
+ done
+ # Create and copy the program
+ mkdir -p "${pkgdir}"/opt/${_pkgname}
+ cp "${srcdir}/${_pkgname}/dist/index.html" "${pkgdir}"/opt/${_pkgname}
+
+ # Create the execution script
+ mkdir -p "${pkgdir}"/usr/bin/
+ echo -e "#!/bin/sh\nelectron /opt/${_pkgname}/index.html --disable-updater \$1" > "${pkgdir}"/usr/bin/KeeWeb
+ chmod 755 ${pkgdir}/usr/bin/KeeWeb
+}
+
diff --git a/kdbx.xml b/kdbx.xml
new file mode 100644
index 00000000000..75954c2fe6b
--- /dev/null
+++ b/kdbx.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-keepass2">
+ <comment>KeePass database</comment>
+ <glob pattern="*.kdbx"/>
+ </mime-type>
+</mime-info> \ No newline at end of file
diff --git a/keeweb.desktop b/keeweb.desktop
new file mode 100644
index 00000000000..f37db17a4eb
--- /dev/null
+++ b/keeweb.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+Name=KeeWeb Password Safe
+GenericName=Keepass2-compatible cross-platform password manager
+Comment=A web port of the free, open source, light-weight and easy-to-use password manager
+Exec=KeeWeb %U
+Icon=keeweb
+MimeType=application/x-keepass2;
+Terminal=false
+StartupNotify=false
+Categories=Utility;
+StartupWMClass=KeeWeb \ No newline at end of file