"Don't forget to include the appropriate VCS tool (cvs, subversion, git, ...) in makedepends=...."
It was part of the initial wiki commit in 2005, so anyone that's written PKGBUILDs since then can't blame the Wiki
]]>Makepkg should not install *anything* unless passed the -s or -i flags. It should just make a package.
]]>But I'm not sure why makepkg is unable to realize on its own that git/hg/bzr are missing and add them as build dependencies. Failing with an error message is a bit lame when an error can be so easily avoided.
]]>Git should definitely be listed.
]]>I think the Wiki will have to go to bed without dinner tonight. Bad, bad Wiki!
]]>Somewhere on the Wiki it says that git is always supposed to be available to makepkg, so you don't have to list it explicitly.
If it does, it needs to be changed. I can only guess that someone took the idea that "base-devel should be assumed" and incorrectly applied that to VCSes.
]]>"makedepends=('git')" isn't needed…
Umm what? As it's currently written, this package definitely needs git as a makedep.
]]>I'm liking this a lot..
Thanks!
Is it expected that I can't resize/fullscreen the videos? The video just stays in the center at the same size with surrounding black space.
Hrm, hitting 'f' usually works for me. Either that or edit the script to call mplayer with the -fs flag. Or it's a bug in my script. Most likely the latter xP
(Maybe you can start a Community Contributions thread for this.)
Will do! Thanks again for all the help.
]]>mkdir -p $pkgdir/usr/bin cp yt.py $pkgdir/usr/bin/yt chmod +x $pkgdir/usr/bin/yt
This can be condensed to 1 command:
install -Dm755 yt.py "$pkgdir/usr/bin/yt"
Also WTFPL should be "custom" or "custom:WTFPL" since it's not an officially recognized common license in arch.
And while you're at it, why not give the script a try and let me know what you think?
I'm liking this a lot..
Is it expected that I can't resize/fullscreen the videos? The video just stays in the center at the same size with surrounding black space.
(Maybe you can start a Community Contributions thread for this.)
]]># Maintainer: Tyler Cone <herrflockig@gmail.com>
pkgname=yt-git
pkgver=20130125
pkgrel=1
pkgdesc="A curses Youtube search client written in python"
arch=('any')
url="https://github.com/herrflockig/yt"
license=('WTFPL')
depends=('mplayer' 'youtube-dl' 'python2')
makedepends=('git')
conflicts=('yt')
provides=('yt')
_gitname="yt"
_gitroot="https://github.com/herrflockig/yt"
pkgver() {
cd "$srcdir/$_gitname"
echo $(git describe --always | sed 's/-/./g')
}
build() {
cd $srcdir
msg "Connecting to GIT server..."
if [ -d $_gitname ]; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone --depth=1 $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
}
package() {
cd "$srcdir/$_gitname"
mkdir -p $pkgdir/usr/bin
cp yt.py $pkgdir/usr/bin/yt
chmod +x $pkgdir/usr/bin/yt
}
And while you're at it, why not give the script a try and let me know what you think?
]]>