blob: abba4d446cb7162af024c2cf94d14fce703040dd (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-hddarchive
epoch=1
pkgver=0.0.1.r6.gd014d52
_gitver=d014d52dcb3790bd1ba38fe7b6fb0c4136364148
_vdrapi=2.4.1
pkgrel=3
pkgdesc="Brings the archive-hdd functionality to VDR."
url='https://github.com/vdr-projects/vdr-plugin-hddarchive'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('bash' 'gcc-libs' "vdr-api=${_vdrapi}")
makedepends=('git')
install="$pkgname.install"
_plugname=${pkgname//vdr-/}
source=("git+https://github.com/vdr-projects/vdr-plugin-${_plugname}.git#commit=${_gitver}"
'hddarchive-default_settings.diff')
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
md5sums=('SKIP'
'9982fc924c8300567052b239b4535228')
pkgver() {
cd "${srcdir}/vdr-plugin-${_plugname}"
_last_release=0.0.1
_last_release_commit=edf6617c323c8ff173201531c10debf199b4dec5
_count=$((`git rev-list --count HEAD` - `git rev-list --count $_last_release_commit`))
if [ $_count -gt 0 ]; then
printf "%s.r%s.g%s" $_last_release \
$_count \
`git rev-parse --short=7 HEAD`
else
printf "%s" $_last_release
fi
}
prepare() {
cd "${srcdir}/vdr-plugin-${_plugname}"
patch -p1 -i "$srcdir/hddarchive-default_settings.diff"
}
build() {
cd "${srcdir}/vdr-plugin-${_plugname}"
make
}
package() {
cd "${srcdir}/vdr-plugin-${_plugname}"
make DESTDIR="${pkgdir}" install
install -Dm755 vdr_move_to_hdd.sh "$pkgdir/usr/lib/vdr/bin/vdr_move_to_hdd.sh"
mkdir -p "$pkgdir/etc/vdr/conf.avail"
echo "[$_plugname]" > "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
}
|