[arch-commits] Commit in (5 files)

Levente Polyak anthraxx at archlinux.org
Thu Dec 10 17:38:57 UTC 2015


    Date: Thursday, December 10, 2015 @ 18:38:57
  Author: anthraxx
Revision: 152472

addpkg: keepassx2 2.0-2

Added:
  keepassx2/
  keepassx2/repos/
  keepassx2/trunk/
  keepassx2/trunk/PKGBUILD
  keepassx2/trunk/keepassx2.install

-------------------+
 PKGBUILD          |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 keepassx2.install |   13 +++++++++++++
 2 files changed, 61 insertions(+)

Added: keepassx2/trunk/PKGBUILD
===================================================================
--- keepassx2/trunk/PKGBUILD	                        (rev 0)
+++ keepassx2/trunk/PKGBUILD	2015-12-10 17:38:57 UTC (rev 152472)
@@ -0,0 +1,48 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Michael Laß <bevan at bi-co.net>
+# Contributor: Marat "Morion" Talipov <morion.self at gmail.com>
+
+pkgname=keepassx2
+pkgver=2.0
+pkgrel=2
+pkgdesc="Cross platform password manager"
+url="https://www.keepassx.org"
+arch=('i686' 'x86_64')
+license=('GPL2' 'GPL3')
+depends=('libxtst' 'qt4' 'shared-mime-info' 'xdg-utils')
+makedepends=('intltool' 'cmake' 'optipng')
+options=('!emptydirs')
+install=keepassx2.install
+source=(https://www.keepassx.org/releases/${pkgver}/keepassx-${pkgver}.tar.gz{,.sig})
+sha512sums=('6c8b8ee6a22cab5da5f262b281ed914e9cce99607312124b068a3386d9da560a3584acea4ce1be6700e40087febcc269273ab67ea472b99e6d3f75048d164788'
+            'SKIP')
+validpgpkeys=('164C70512F7929476764AB56FE22C6FD83135D45') # Felix Geyer <felix at fobos.de>
+
+prepare() {
+  cd keepassx-${pkgver}
+  mkdir build
+  sed -r 's|([kK]ee[pP]ass[xX])|\12|g' -i CMakeLists.txt share/linux/keepassx.desktop
+  sed -r 's|(keepassx)(\.desktop\|\.xml)|\12\2|g' -i share/CMakeLists.txt
+  rename 'keepassx' 'keepassx2' share/linux/keepassx.{desktop,xml}
+  find -name '*.png' -exec optipng -quiet -force -fix {} \;
+}
+
+build() {
+  cd keepassx-${pkgver}/build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DCMAKE_BUILD_TYPE=Release ..
+  make
+}
+
+check() {
+  cd keepassx-${pkgver}/build
+  make test
+}
+
+package() {
+  cd keepassx-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:

Added: keepassx2/trunk/keepassx2.install
===================================================================
--- keepassx2/trunk/keepassx2.install	                        (rev 0)
+++ keepassx2/trunk/keepassx2.install	2015-12-10 17:38:57 UTC (rev 152472)
@@ -0,0 +1,13 @@
+post_install() {
+  update-desktop-database -q
+  update-mime-database usr/share/mime &> /dev/null
+  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}



More information about the arch-commits mailing list