aur/net/vde2/libvdeplug-slirp-git/PKGBUILD

37 lines
773 B
Bash

# Maintainer: Lily Tsuru <lily.modeco80@protonmail.ch>
_gitname="vdeplug_slirp"
_pkgname="libvdeplug-slirp"
pkgname="$_pkgname-git"
pkgver=r12.c096db8
pkgrel=1
pkgdesc="vdeplug4 plugin to join slirp networks (using libvdeslirp)"
arch=('any')
url="https://github.com/virtualsquare/vdeplug_slirp"
license=('LGPL')
groups=('virtualsquare')
depends=('libvdeslirp-git' 'vdeplug4')
makedepends=('git' 'cmake')
source=(
"git+$url.git"
)
options=(!makeflags)
sha256sums=(
'SKIP'
)
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -S$_gitname -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make -C build ${MAKEFLAGS}
}
package() {
DESTDIR="$pkgdir/" make -C build install
}