blob: d978a178f37f9677de8035320092cfd08d282763 (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-weatherforecast
pkgver=0.2.0
_vdrapi=5
pkgrel=13
pkgdesc="provides a weather forecast based on forecast.io data"
url='https://github.com/vdr-projects/vdr-plugin-weatherforecast'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('curl' 'jansson' "vdr-api=$_vdrapi" 'vdr-skindesigner')
_plugname=${pkgname//vdr-/}
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
source=("vdr-plugin-${_plugname}-${pkgver}.tar.gz::https://github.com/vdr-projects/vdr-plugin-${_plugname}/archive/refs/tags/${pkgver}.tar.gz")
md5sums=('f731b7175321ca1d6e28e7ef49095d8d')
build() {
cd "$srcdir/vdr-plugin-$_plugname-$pkgver"
make
}
package() {
cd "$srcdir/vdr-plugin-$_plugname-$pkgver"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/etc/vdr/conf.avail"
echo "[$_plugname]" > "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
}
|