aboutsummaryrefslogblamecommitdiffstats
path: root/testing/gst-rtsp-server/APKBUILD
blob: b04932aa26ad703940fd55318deb43c561eacaf9 (plain) (tree)




















































                                                                                                           
# Contributor: Andrew Panteleyev <insonifi@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-rtsp-server
pkgver=1.8.2
pkgrel=0
pkgdesc="GStreamer RTSP server"
url="http://gstreamer.freedesktop.org/"
arch="all"
license="LGPL"
depends=""
depends_dev="gst-plugins-base1-dev"
makedepends="$depends_dev gstreamer1-dev"
subpackages="$pkgname-dev"
install=""
source="http://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$pkgver.tar.xz"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection=no \
		--with-package-name="GStreamer (Alpine Linux)" \
		--with-package-origin="http://alpinelinux.org/" \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha256sums="7d414cd4302ae253821dcb22d483fadc9d21cf96b5fd4c0a33fd41960f8e0459  gst-rtsp-server-1.8.2.tar.xz"