1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pkgname=ssh-askpass-fullscreen
pkgver=1.0
pkgrel=1
pkgdesc="A small SSH Askpass replacement written with GTK2"
url="http://github.com/atj/ssh-askpass-fullscreen"
arch=(i686 x86_64)
license=('GPL')
conflicts=('x11-ssh-askpass')
depends=('gtk2' 'openssh')
makedepends=('pkg-config')
source=(https://github.com/downloads/atj/$pkgname/$pkgname-$pkgver.tar.bz2
        ssh-askpass-fullscreen.sh)
md5sums=('368406f2c001a272e844230f2dcd4018'
         '1f653619805275a8348c55bdb978d514')
build() {
    cd $pkgname-$pkgver/src
    gcc -o ssh-askpass-fullscreen ssh-askpass-fullscreen.c `pkg-config --libs --cflags gtk+-2.0 x11`
}
package() {
    mkdir -p $pkgdir/usr/lib/openssh
    install -m755 $pkgname-$pkgver/src/ssh-askpass-fullscreen $pkgdir/usr/lib/openssh/
    mkdir -p $pkgdir/etc/profile.d
    install -m755 ssh-askpass-fullscreen.sh $pkgdir/etc/profile.d/
}