summaryrefslogtreecommitdiff
path: root/community/ksshaskpass/PKGBUILD
blob: 63a0198c78ab6488a5083c7009f04fa7dfc9c836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: schuay <jakob.gruber@gmail.com>

pkgname=ksshaskpass
pkgver=0.5.3
pkgrel=3
pkgdesc='KDE4 implementation of ssh-askpass with Kwallet integration'
url='http://www.kde-apps.org/content/show.php/Ksshaskpass?content=50971'
license=('GPL')
arch=('i686' 'x86_64')
depends=('kdelibs')
makedepends=('cmake' 'automoc4')
provides=('x11-ssh-askpass')
conflicts=('x11-ssh-askpass')
source=("http://www.kde-apps.org/CONTENT/content-files/50971-$pkgname-$pkgver.tar.gz"
        "$pkgname.sh")
md5sums=('05dad7745e9d92b08bd86e7ab7a9540d'
         '70396ba019ae05cc91502456f548caff')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  make
}
package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  
  # Remove useless desktop file.
  rm -rf "$pkgdir"/usr/share/applications
  
  # Documentation requires that this application is installed as /usr/bin/ssh-askpass.
  # But this way is cleaner.
  # Add script to profile.d to set ssh password agent to ksshasskpass.
  install -Dm 755 "$srcdir"/$pkgname.sh "$pkgdir"/etc/profile.d/$pkgname.sh
}