blob: b518b9c451955ddc49c11ac3ca3de8c011bcc281 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xbmc-pvr-addons
_date=20121129
pkgver="$_date"
pkgrel=0
pkgdesc="XBMC PVR add-ons"
url="https://github.com/opdenkamp/xbmc-pvr-addons"
arch="all"
license="GPL"
depends="xbmc-pvr-hts xbmc-pvr-argustv xbmc-pvr-demo xbmc-pvr-dvbviewer
xbmc-pvr-hts xbmc-pvr-mediaportal xbmc-pvr-nextpvr xbmc-pvr-njoy
xbmc-pvr-vdr xbmc-pvr-vuplus xbmc-pvr-mythtv"
depends_dev="mysql-dev boost-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="xbmc-pvr-argustv:argustv xbmc-pvr-demo:demo
xbmc-pvr-dvbviewer:dvbviewer xbmc-pvr-hts:hts xbmc-pvr-mythtv:mythtv
xbmc-pvr-mediaportal:mediaportal xbmc-pvr-nextpvr:nextpvr
xbmc-pvr-njoy:njoy xbmc-pvr-vdr:vdr xbmc-pvr-vuplus:vuplus"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${_date}.tar.gz"
_builddir="$srcdir/$pkgname-20121129"
_giturl="git://github.com/opdenkamp/xbmc-pvr-addons.git"
_upload="dev.alpinelinux.org:/archive/$pkgname/"
snapshot() {
_date=$(date +%Y%m%d)
local _pkg=$pkgname-$_date.tar.gz
mkdir -p "$srcdir"
cd "$srcdir"
rm -rf ${_giturl##*/}
git clone --depth=1 --bare $_giturl || return 1
git --git-dir ${_giturl##*/} archive -o $_pkg \
--prefix=$pkgname-$_date/ HEAD \
|| return 1
msg "New snapshot: $_pkg"
msg "Uploading to $_upload"
rsync -ave ssh $_pkg $_upload || return 1
cd ..
sed -i -e "s/^_date=.*/_date=$_date/" APKBUILD || return 1
abuild checksum
}
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"
./bootstrap || return 1
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-addons-with-dependencies \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
_mv_addon() {
local ext=$1
pkgdesc="${ext} addon for XBMC"
mkdir -p "$subpkgdir"/usr/lib/xbmc/addons \
"$subpkgdir"/usr/share/xbmc/addons
mv "$pkgdir"/usr/lib/xbmc/addons/$ext \
"$subpkgdir"/usr/lib/xbmc/addons
mv "$pkgdir"/usr/share/xbmc/addons/$ext \
"$subpkgdir"/usr/share/xbmc/addons
}
argustv() { _mv_addon pvr.argustv; }
demo() { _mv_addon pvr.demo; }
dvbviewer() { _mv_addon pvr.dvbviewer; }
hts() { _mv_addon pvr.hts; }
mediaportal() { _mv_addon pvr.mediaportal.tvserver; }
nextpvr() { _mv_addon pvr.nextpvr; }
njoy() { _mv_addon pvr.njoy; }
vdr() { _mv_addon pvr.vdr.vnsi; }
vuplus() { _mv_addon pvr.vuplus; }
mythtv() { _mv_addon pvr.mythtv.cmyth; }
md5sums="901f7c9cdbc188b460cb6a7733f30c85 xbmc-pvr-addons-20121129.tar.gz"
|