APKBUILD 888 Bytes
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1
# Contributor: Carlo Landmeter 
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
3
pkgname=libmms
4
pkgver=0.6.2
5
pkgrel=1
Carlo Landmeter's avatar
Carlo Landmeter committed
6 7
pkgdesc="MMS stream protocol library"
url="http://sourceforge.net/projects/libmms/"
8
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
9 10 11 12 13 14 15 16 17 18 19 20
license="LGPL"
depends=
makedepends="pkgconfig glib-dev"
install=
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
"

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

prepare() {
	cd "$_builddir"
21
	update_config_sub || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
22 23 24 25
}

build() {
	cd "$_builddir"
26 27 28 29
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Carlo Landmeter's avatar
Carlo Landmeter committed
30 31 32
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
33 34
		--disable-static \
		|| return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
35 36 37 38 39
	make || return 1
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
40 41
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
Carlo Landmeter's avatar
Carlo Landmeter committed
42 43
}

44
md5sums="9f63aa363deb4874e072a45850161bff  libmms-0.6.2.tar.gz"