aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openssh-askpass/APKBUILD
blob: 7ce2373a43d59c81e8c52cd7718d61a3f75e3913 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openssh-askpass
pkgver=7.6_p1
_myver=${pkgver%_*}${pkgver#*_}
pkgrel=0
pkgdesc="A passphrase dialog for OpenSSH and GTK"
url="http://www.openssh.org/portable.html"
arch="all"
license="AS-IS"
depends="openssh-client"
options="!check"
makedepends="gtk+2.0-dev"
subpackages=""
source="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$_myver.tar.gz"
builddir="$srcdir"/openssh-$_myver/contrib

build () {
	cd "$builddir"
	make gnome-ssh-askpass2
}

package() {
	cd "$builddir"
	install -Dm755 gnome-ssh-askpass2 "$pkgdir"/usr/lib/ssh/gtk-ssh-askpass
	install -d "$pkgdir"/etc/profile.d
	cat > "$pkgdir"/etc/profile.d/openssh-askpass.sh <<- EOF
	SSH_ASKPASS=/usr/lib/ssh/gtk-ssh-askpass
	export SSH_ASKPASS
	EOF
	chmod +x "$pkgdir"/etc/profile.d/openssh-askpass.sh
}

sha512sums="de17fdcb8239401f76740c8d689a8761802f6df94e68d953f3c70b9f4f8bdb403617c48c1d01cc8c368d88e9d50aee540bf03d5a36687dfb39dfd28d73029d72  openssh-7.6p1.tar.gz"