mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# $Id: PKGBUILD 18326 2008-11-04 05:05:54Z kevin $
|
|
# Maintainer: kevin <kevin@archlinux.org>
|
|
|
|
pkgname=expectk
|
|
pkgver=5.44.1.10
|
|
pkgrel=1
|
|
pkgdesc="An X and Tk variant of expect, a tool for automating interactive applications"
|
|
arch=(i686 x86_64)
|
|
url="http://expect.nist.gov/"
|
|
depends=("expect=${pkgver}" 'tk>=8.5.0')
|
|
# CVS checkout on gerolde.
|
|
source=(ftp://ftp.archlinux.org/other/expect/expect-${pkgver}.tar.bz2)
|
|
#source=(http://expect.nist.gov/src/expect-${pkgver}.tar.bz2)
|
|
license=('custom')
|
|
|
|
build() {
|
|
# stuff to build.
|
|
BIN="expectk multixterm tknewsbiff tkpasswd xkibitz xpstat"
|
|
MAN="multixterm tknewsbiff xkibitz"
|
|
|
|
cd ${srcdir}/expect-${pkgver}
|
|
sed 's#/usr/local/bin#/usr/bin#' -i expectk.man
|
|
sed '/^PACKAGE_/ s/5\.44\.1\.9/5.44.1.10/' -i configure
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--mandir=/usr/share/man --with-tcl=/usr/lib \
|
|
--with-tclinclude=/usr/include --with-tk=/usr/lib \
|
|
--with-tkinclude=/usr/include \
|
|
|
|
# Keep ${pkgdir} out of library search paths.
|
|
sed -e 's/-rpath,${LIB_RUNTIME_DIR}:/-rpath,/' -i Makefile
|
|
# expect needed during build.
|
|
make -j1 expect ${BIN} || return 1
|
|
|
|
# install binaries and manpages.
|
|
for i in ${BIN} ; do
|
|
install -D -m755 ${i} ${pkgdir}/usr/bin/${i}
|
|
done
|
|
install -D -m644 expectk.man ${pkgdir}/usr/man/man1/expectk.1
|
|
for i in ${MAN} ; do
|
|
install -D -m644 example/${i}.man ${pkgdir}/usr/share/man/man1/${i}.1
|
|
done
|
|
|
|
# license.
|
|
install -D -m644 README ${pkgdir}/usr/share/licenses/${pkgname}/README
|
|
}
|