# Contributor: Paul Onyschuk # Contributor: Natanael Copa # Maintainer: David Demelier pkgname=fossil pkgver=2.22 pkgrel=0 pkgdesc="Simple, high-reliability, distributed software configuration management" url="https://www.fossil-scm.org" arch="all" license="BSD-2-Clause" makedepends="openssl-dev>3 tcl-dev zlib-dev" checkdepends="coreutils ed tcl-lib" subpackages="$pkgname-bash-completion $pkgname-zsh-completion" source="https://www.fossil-scm.org/home/tarball/version-$pkgver/fossil-src-$pkgver.tar.gz" builddir="$srcdir/$pkgname-src-$pkgver" build() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --json \ --with-th1-docs \ --with-th1-hooks \ --with-tcl=1 \ --with-tcl-private-stubs make TCC="${CC:-gcc} $CFLAGS" } check() { export USER="${USER:-$(id -un)}" make TESTFLAGS="-verbose" test } package() { install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname" # add shell completions install -Dm644 tools/fossil-autocomplete.bash \ "$pkgdir"/usr/share/bash-completion/completions/fossil install -Dm644 tools/fossil-autocomplete.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_fossil } sha512sums=" 99a456301ae4ac72449985ff3b8b2139b805ff84e27ffe4325bad0c90643dd51c655b0210cbfa290a621e33e42e1e35b75a6cdc1beb093221d2b5d23d64591bc fossil-src-2.22.tar.gz "