# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=tk-lib
pkgver=0.7
pkgrel=0
pkgdesc="Tk standard library"
url="https://core.tcl-lang.org/tklib"
arch="noarch"
license="TCL"
depends="tk"
makedepends="tcl"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://core.tcl-lang.org/tklib/attachdownload/tklib-$pkgver.tar.bz2?page=Downloads&file=tklib-$pkgver.tar.bz2"
builddir="$srcdir/tklib-$pkgver"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0322611c1dea8eebebe3f8f15ec33b695b074329ce9602aeb93d04985f486237f3ce89f1c42a5c148e12ae00b51be8c889c7db77977a0cc4204ac5eaad2cfec2  tk-lib-0.7.tar.bz2
"
