diff options
Diffstat (limited to 'main/tvheadend/APKBUILD')
-rw-r--r-- | main/tvheadend/APKBUILD | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/main/tvheadend/APKBUILD b/main/tvheadend/APKBUILD new file mode 100644 index 000000000..1d05dff58 --- /dev/null +++ b/main/tvheadend/APKBUILD @@ -0,0 +1,59 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=tvheadend +pkgver=3.2 +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" +pkgusers="$pkgname" +pkggroups="$pkgname" +install="$pkgname.pre-install" +subpackages="$pkgname-doc" +source="https://github.com/downloads/tvheadend/tvheadend/tvheadend-$pkgver.tar.gz + tvheadend.initd + tvheadend.confd +" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./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" + 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 -d -o $pkgname -g $pkgname \ + "$pkgdir/etc/$pkgname" || return 1 +} + +md5sums="4f7faa75c4ea24942c5a12a77ebdcdf0 tvheadend-3.2.tar.gz +5df86b0859fc457c634a41a6ced3f118 tvheadend.initd +17cf7dfaf27706409a004c246c1a2c3c tvheadend.confd" |