aboutsummaryrefslogtreecommitdiffstats
path: root/main/tvheadend
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-05-21 22:33:53 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-05-21 22:34:52 +0200
commit637aecb2ddc813deae5bf92724d434ba23e36fa9 (patch)
tree34b0af32ea1b1600e4843516bb6e73e0e8897291 /main/tvheadend
parent9d8dbfc776451e0783fb31c483cfdd254897c5d6 (diff)
downloadaports-637aecb2ddc813deae5bf92724d434ba23e36fa9.tar.bz2
aports-637aecb2ddc813deae5bf92724d434ba23e36fa9.tar.xz
main/tvheadend: upgrade to 4.0.1
Diffstat (limited to 'main/tvheadend')
-rw-r--r--main/tvheadend/APKBUILD42
1 files changed, 7 insertions, 35 deletions
diff --git a/main/tvheadend/APKBUILD b/main/tvheadend/APKBUILD
index 251f3a3765..8bffda5bb8 100644
--- a/main/tvheadend/APKBUILD
+++ b/main/tvheadend/APKBUILD
@@ -1,8 +1,6 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=tvheadend
-_sha=8dbc38df4a5cd85be243e77e1ebdd43dfe6e2683
-# use abuild set_pkgver to update to latest version
-pkgver=20150501
+pkgver=4.0.1
pkgrel=0
pkgdesc="TV Streaming server for linux"
url="http://www.lonelycoder.com/hts/tvheadend_overview.html"
@@ -11,17 +9,17 @@ license="GPL3"
depends=""
depends_dev="openssl-dev"
makedepends="$depends_dev findutils bash git python linux-headers
- bsd-compat-headers"
+ bsd-compat-headers coreutils"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dvb-scan:dvb_scan $pkgname-satellites-xml:satellites_xml"
-source="$pkgname-$_sha.tar.gz::https://github.com/tvheadend/tvheadend/archive/$_sha.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/tvheadend/tvheadend/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
satellites.xml"
-_builddir="$srcdir/$pkgname-$_sha"
+_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
@@ -77,41 +75,15 @@ satellites_xml() {
"$subpkgdir"/usr/share/tvheadend/data/satellites-xml/dvb-s || return 1
}
-set_pkgver() {
- msg "Getting latest commit and setting correct version"
- sudo apk add -qt .set_pkgver coreutils
- local sha=$(curl -s "https://api.github.com/repos/tvheadend/tvheadend/git/refs/heads/master" | grep -m1 "sha")
- sha=${sha##*: \"}
- sha=${sha%%\",*}
- local date=$(curl -s https://github.com/$pkgname/$pkgname/commit/$sha.patch |grep -m1 "Date:")
- date="${date#* }"
- date="$(date -d "${date#*, }" +%Y%m%d)"
- sudo apk del -q .set_pkgver
- local nr
- if [ "$pkgver" == "$date" ]; then
- if [ "$_sha" != "$sha" ]; then
- nr=$(( pkgrel+=1 ))
- else
- nr=$pkgrel
- fi
- else
- nr=0
- fi
- sed -i -e "s/^pkgver=.*/pkgver=${date}/" \
- -e "s/^_sha=.*/_sha=${sha}/" \
- -e "s/^pkgrel=.*/pkgrel=$nr/" APKBUILD || return 1
- abuild checksum
-}
-
-md5sums="8e0fddb4408554129a06ad27daeb0a52 tvheadend-8dbc38df4a5cd85be243e77e1ebdd43dfe6e2683.tar.gz
+md5sums="95bff8ec3a3a1689f0ae221da04f66e2 tvheadend-4.0.1.tar.gz
67d1cfcaf2dc211d702abe67285f9333 tvheadend.initd
a409c44aecd93626a1a3a39306993c5d tvheadend.confd
9b699509582789576ceb962e971b09dc satellites.xml"
-sha256sums="b45c82039cb10c536983551c061f05d2e3259444244f9aca7921734fc755cb00 tvheadend-8dbc38df4a5cd85be243e77e1ebdd43dfe6e2683.tar.gz
+sha256sums="d03196fc610139694197a399b8ef8960f9d4cfbb9fe40cce83cfaa96a6e5ecc5 tvheadend-4.0.1.tar.gz
cd0db26b3da95df7cd100e5e30b47cd884fa4a7d2cd27f1bee2f6bec0d6ad211 tvheadend.initd
671f7d410e51aaed4c93f284c180f646680f6b195b5bef47b3ae1fb99ed76dce tvheadend.confd
2c184e27ee5ee51f35ea6b883bacfaf6ae0ebb4cfa043f743fc5d2e537b59884 satellites.xml"
-sha512sums="73d1dfa9f1853723be9c62b9a23607c0e96e418482445f452624549076f37496feeb8117b9d8e8036dd1634ee0c58a203c6c7b47b61850fbc751782e6a5c4ff8 tvheadend-8dbc38df4a5cd85be243e77e1ebdd43dfe6e2683.tar.gz
+sha512sums="722268413d2d48b723168ef426eb96036139876a86862b271d07ca5139f6c934c146887852d1c12b1cd556d214c3c23778918f71a5ee858d548ccba1a27485da tvheadend-4.0.1.tar.gz
41143b33e18000aad99d7b17433ac7935fa40a6980c4bf0733e5cc16e2948d18810ce198ca435791c93992ba1e39dc6d55ca6af33c49087557310fd31ad22447 tvheadend.initd
f81ace2fd2a86c561f70dca6c89a6217e632db01d5f5d1c6ccfd951c4a798a131767140c176a0a764fe3842363958b31fb2a707a871836795688136bc458f7d5 tvheadend.confd
7cfe4937c6e9a291a9a38ad29bf86035e2561b6eadd2d69712e100b0c9e0a34c1347c780be7a634bee48ff071dc4cc232c0838b90010c7abfde377f27d1fb24f satellites.xml"