diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2012-11-22 17:01:02 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2012-11-22 17:01:02 +0100 |
commit | 452b90aac34dc84967abaae2024ddfc6b378833b (patch) | |
tree | fbd8f5d08a98cb60b94a571c9a9278b80e6f70bd /testing/tvheadend-git/APKBUILD | |
parent | 5f98cefe85cb966d6aa9315845d2327ba377299c (diff) | |
download | aports-452b90aac34dc84967abaae2024ddfc6b378833b.tar.bz2 aports-452b90aac34dc84967abaae2024ddfc6b378833b.tar.xz |
testing/tvheadend-git: new snapshot
Diffstat (limited to 'testing/tvheadend-git/APKBUILD')
-rw-r--r-- | testing/tvheadend-git/APKBUILD | 75 |
1 files changed, 57 insertions, 18 deletions
diff --git a/testing/tvheadend-git/APKBUILD b/testing/tvheadend-git/APKBUILD index f800ab0d99..bce95bc325 100644 --- a/testing/tvheadend-git/APKBUILD +++ b/testing/tvheadend-git/APKBUILD @@ -1,23 +1,50 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=tvheadend-git -_pkgname=andoma-tvheadend-bccec43 -pkgver=2.99 +_date=20121122 +pkgver=$_date 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 avahi-dev wget bash findutils" -makedepends="$depends_dev" -install="$pkgname.pre-install $pkgname.post-deinstall" -subpackages="" -source="saveas-https://github.com/andoma/tvheadend/tarball/master/$pkgname-$pkgver.tar.gz -tvheadend-git.initd -tvheadend-git.confd -" -_builddir="$srcdir"/$_pkgname +depends_dev="openssl-dev bash findutils" +makedepends="$depends_dev python" +pkgusers="$pkgname" +pkggroups="$pkgname" +install="$pkgname.pre-install" +subpackages="$pkgname-doc" +source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_date.tar.gz + $pkgname.initd + $pkgname.confd" +_giturl="git://github.com/tvheadend/tvheadend.git" +_upload=dev.alpinelinux.org:/archive/$pkgname/ +_builddir="$srcdir/$pkgname-$_date" + +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" +} + prepare() { local i cd "$_builddir" @@ -27,19 +54,31 @@ prepare() { esac done } + build() { cd "$_builddir" - ./configure --prefix=/usr --release + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --release \ + --disable-avahi \ + || return 1 make || return 1 } + package() { cd "$_builddir" - sed -i 's/\-T//g' support/posix.mk make DESTDIR="$pkgdir" install || return 1 - install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1 - install -m755 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname || return 1 + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + install -m755 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname || return 1 + install -d -o $pkgname -g $pkgname \ + "$pkgdir/etc/$pkgname" || return 1 } -md5sums="96fa898ae84aefbc25e12067eb8a93c1 tvheadend-git-2.99.tar.gz -4d6324b1b87890faf846ad95c2f3483c tvheadend-git.initd -74749f3527418ddfd5671d5d5ad4dca4 tvheadend-git.confd" +md5sums="9048b0d2a5dda4436bce2ec76c9d859d tvheadend-git-20121122.tar.gz +8b7da39441150596bdeb2456f7cf73ed tvheadend-git.initd +17cf7dfaf27706409a004c246c1a2c3c tvheadend-git.confd" |