1 pkgname=youtube2music-svn
4 pkgdesc="A video downloader tool"
5 url="http://youtube2music.sourceforge.net"
8 depends=('pygtk' 'aria2' 'ffmpeg')
9 makedepends=('subversion')
10 conflicts=('youtube2music')
14 _svntrunk=https://youtube2music.svn.sourceforge.net/svnroot/youtube2music/trunk
20 if [ -d $_svnmod/.svn ]; then
21 (cd $_svnmod && svn up -r $pkgver)
23 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26 msg "SVN checkout done or server timeout"
27 msg "Starting make..."
29 rm -r "$srcdir/$_svnmod-build"
30 cp -r $_svnmod $_svnmod-build
32 install -d ${pkgdir}/usr/share/youtube2music/
33 install -Dm644 gui-toolbar.glade search.py \
34 ${pkgdir}/usr/share/youtube2music/ || return 1
35 install -Dm755 y2m.py ${pkgdir}/usr/share/youtube2music/ || return 1
36 install -Dm755 youtube2music ${pkgdir}/usr/bin/youtube2music || return 1
37 install -Dm644 youtube2music64.png \
38 ${pkgdir}/usr/share/pixmaps/youtube2music.png || return 1
40 install -d ${pkgdir}/usr/share/locale/{it,en_US}/LC_MESSAGES/
41 install -Dm644 po/it_IT/LC_MESSAGES/youtube2music.mo \
42 ${pkgdir}/usr/share/locale/it/LC_MESSAGES || return 1
43 install -Dm644 po/en_US/LC_MESSAGES/youtube2music.mo \
44 ${pkgdir}/usr/share/locale/en_US/LC_MESSAGES || return 1
46 patch -i patch/gui-toolbar.patch \
47 ${pkgdir}/usr/share/youtube2music/gui-toolbar.glade
48 patch -i patch/y2m.patch \
49 ${pkgdir}/usr/share/youtube2music/y2m.py