diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/tvheadend-git/APKBUILD | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/testing/tvheadend-git/APKBUILD b/testing/tvheadend-git/APKBUILD index bce95bc32..81262eba7 100644 --- a/testing/tvheadend-git/APKBUILD +++ b/testing/tvheadend-git/APKBUILD @@ -1,48 +1,43 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=tvheadend-git -_date=20121122 -pkgver=$_date +pkgver=20121204 pkgrel=0 pkgdesc="TV Streaming server for linux" url="http://www.lonelycoder.com/hts/tvheadend_overview.html" arch="all" license="GPL3" depends="" -depends_dev="openssl-dev bash findutils" -makedepends="$depends_dev python" +depends_dev="openssl-dev libdvbcsa-dev" +makedepends="$depends_dev python findutils bash" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" subpackages="$pkgname-doc" -source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_date.tar.gz +source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd" _giturl="git://github.com/tvheadend/tvheadend.git" -_upload=dev.alpinelinux.org:/archive/$pkgname/ -_builddir="$srcdir/$pkgname-$_date" +_upload="dev.alpinelinux.org:/archive/$pkgname/" +_builddir="$srcdir/$pkgname-$pkgver" snapshot() { - _date=$(date +%Y%m%d) - local _pkg=$pkgname-$_date.tar.gz - mkdir -p "$srcdir" - cd "$srcdir" - rm -rf "$pkgname" - git clone --depth=1 --bare $_giturl || return 1 - git --git-dir ${_giturl##*/} archive -o $_pkg \ - --prefix=$pkgname-$_date/ HEAD \ - || return 1 - msg "New snapshot: $_pkg" - msg "Uploading to $_upload" - #scp -r $_pkg $_upload/$_pkg || return 1 - rsync -ave ssh $_pkg $_upload || return 1 - cd .. - sed -i -e "s/^_date=.*/_date=$_date/" \ - APKBUILD || return 1 - _dir=${PWD%/APKBUILD} - _dir=${_dir%/*} - abuild checksum && abuild -r && git add APKBUILD \ - && git commit -m"${_dir##*/}/$pkgname: snapshot $_date" + local _date=$(date +%Y%m%d) + local _pkg=$pkgname-$_date.tar.gz + mkdir -p "$srcdir" + cd "$srcdir" + msg "Creating snapshot: $_pkg" + rm -rf ${_giturl##*/} + git clone --depth=1 --bare $_giturl || return 1 + git --git-dir ${_giturl##*/} archive -o $_pkg \ + --prefix=$pkgname-$_date/ HEAD \ + || return 1 + msg "Uploading to $_upload" + rsync -Lave ssh $_pkg $_upload || return 1 + cd "$startdir" + sed -i -e "s/^pkgver=.*/pkgver=$_date/" \ + APKBUILD || return 1 + abuild checksum } prepare() { @@ -64,6 +59,7 @@ build() { --localstatedir=/var \ --release \ --disable-avahi \ + --enable-dvbcsa \ || return 1 make || return 1 } @@ -79,6 +75,6 @@ package() { "$pkgdir/etc/$pkgname" || return 1 } -md5sums="9048b0d2a5dda4436bce2ec76c9d859d tvheadend-git-20121122.tar.gz +md5sums="abfa68adafb04964263a928934cee2f1 tvheadend-git-20121204.tar.gz 8b7da39441150596bdeb2456f7cf73ed tvheadend-git.initd 17cf7dfaf27706409a004c246c1a2c3c tvheadend-git.confd" |