aboutsummaryrefslogtreecommitdiffstats
path: root/community/tclx/APKBUILD
blob: f8ef28b0060992243b5f834c7aabb4c1b7cf25f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Shannon Noe <snoe925@gmail.com>
# Maintainer: Shannon Noe <snoe925@gmail.com>
pkgname=tclx
pkgver=8.4.1
pkgrel=0
pkgdesc="TclX extension to Tcl"
url="http://tclx.sourceforge.net/"
arch="all"
license="BSD"
depends="tcl"
depends_dev="tcl-dev"
makedepends="tcl-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/project/tclx/TclX/$pkgver/$pkgname$pkgver.tar.bz2"

_major=${pkgver%.*}
builddir="$srcdir"/tclx${_major}

build() {
	local _64bit="--disable-64bit"
	case "$CARCH" in
	x86_64) _64bit="--enable-64bit";;
	esac
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-tcl=/usr/lib \
		$_64bit \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="${pkgdir}" install || return 1
}

md5sums="ac983708f23cf645c07058148f48440c  tclx8.4.1.tar.bz2"
sha256sums="a9b41f606ec6c1268b9c78512e6e1cb533bd9ae3e786e650d111fc16ffe758ec  tclx8.4.1.tar.bz2"
sha512sums="faad58f5d8e0e1e759da639800f354b583fb01418c94f2274924aa07beb0ee9559beb87b3386ed5ae3694700a71dfe5b8ac54ead0ec75c6963507e9d3ead7060  tclx8.4.1.tar.bz2"