Name x11-ssh-askpass
Description Lightweight passphrase dialog for SSH
Version 1.2.4.1-8
Package Base x11-ssh-askpass
Homepage http://www.jmknoble.net/software/x11-ssh-askpass/
Maintainers ['Gaetan Bisson <bisson@archlinux.org>', 'Jelle van der Waa <jelle@archlinux.org>']
Contributors ['Charles Mauch <cmauch@gmail.com>', 'Mike Sampson <mike@sambodata.com>', 'Sergej Pupykin <pupykin.s+arch@gmail.com>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/x11-ssh-askpass
Sources ['https://pkgs.fedoraproject.org/repo/pkgs/openssh/x11-ssh-askpass-1.2.4.1.tar.gz/8f2e41f3f7eaa8543a2440454637f3c3/x11-ssh-askpass-1.2.4.1.tar.gz']
Dependencies ['libxt']
Optional-Dependencies []
Build-Dependencies ['imake']
Provides []
Builddate 06-07-2024 21:44:47
Architecture x86_64
Distro-Version
Licenses ['custom']
Hash 83312fef4d2c7ae61a175155d1435be1372995fc982af408f3c61fea9f7c994b
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Mike Sampson <mike at sambodata dot com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Charles Mauch <cmauch@gmail.com>

pkgname=x11-ssh-askpass
pkgver=1.2.4.1
pkgrel=8
pkgdesc='Lightweight passphrase dialog for SSH'
url='http://www.jmknoble.net/software/x11-ssh-askpass/'
license=('custom')
arch=('x86_64')
depends=('libxt')
makedepends=('imake')
#source=("${url}${pkgname}-${pkgver}.tar.gz" # httpd only sends half the bits
source=("https://pkgs.fedoraproject.org/repo/pkgs/openssh/x11-ssh-askpass-1.2.4.1.tar.gz/8f2e41f3f7eaa8543a2440454637f3c3/x11-ssh-askpass-1.2.4.1.tar.gz")
sha256sums=('620de3c32ae72185a2c9aeaec03af24242b9621964e38eb625afb6cdb30b8c88')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure \
		--mandir=/usr/share/man \
		--libexecdir=/usr/lib/ssh \
		--with-app-defaults-dir=/usr/share/X11/app-defaults \

	xmkmf
	make includes
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install install.man
	install -d "${pkgdir}/usr/share/licenses/${pkgname}"
	sed '109,174p;d' README > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}