updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / youtube2music-svn / PKGBUILD
blob5486a8efb0a10d83cde55aa0baa5dd3a58d21169
1 pkgname=youtube2music-svn
2 pkgver=42
3 pkgrel=1
4 pkgdesc="A video downloader tool"
5 url="http://youtube2music.sourceforge.net"
6 arch=('any')
7 license=('GPL')
8 depends=('pygtk' 'aria2' 'ffmpeg')
9 makedepends=('subversion')
10 conflicts=('youtube2music')
11 source=()
12 md5sums=()
14 _svntrunk=https://youtube2music.svn.sourceforge.net/svnroot/youtube2music/trunk
15 _svnmod=youtube2music
17 build() {
18   cd "$srcdir"
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
26   msg "SVN checkout done or server timeout"
27   msg "Starting make..."
29   rm -r "$srcdir/$_svnmod-build"
30   cp -r $_svnmod $_svnmod-build
31   cd $_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