diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 13 insertions, 38 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Tue May 16 14:32:32 UTC 2017 +# Sun May 21 19:03:03 UTC 2017 pkgbase = passwordsafe pkgdesc = Simple & Secure Password Management pkgver = 1.02BETA @@ -10,6 +10,9 @@ pkgbase = passwordsafe license = Artistic2.0 makedepends = zip makedepends = libxt + makedepends = git + makedepends = cmake + makedepends = gtest depends = libxtst depends = wxgtk depends = webkitgtk2 @@ -9,9 +9,9 @@ pkgdesc="Simple & Secure Password Management" arch=('i686' 'x86_64') url="https://pwsafe.org/" license=('Artistic2.0') -#to build without yubikey support, remove ykpers and uncomment NO_YUBI in build() +#to build without yubikey support, remove yubikey-personalization and uncomment NO_YUBI in build() depends=('libxtst' 'wxgtk' 'webkitgtk2' 'yubikey-personalization' 'xerces-c') -makedepends=('zip' 'libxt') +makedepends=('zip' 'libxt' 'git' 'cmake' 'gtest') optdepends=('xvkbd: virtual-keyboard support') conflicts=('passwordsafe-debian' 'passwordsafe-git' 'pwsafe' 'pwsafe-gui') source=(https://github.com/pwsafe/pwsafe/archive/$pkgver.tar.gz @@ -20,44 +20,16 @@ validpgpkeys=('C8876BE69A8EC6414C8C8729B131423D7F2F1BB9') # http://pgp.mit.edu/ sha1sums=('e2e4b31684b0eee39953cf8abbe88262932e09a8' 'SKIP') -prepare() { - cd "$_pkgname-$pkgver" -} - build() { - cd "$_pkgname-$pkgver" -# NO_YUBI=1 \ - WX_CONFIG="/usr/bin/wx-config" \ - make release help I18N + cd $_pkgname-$pkgver + mkdir -p build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release + make } 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 755 "$pkgdir"/usr/share/doc/passwordsafe/help/ - install -Dm 644 help/help*.zip "$pkgdir"/usr/share/doc/passwordsafe/help/ - - install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE - install -Dm 644 docs/pwsafe.1 "$pkgdir"/usr/share/man/man1/pwsafe.1 - - install -dm 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 + cd build + DESTDIR="$pkgdir" make install } - |