APKBUILD 1.05 KB
Newer Older
1 2
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
3
pkgname=expect
4 5
pkgver=5.45.4
pkgrel=0
6 7 8 9
pkgdesc="A tool for automating interactive applications"
url="http://www.nist.gov/el/msid/expect.cfm"
arch="all"
license="custom"
10
makedepends="tcl-dev"
11
subpackages="$pkgname-dev $pkgname-doc"
12
source="https://downloads.sourceforge.net/project/expect/Expect/$pkgver/$pkgname$pkgver.tar.gz"
13 14
builddir="$srcdir"/$pkgname$pkgver

15
prepare() {
16 17 18
	default_prepare
	cd "$builddir"
	update_config_sub
19 20
}

21
build() {
22
	cd "$builddir"
23 24 25 26
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
27 28 29 30 31
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--with-tcl=/usr/lib \
		--with-tclinclude=/usr/include \
32 33
		--disable-rpath
	make
34
}
35 36 37 38 39 40

check() {
	cd "$builddir"
	make test
}

41
package() {
42 43
	cd "$builddir"
	make DESTDIR="$pkgdir" install
44 45
}

46
sha512sums="a8dc25e8175f67e029e15cbcfca1705165c1c4cb2dd37eaaaebffb61e3ba132d9519cd73ca5add4c3358a2b0b7a91e878279e8d0b72143ff2c287fce07e4659a  expect5.45.4.tar.gz"