blob: bc838fc06698f312b522d6ea018f2e84aa8f4ad4 (
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
|
pkgname=remyth
pkgver=20131218
pkgrel=1
pkgdesc="This project is meant to provide a nicer remote for your MythTV Frontends. "
arch=('i686' 'x86_64')
url="https://github.com/SchraderMJ11/ReMyth"
license=('GPL')
depends=('nodejs' 'avahi' )
makedepends=('git')
source=(service_type.js.patch remyth.html)
_gitroot="https://github.com/SchraderMJ11/ReMyth.git"
_gitname=ReMyth
build() {
cd "${srcdir}"
if [ ! -d "${srcdir}/${_gitname}" ]; then
git clone ${_gitroot}
else
cd ${_gitname} && git pull origin
fi
msg "GIT checkout done."
cd "${srcdir}"
if [ -e ${_gitname}-build ]
then
rm -rf ${_gitname}-build
fi
cp -rf "${_gitname}" "${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
npm install || exit 1
patch -Np0 -i ${srcdir}/service_type.js.patch || return 1
}
package() {
cd "${srcdir}"
mkdir -p $pkgdir/usr/$pkgname
rsync -arvp --exclude .git ${_gitname}-build/ $pkgdir/usr/${pkgname}
cd $startdir/src
install -m755 -D remyth.html $pkgdir/data/srv/httpd/htdocs/remyth.html
}
md5sums=('69f9edd22284e003249902999579d7c2'
'bce9d81d3aa3c39f8a4fefe3bfdb77f4')
|