# Maintainer: Jure Varlec _pkgname=arif pkgname=arif-git pkgver=20220418 pkgrel=1 pkgdesc="ADV Realtime Image Filtering: quality filtering for lucky imaging." arch=( i686 x86_64 ) url="https://github.com/AD-Vega/${_pkgname}" license=('GPL3') depends=( qarv boost-libs ) makedepends=( git cmake boost tclap ) checkdepends=() optdepends=() provides=( ${_pkgname} ) conflicts=( ${_pkgname} ) replaces=() backup=() options=() install= changelog= source=() noextract=() md5sums=() #generate with 'makepkg -g' _gitroot="https://github.com/AD-Vega/${_pkgname}.git" _gitname="master" build() { cd "$srcdir" msg "Connecting to Git server...." if [ -d $_gitname ] ; then cd $_gitname && git pull --rebase origin msg "The local files are updated." else git clone $_gitroot $_gitname cd $_gitname git checkout $_gitname cd - fi msg "Git checkout done." msg "Starting make..." cd $srcdir [ -d build ] && rm -r build mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr/ "$srcdir/$_gitname/" make } package() { cd "$srcdir/build" make DESTDIR="$pkgdir/" install local docdest="$pkgdir/usr/share/doc/$pkgname/" mkdir -p "$docdest" cp "$srcdir/$_gitname/README" "$docdest" } # vim:set ts=2 sw=2 et: