1 # Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
7 pkgdesc='A tool for automating interactive applications'
9 url='https://www.nist.gov/el/msid/expect.cfm'
12 source=(https://downloads.sourceforge.net/project/expect/Expect/$pkgver/expect${pkgver}.tar.gz
13 expect-5.45-format-security.patch)
14 sha256sums=('49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34'
15 'b141e1a18186aaedb48ad503f34848413819f7a55789d86d04f14e8ae4cacc56')
19 patch -Np0 -i ${srcdir}/expect-5.45-format-security.patch
24 ./configure --prefix=/usr --mandir=/usr/share/man
35 make DESTDIR="$pkgdir" install
36 install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
38 # avoid file conflict with the more powerful mkpasswd from the whois package
39 mv -v "$pkgdir"/usr/bin/mkpasswd{,-expect}
40 mv -v "$pkgdir"/usr/share/man/man1/mkpasswd{,-expect}.1