# Maintainer: Lily Tsuru _pkgname="libvdeslirp" pkgname="$_pkgname-git" pkgver=r18.3d8136c pkgrel=1 pkgdesc="libslirp for Linux made easy peasy" arch=('any') url="https://github.com/virtualsquare/$_pkgname" license=('LGPL') groups=('virtualsquare') depends=('libslirp') makedepends=('git' 'cmake') source=( "git+$url.git" ) options=(!makeflags) sha256sums=( 'SKIP' ) pkgver() { cd "$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cmake -Slibvdeslirp -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr make -C build ${MAKEFLAGS} } package() { DESTDIR="$pkgdir/" make -C build install }