db-move: moved evolution-ews from [testing] to [extra] (x86_64)
[arch-packages.git] / expect / trunk / PKGBUILD
blob87dee174d570df1172526b030f91eaa029fd47b3
1 # Maintainer:  BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
4 pkgname=expect
5 pkgver=5.45.4
6 pkgrel=4
7 pkgdesc='A tool for automating interactive applications'
8 arch=(x86_64)
9 url='https://www.nist.gov/el/msid/expect.cfm'
10 license=(custom)
11 depends=(tcl)
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')
17 prepare() {
18   cd expect${pkgver}
19   patch -Np0 -i ${srcdir}/expect-5.45-format-security.patch
22 build() {
23   cd expect${pkgver}
24   ./configure --prefix=/usr --mandir=/usr/share/man
25   make
28 check() {
29   cd expect${pkgver}
30   make test
33 package() {
34   cd expect${pkgver}
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