blob: 92fcf4ba20340106a6fe682f5b15ac8d54d945ac (
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
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: YUP <yupadmin[at]gmail,com[dot]com>
pkgname=vdr-sc
pkgver=r9.75b4379
_vdrapi=2.4.0
_gitver=75b4379e4fa3f6fa1f6908591be8e9bbb44dd990
pkgrel=3
pkgdesc="Software CAM emulation. If compilation fails
with FAILED COMPARISON OF PACKET please check README.FFdecsa
and set appropiate PARALLEL parameter in Makefile.patch"
url="https://github.com/3PO/vdr-plugin-sc"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('libdvbcsa' 'openssl' "vdr>=2.4.0" "vdr-api=${_vdrapi}")
makedepends=('git')
_plugname=$(echo $pkgname | sed 's/vdr-//g')
source=("$pkgname::git+http://github.com/3PO/vdr-plugin-sc.git#commit=${_gitver}"
"ftp://ftp.tvdr.de/vdr/vdr-$_vdrapi.tar.bz2"
"20-$_plugname.conf")
backup=("etc/vdr/conf.avail/20-$_plugname.conf")
pkgver() {
cd "$srcdir/$pkgname"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD).$pkgrel"
}
prepare() {
rm -rf "$srcdir/$pkgname-build"
cp -r "$srcdir/$pkgname" "$srcdir/$pkgname-build"
cd "$srcdir/$pkgname-build"
patch -p1 -i "$srcdir/../Makefile.patch"
sed -i 's/MAXDVBDEVICES/MAXDEVICES/g' device.c
}
package() {
cd "$srcdir/$pkgname-build"
mkdir -p "$pkgdir/usr/lib/vdr/plugins"
make CFLAGS="$(pkg-config vdr --variable=cflags)" \
CXXFLAGS="$(pkg-config vdr --variable=cxxflags) -I/usr/include/openssl-1.0 -std=c++0x -Wno-narrowing"\
LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0 -lcrypto -lcrypt" \
VDRDIR="$(pkg-config vdr --variable=pcfiledir)" \
LIBDIR="$pkgdir/$(pkg-config vdr --variable=libdir)" \
LOCDIR="$pkgdir/$(pkg-config vdr --variable=locdir)" \
MAXCAID=64 \
LIBDVBCSA=1
echo "pkgdir $pkgdir"
make DESTDIR=${pkgdir} install
install -Dm644 "$srcdir/20-${_plugname}.conf" "$pkgdir/etc/vdr/conf.avail/20-$_plugname.conf"
}
md5sums=('SKIP'
'12c6a3abeadfa915fcfe736bb047a3ab'
'397dfba03003ba28c5f95d0855497d78')
|