aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libdvdcss/APKBUILD
blob: fcf43b45ec7c7227243d6f3c2c3f9954ff33d3cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvdcss
pkgver=1.2.13
pkgrel=0
pkgdesc="A library to access (encrypted) DVDs like a block device"
url="http://www.videolan.org/developers/libdvdcss.html"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://www.videolan.org/pub/libdvdcss/$pkgver/$pkgname-$pkgver.tar.bz2"

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

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

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

md5sums="53cfc52a60a156763c425572e5179273  libdvdcss-1.2.13.tar.bz2"
sha256sums="84f1bba6cfef1df87f774fceaefc8e73c4cda32e8f6700b224ad0acb5511ba2c  libdvdcss-1.2.13.tar.bz2"
sha512sums="b7d912ef87854bca052c2f38709d49eeb72be9148b6598a7f71f9ccb1ad7f43a521f9533821fbd8d7ef16e2c36fe140209c9183f5ca91e8f806150cc16645717  libdvdcss-1.2.13.tar.bz2"