# Contributor: Denver Gingerich
# Contributor: Jori Hamalainen
# Contributor: John Slade
# Maintainer: Aaron Ali <t0nedef@causal.ca>
pkgname=vimeo-dl-git
pkgver=20130209
pkgrel=1
pkgdesc="A command line script to download vimeo videos"
arch=('any')
license=('custom')
url='https://github.com/johnteslade/vimeo-downloader'
depends=('wget')
makedepends=('git')
_gitroot="git://github.com/johnteslade/vimeo-downloader.git"
_gitname="vimeo-downloader"
build() {
cd ${srcdir}
msg "Connecting to the GIT server...."
if [[ -d ${srcdir}/${_gitname} ]] ; then
cd ${_gitname}
git pull origin
msg "The local files are updated..."
else
git clone ${_gitroot}
fi
msg "GIT checkout done. Building."
}
package() {
install -Dm755 ${srcdir}/${_gitname}/vimeo_downloader.sh ${pkgdir}/usr/bin/vimeo-dl
sed -n '/Copyright/,/ SOFTWARE\./p' ${srcdir}/${_gitname}/vimeo_downloader.sh > ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
install -Dm644 ${srcdir}/${_gitname}/README.md ${pkgdir}/usr/share/vimeo-dl/README
}
#