diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-14 09:05:03 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-14 09:05:10 +0000 |
commit | cdb56c9dc7a839c179250dfedf16cd0e9cac10be (patch) | |
tree | 14621a8c6e78e28d2bc7206189dd77a4fc4fe51c /community/tvheadend/APKBUILD | |
parent | 7c1095c40668677abaeed66d8011ba0b7472e337 (diff) | |
download | aports-cdb56c9dc7a839c179250dfedf16cd0e9cac10be.tar.bz2 aports-cdb56c9dc7a839c179250dfedf16cd0e9cac10be.tar.xz |
community/tvheadend: upgrade to 4.2.4 and add basic check
Diffstat (limited to 'community/tvheadend/APKBUILD')
-rw-r--r-- | community/tvheadend/APKBUILD | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/community/tvheadend/APKBUILD b/community/tvheadend/APKBUILD index 4e2e7cca21..e57cf467e5 100644 --- a/community/tvheadend/APKBUILD +++ b/community/tvheadend/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> pkgname=tvheadend -pkgver=4.2.3 -pkgrel=1 +pkgver=4.2.4 +pkgrel=0 pkgdesc="TV Streaming server for linux" url="http://tvheadend.org/" arch="all" @@ -43,46 +43,48 @@ build() { --disable-libtheora_static \ --disable-libvorbis_static \ --disable-libfdkaac_static \ - --disable-libmfx_static \ - || return 1 - make || return 1 + --disable-libmfx_static + make +} + +check() { + msg "Running testsuites" + "$builddir"/build.linux/tvheadend --version > /dev/null } package() { cd "$builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 + make -j1 DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 + "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname || return 1 + "$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" || return 1 - chown "$pkgusers:$pkggroups" "$pkgdir/etc/$pkgname" || return 1 + mkdir -p "$pkgdir"/etc/"$pkgname" + chown "$pkgusers:$pkggroups" "$pkgdir/etc/$pkgname" } dvb_scan() { pkgdesc="$pkgname dvb scan files" depends="$pkgname !$pkgname-satellites_xml" - arch="noarch" cd "$builddir" mkdir -p "$subpkgdir"/usr/share/tvheadend/data mv "$pkgdir"/usr/share/tvheadend/data/dvb-scan \ - "$subpkgdir"/usr/share/tvheadend/data || return 1 + "$subpkgdir"/usr/share/tvheadend/data } satellites_xml() { pkgdesc="$pkgname sattelites from http://satellites-xml.eu" depends="$pkgname !$pkgname-dvb_scan" - arch="noarch" 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 || return 1 + "$subpkgdir"/usr/share/tvheadend/data/dvb-scan/dvb-s } -sha512sums="d899d14b757228be4445843d9b71e81000f47a4e0a8e5bc6ac2e3fee9f5599f66a417390d7933e257b6d5eb2199a3528822a14db0e142a471b44339bb09120c5 tvheadend-4.2.3.tar.gz +sha512sums="333a3509da198f5d96316f30fd010a216262315614db302c83405de78d29b32b1d878c0abd7fae2214713107e6955478ee3222b18888a84c57810035af882df4 tvheadend-4.2.4.tar.gz db275e263d52d0515544cc52836d99d1cf43b7c17a8037f897d5788e770b69be85cb709f71e7fae4d66c4a2cef8c4f9533fc2ab41490776ee437e4db4d27fa31 tvheadend.initd dd55c56ffb0b090fc03537556340ac0dd17741d2ce9eeabb388af43b566e2764385affc2e4457fa7a6d94e44c491d7cf43c6b6d89dc1ba60dd9724cc488c0ef1 tvheadend.confd -cd54a76a2a0ebcb989ff9c9c30020e1d8c7c4a0efdfb3afbccec1888b12a97564e2c34bd0fc0557aa553a9fcb91c807004f2b68ab00fcdbbdd8881144fdbb0bd satellites.xml" +bc9a160ef183d8aaff0614b04e4ec7f0861df31a2553540d143ae82f38364392801e5958500630baed760ef33a144744d8b7d83a1241e2defa2e4b2cbf4ab8f5 satellites.xml" |