# Maintainer: Gian Balex pkgname=minituxytd-git pkgver=20120530 pkgrel=1 pkgdesc="A php script that allows you to download videos from youtube by direct link or own list." arch=('i686' 'x86_64') url="https://github.com/gianbalex/MiniTux-YT-Downloader" license=('AGPL') groups=('multimedia') depends=('php' 'curl') makedepends=('git') _gitroot="http://github.com/gianbalex/MiniTux-YT-Downloader.git" _gitname="minituxytd" _installto="$pkgdir/usr/share/pear/$_gitname" _phpscript="/usr/share/pear/$_gitname/minituxytd.php" _binpath="$pkgdir/usr/bin" _binsh="$pkgdir/usr/bin/minituxytd" build() { cd "$srcdir" msg "Remove existing download git src" rm -rf "$_gitname" msg "Connecting to GIT server...." git clone $_gitroot $_gitname msg "GIT checkout done or server timeout" msg "Starting Make..." cd "$srcdir/$_gitname" rm -rf "$_installto" mkdir -p $_installto cp -R ./* "$_installto" rm -rf "$_binsh" mkdir -p "$_binpath" touch "$_binsh" echo "#/bin/sh" > "$_binsh" echo php $_phpscript '"$1" "$2" "$3" "$4"' >> "$_binsh" chmod +x "$_binsh" chmod -R 777 "$_installto" }