testing/spreed-webrtc: add check(), cleanup

This commit is contained in:
Leonardo Arena 2018-01-12 11:11:05 +00:00
parent 81039e50e1
commit 8e5146b883

View File

@ -2,14 +2,12 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=spreed-webrtc pkgname=spreed-webrtc
pkgver=0.29.7 pkgver=0.29.7
pkgrel=0 pkgrel=1
pkgdesc="WebRTC audio/video call and conferencing server" pkgdesc="WebRTC audio/video call and conferencing server"
url="http://spreed.me" url="http://spreed.me"
arch="all" arch="all"
license="AGPL-3.0" license="AGPL-3.0"
depends= makedepends="autoconf automake go go-context go-acceptlanguageparser
depends_dev=
makedepends="$depends_dev autoconf automake go go-context go-acceptlanguageparser
go-conf go-httputils go-mux go-nats go-nuid go-pkac go-phoenix go-conf go-httputils go-mux go-nats go-nuid go-pkac go-phoenix
go-securecookie go-sloth go-spreed-turnservicecli go-uuid go-websocket go-securecookie go-sloth go-spreed-turnservicecli go-uuid go-websocket
nodejs" nodejs"
@ -42,6 +40,11 @@ build() {
make GOPATH="$GOPATH $builddir:$builddir/go:$builddir/src" binaryall make GOPATH="$GOPATH $builddir:$builddir/go:$builddir/src" binaryall
} }
check() {
cd "$builddir"
make test
}
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install