aports/community/tvheadend/APKBUILD
Jakub Jirutka 63f5e7d295 [various]: unify names of licenses according to SPDX
This commit updates $license variable in all APKBUILDs to comply with
short names specified by SPDX version 3.0 [1] where possible. It was
done using find-and-replace method on substrings inside $license
variables.

Only license names were updated, not "expressions" specifying relation
between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or
exceptions (e.g. "X with exceptions").

Many licenses have a version or multiple variants, e.g. MPL-2.0,
BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not
contain license version or variant. Since there's no way how to infer
this information just from abuild, it were left without the variant
suffix or version, i.e. non SPDX compliant.

GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They
exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later
(formerly e.g. GPL-2.0+). We did not systematically noted distinguish
between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean
GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g.
GPL2+) were left without the variant suffix, i.e. non SPDX compliant.

Note: This commit just fixes format of the license names, no
verification has been done if the specified license information is
actually correct!

[1]: https://spdx.org/licenses/
2017-12-30 21:05:50 +01:00

91 lines
2.9 KiB
Plaintext

# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=tvheadend
pkgver=4.2.4
pkgrel=0
pkgdesc="TV Streaming server for linux"
url="http://tvheadend.org/"
arch="all"
license="GPL-3.0"
depends=""
depends_dev=""
makedepends="$depends_dev findutils bash git python2 linux-headers
bsd-compat-headers coreutils libressl-dev ffmpeg-dev gettext-dev
libhdhomerun-dev cmake"
pkgusers="tvheadend"
pkggroups="tvheadend"
install="$pkgname.pre-install"
subpackages="$pkgname-doc
$pkgname-dvb-scan:dvb_scan:noarch
$pkgname-satellites-xml:satellites_xml:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/tvheadend/tvheadend/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
satellites.xml
"
builddir="$srcdir/tvheadend-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-libav \
--enable-hdhomerun_client \
--disable-hdhomerun_static \
--disable-ffmpeg_static \
--disable-libx264_static \
--disable-libx265_static \
--disable-libvpx_static \
--disable-libtheora_static \
--disable-libvorbis_static \
--disable-libfdkaac_static \
--disable-libmfx_static
make
}
check() {
msg "Running testsuites"
"$builddir"/build.linux/tvheadend --version > /dev/null
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
# /usr/bin/install seems to fail to apply ownership
# when running from abuild on aarch64
mkdir -p "$pkgdir"/etc/"$pkgname"
chown "$pkgusers:$pkggroups" "$pkgdir/etc/$pkgname"
}
dvb_scan() {
pkgdesc="$pkgname dvb scan files"
depends="$pkgname !$pkgname-satellites_xml"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/tvheadend/data
mv "$pkgdir"/usr/share/tvheadend/data/dvb-scan \
"$subpkgdir"/usr/share/tvheadend/data
}
satellites_xml() {
pkgdesc="$pkgname sattelites from http://satellites-xml.eu"
depends="$pkgname !$pkgname-dvb_scan"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/tvheadend/data/dvb-scan/dvb-s
msg "Generating sattelites from satellites.xml"
support/sat_xml_scan.py "$srcdir"/satellites.xml \
"$subpkgdir"/usr/share/tvheadend/data/dvb-scan/dvb-s
}
sha512sums="333a3509da198f5d96316f30fd010a216262315614db302c83405de78d29b32b1d878c0abd7fae2214713107e6955478ee3222b18888a84c57810035af882df4 tvheadend-4.2.4.tar.gz
db275e263d52d0515544cc52836d99d1cf43b7c17a8037f897d5788e770b69be85cb709f71e7fae4d66c4a2cef8c4f9533fc2ab41490776ee437e4db4d27fa31 tvheadend.initd
dd55c56ffb0b090fc03537556340ac0dd17741d2ce9eeabb388af43b566e2764385affc2e4457fa7a6d94e44c491d7cf43c6b6d89dc1ba60dd9724cc488c0ef1 tvheadend.confd
bc9a160ef183d8aaff0614b04e4ec7f0861df31a2553540d143ae82f38364392801e5958500630baed760ef33a144744d8b7d83a1241e2defa2e4b2cbf4ab8f5 satellites.xml"