blob: a7597ab908c6652d236dba829839771cfbb78690 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Jonah Bernhard <jonah.bernhard at gmail dot com>
pkgname=mlbviewer
pkgver=2015_sf_1
_pkgyear=${pkgver%_sf_*}
pkgrel=1
pkgdesc="A collection of tools to view and listen to streaming baseball games from MLB.TV."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/mlbviewer"
license=('GPL2')
depends=('libconfig' 'curl' 'python2' 'rtmpdump')
makedepends=('git')
optdepends=('mpv: lightweight streaming media player'
'python2-gdata: MLB classics')
install="${pkgname}.install"
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/2015/${pkgname}2015-sf-1.tar.gz"
"mlbhls::git+https://github.com/thegryghost/mlbtv-hls-nexdef#branch=experimental")
sha1sums=('e3b7e85dd2c113c990810db0f59154ed1ce81f44'
'SKIP')
build () {
# python2
cd ${srcdir}/${pkgname}${_pkgyear}
sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:' *.py
# build mlbhls for nexdef
cd ${srcdir}/mlbhls
make
}
package () {
cd ${srcdir}/${pkgname}${_pkgyear}
# create package structure
install -d ${pkgdir}/usr/{bin,{lib,share/{doc,licenses}}/${pkgname}}
# install and symlink main executables
for i in *.py; do
install -m755 $i ${pkgdir}/usr/lib/${pkgname}
ln -s /usr/lib/${pkgname}/$i ${pkgdir}/usr/bin/${i%.py}
done
# main program libs and tests
cp -r MLBviewer test ${pkgdir}/usr/lib/${pkgname}
# mlbhls
install -m755 ${srcdir}/mlbhls/mlbhls ${pkgdir}/usr/bin
# documentation and license
install -m644 MLBPLAY-HELP MiLB-HELP QUICK-START README REQUIREMENTS-${_pkgyear}.txt TOOLS ${pkgdir}/usr/share/doc/${pkgname}
install -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|