# Maintainer : praticamentetilde _name=libmshconsole _branch=master pkgname=libmshconsole pkgver=0.40f2b2e pkgrel=1 pkgdesc='Library that provides a bash-like interface for CLI C++ programs' url='https://github.com/praticamentetilde/msh-console.git' arch=('any') license=('custom:unlicense') depends=() makedepends=('git' 'gcc' 'cmake') optdepends=() headers=('commandexecutor.h' 'command.h' 'shell.h' 'stringtoargcargv.h') provides=() conflicts=() pkgver() { DATE='0' HASH=$(git ls-remote -h $url $_branch | cut -c1-7) echo $DATE.$HASH } source=("$pkgname-$(pkgver).zip::https://github.com/praticamentetilde/msh-console/archive/$_branch.zip") sha512sums=(SKIP) #prepare() {} package() { cd msh-console-$_branch/library cmake CMakeLists.txt make mkdir -p "$pkgdir"/usr/include/mshconsole chmod 0755 "$pkgdir"/usr/include/mshconsole mv libmshconsole.so libmshconsole.so.1 install -D -m644 libmshconsole.so.1 "$pkgdir"/usr/lib/libmshconsole.so.1 ln -s "$pkgdir"/usr/lib/libmshconsole.so.1 "$pkgdir"/usr/lib/libmshconsole.so for i in "${headers[@]}" do install -D -m644 $i "$pkgdir"/usr/include/mshconsole/"$i" done }