aboutsummaryrefslogblamecommitdiffstats
path: root/main/libdvbcsa/APKBUILD
blob: c2b20dea082d50d1ca99539eb3a0bdd2181ffed2 (plain) (tree)



















                                                                                             
                                     








                                                                        



                                 










                                                  

 
                                                                                                                                                                     
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libdvbcsa
pkgver=1.1.0
pkgrel=0
pkgdesc="a free implementation of the DVB Common Scrambling Algorithm"
url="http://www.videolan.org/developers/libdvbcsa.html"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://download.videolan.org/pub/videolan/libdvbcsa/$pkgver/libdvbcsa-$pkgver.tar.gz"

_builddir="$srcdir"/libdvbcsa-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

sha512sums="f336bc90711261bb86bb42f897d5207a71da5a384bfb7d641de7e1fb3a43d20aeec250e9a5ceaf0b20f1e4335ccda70055675256c6889873bf1bfff55005a015  libdvbcsa-1.1.0.tar.gz"