pkgname=mythexpress pkgver=20121127 pkgrel=1 pkgdesc="MythExpress is a browser-based interface to MythTV HTTP streaming capability" arch=('i686' 'x86_64') url="https://github.com/MythTV-Clients/MythExpress" license=('GPL3') depends=('nodejs' 'avahi' ) makedepends=('git') source=( ) _gitroot="https://github.com/MythTV-Clients/MythExpress.git" _gitname=MythExpress 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 } package() { cd "${srcdir}" mkdir -p $pkgdir/usr/$pkgname rsync -arvp --exclude .git ${_gitname}-build/ $pkgdir/usr/${pkgname} } md5sums=()