summaryrefslogtreecommitdiff
path: root/extra/expect/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/expect/PKGBUILD')
-rw-r--r--extra/expect/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/expect/PKGBUILD b/extra/expect/PKGBUILD
new file mode 100644
index 000000000..3b630ba43
--- /dev/null
+++ b/extra/expect/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 104372 2011-01-01 23:52:17Z kevin $
+# Maintainer: kevin <kevin@archlinux.org>
+
+pkgname=expect
+pkgver=5.45
+pkgrel=1
+pkgdesc="A tool for automating interactive applications"
+arch=(i686 x86_64)
+url="http://www.nist.gov/el/msid/expect.cfm"
+license=('custom')
+depends=('tcl>=8.5.3')
+conflicts=('expectk')
+install=expect.install
+changelog=ChangeLog
+source=(http://downloads.sourceforge.net/project/expect/Expect/${pkgver}/expect${pkgver}.tar.gz)
+# CVS checkout on gerolde.
+#source=(ftp://ftp.archlinux.org/other/expect/expect-${pkgver}.tar.bz2)
+# old nist source=(http://expect.nist.gov/src/expect-${pkgver}.tar.bz2)
+md5sums=('44e1a4f4c877e9ddc5a542dfa7ecc92b')
+
+build() {
+ cd ${srcdir}/expect${pkgver}
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --mandir=/usr/share/man --with-tcl=/usr/lib \
+ --with-tclinclude=/usr/include
+
+ # Keep $startdir/pkg out of library search paths.
+ sed -e 's/-rpath,${LIB_RUNTIME_DIR}:/-rpath,/' -i Makefile
+ make
+ make DESTDIR=${pkgdir} install
+
+ # license.
+ install -D -m644 README ${pkgdir}/usr/share/licenses/${pkgname}/README
+
+ (cd ${pkgdir}/usr/lib;
+ ln -s expect${pkgver}/libexpect${pkgver}.so libexpect.so)
+}