void-packages/srcpkgs/gnome-ssh-askpass/template

27 lines
794 B
Bash

# Template file for 'gnome-ssh-askpass'
pkgname=gnome-ssh-askpass
version=7.6p1
revision=1
wrksrc="openssh-${version}"
hostmakedepends="pkg-config"
makedepends="gtk+-devel"
short_desc="GTK SSH passphrase grabber (from OpenSSH)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.openssh.org"
distfiles="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz"
checksum=a323caeeddfe145baaa0db16e98d784b1fbc7dd436a6bf1f479dfd5cd1d21723
alternatives="
ssh-askpass:/usr/libexec/ssh-askpass:/usr/bin/gnome-ssh-askpass
"
do_build() {
cd contrib
${CC} ${CFLAGS} $(pkg-config --cflags gtk+-2.0) ${pkgname}2.c -o ${pkgname} $(pkg-config --libs gtk+-2.0) ${LDFLAGS} -lX11
}
do_install() {
vbin contrib/${pkgname}
vlicense LICENCE
}