summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schnaidt2015-06-08 15:55:48 +0200
committerAlexander Schnaidt2015-06-08 15:55:48 +0200
commit87b5a271ddb08c84478ac698cf000bae200bfa07 (patch)
treef71806639a23700b9682fe491beab8660163ddae
downloadaur-87b5a271ddb08c84478ac698cf000bae200bfa07.tar.gz
init
-rw-r--r--.SRCINFO30
-rw-r--r--0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch26
-rw-r--r--PKGBUILD65
-rw-r--r--passwordsafe.install12
4 files changed, 133 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a1e22e08d5a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = passwordsafe
+ pkgdesc = Simple & Secure Password Management
+ pkgver = 0.95.1BETA
+ pkgrel = 3
+ url = http://sourceforge.net/projects/passwordsafe/
+ install = passwordsafe.install
+ arch = i686
+ arch = x86_64
+ license = Artistic2.0
+ makedepends = git
+ makedepends = zip
+ makedepends = libxt
+ depends = libxtst
+ depends = wxgtk
+ depends = webkitgtk2
+ depends = ykpers
+ depends = xerces-c
+ optdepends = xvkbd: virtual-keyboard support
+ conflicts = passwordsafe-debian
+ conflicts = passwordsafe-git
+ conflicts = pwsafe
+ source = http://downloads.sourceforge.net/project/passwordsafe/Linux-BETA/0.95.1/pwsafe-0.95.1BETA-src.tgz
+ source = http://downloads.sourceforge.net/project/passwordsafe/Linux-BETA/0.95.1/pwsafe-0.95.1BETA-src.tgz.sig
+ source = 0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch
+ md5sums = e3e3429d08789b6bde6270d1e6a91608
+ md5sums = SKIP
+ md5sums = 2f8e962b4437f72c88493ede8cf6fcf5
+
+pkgname = passwordsafe
+
diff --git a/0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch b/0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch
new file mode 100644
index 00000000000..feaa3f7a075
--- /dev/null
+++ b/0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch
@@ -0,0 +1,26 @@
+From f158a3cf478b9adb18c07f3f2b322785ec3afb82 Mon Sep 17 00:00:00 2001
+From: ronys <ronys@users.sourceforge.net>
+Date: Sat, 14 Mar 2015 20:53:11 +0200
+Subject: [PATCH] Fix for Fedora 22, applicable to all Linux builds
+
+From Jan Henning
+---
+ src/os/linux/rand.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/os/linux/rand.cpp b/src/os/linux/rand.cpp
+index 068bf70..9fd726d 100644
+--- a/src/os/linux/rand.cpp
++++ b/src/os/linux/rand.cpp
+@@ -35,7 +35,7 @@ bool pws_os::GetRandomData(void *p, unsigned long len)
+ ifstream is("/dev/urandom");
+ if (!is)
+ return false;
+- return is.read(static_cast<char *>(p), len);
++ return is.read(static_cast<char *>(p), len).good();
+ }
+
+ static void get_failsafe_rnd(char * &p, unsigned &slen)
+--
+2.4.2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0f485564ca6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Alexander Schnaidt <alex.schnaidt@gmail.com>
+
+_pkgname=pwsafe
+pkgname=passwordsafe
+_pkgver=0.95.1
+pkgver="$_pkgver"BETA
+pkgrel=3
+pkgdesc="Simple & Secure Password Management"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/passwordsafe/"
+license=('Artistic2.0')
+#to build without yubikey support, remove ykpers and uncomment NO_YUBI in build()
+depends=('libxtst' 'wxgtk' 'webkitgtk2' 'ykpers' 'xerces-c')
+makedepends=('git' 'zip' 'libxt')
+optdepends=('xvkbd: virtual-keyboard support')
+conflicts=('passwordsafe-debian' 'passwordsafe-git' 'pwsafe')
+source=(http://downloads.sourceforge.net/project/$pkgname/Linux-BETA/$_pkgver/$_pkgname-$pkgver-src.tgz{,.sig}
+ 0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch)
+
+install='passwordsafe.install'
+validpgpkeys=('A703C1328EABC7B201753BA3919464515CCF8BB3') #Rony Shapiro
+md5sums=('e3e3429d08789b6bde6270d1e6a91608'
+ 'SKIP'
+ '2f8e962b4437f72c88493ede8cf6fcf5')
+
+prepare() {
+ cd "$_pkgname-$pkgver"
+ patch -p1 -i ../0001-Fix-for-Fedora-22-applicable-to-all-Linux-builds.patch
+}
+
+build() {
+ cd "$_pkgname-$pkgver"
+# NO_YUBI=1 \
+ WX_CONFIG="/usr/bin/wx-config" \
+ make release help I18N
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+
+ install -Dm 755 src/ui/wxWidgets/GCCUnicodeRelease/pwsafe \
+ "$pkgdir"/usr/bin/pwsafe
+ install -Dm 644 install/desktop/fedora-pwsafe.desktop \
+ "$pkgdir"/usr/share/applications/pwsafe.desktop
+ install -Dm 644 install/graphics/pwsafe.png \
+ "$pkgdir"/usr/share/icons/hicolor/48x48/apps/pwsafe.png
+
+ for doc in README.txt docs/ReleaseNotes.txt docs/ChangeLog.txt install/copyright; do
+ install -Dm 644 "$doc" "$pkgdir"/usr/share/doc/passwordsafe/"$doc"
+ done
+
+ install -Dm 644 help/helpEN.zip "$pkgdir"/usr/share/doc/passwordsafe/help/helpEN.zip
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+ install -Dm 644 docs/pwsafe.1 "$pkgdir"/usr/share/man/man1/pwsafe.1
+
+ install -d 755 "$pkgdir"/usr/share/pwsafe/xml
+ install -m 644 xml/* "$pkgdir"/usr/share/pwsafe/xml
+
+ cd src/ui/wxWidgets/I18N/mos/
+ for lang in *; do
+ install -Dm 644 "$lang"/LC_MESSAGES/pwsafe.mo \
+ "$pkgdir"/usr/share/locale/"$lang"/LC_MESSAGES/pwsafe.mo
+ done
+}
+
diff --git a/passwordsafe.install b/passwordsafe.install
new file mode 100644
index 00000000000..408bfe8ffc7
--- /dev/null
+++ b/passwordsafe.install
@@ -0,0 +1,12 @@
+post_install() {
+ if [[ -x /usr/bin/gtk-update-icon-cache ]]; then
+ gtk-update-icon-cache /usr/share/icons/hicolor -q
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+post_remove() {
+ post_install
+}