# Maintainer: Jiachen YANG _pkgname=zograscope pkgname=$_pkgname-git pkgver=r1089.aae6264 pkgrel=1 pkgdesc="syntax-aware diff that also provides a number of additional tools (zs-diff, zs-find, zs-gdiff, zs-hi, zs-stats)" arch=(x86_64) url="https://github.com/xaizek/zograscope" license=('AGPL') depends=('qt5-base' 'libgit2' 'boost-libs' 'ncurses') makedepends=('git' 'boost' 'srcml' 'bison') optdepends=('srcml: srcML related diff features') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("zograscope::git+$url.git" "cursed::git+https://code.reversed.top/user/xaizek/libcursed" "vle::git+https://code.reversed.top/user/xaizek/libvle") md5sums=('SKIP' 'SKIP' 'SKIP') # Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for # a description of each element in the source array. pkgver() { cd "$srcdir/${_pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "$srcdir/${_pkgname}" git submodule init git config submodule.tools.tui.libs.vle "${srcdir}/vle" git config submodule.tools.tui.libs.cursed "${srcdir}/cursed" git submodule update echo 'QT5_PROG := qmake-qt5' >> config.mk echo 'HAVE_LIBGIT2 := yes' >> config.mk echo 'HAVE_CURSESW := yes' >> config.mk } build() { cd "$srcdir/${_pkgname}" make release } check() { cd "$srcdir/${_pkgname}" make check } package() { cd "$srcdir/${_pkgname}" make DESTDIR="$pkgdir/" install }