updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / videomanager / PKGBUILD
blob8f6b48213dffd60cfe17c1dec0b9ed82d207c625
1 # Contributor: Vincent Berset <msieurhappy@gmail.com>
2 pkgname=videomanager
3 pkgver=0.5
4 pkgrel=4
5 pkgdesc="A GTK movie collection manager"
6 arch=('any')
7 url="http://codingteam.net/project/videomanager"
8 license="GPL"
9 depends=('pygtk' 'python-pysqlite-legacy')
10 source=("http://codingteam.net/project/$pkgname/download/file/$pkgname-$pkgver.tar.gz" \
11         $pkgname.desktop)
12 md5sums=('234fa27cb842da9bdd52637b63703cbe' \
13          'b1b5230c26874e59c20e2f5b8aa2bd6c')
15 build() {
16   cd $startdir/src/${pkgname}-${pkgver}
17   mkdir -p -m755 $startdir/pkg/usr/{bin,share/$pkgname}
18   
19   cp -R ./* $startdir/pkg/usr/share/$pkgname/
20   chmod -R 644 $startdir/pkg/usr/share/$pkgname/*
21   chmod +x $startdir/pkg/usr/share/$pkgname/lang/
22   
23   echo "#!/bin/sh" > $startdir/pkg/usr/bin/$pkgname
24   echo "python /usr/share/$pkgname/VideoManager.py" >> $startdir/pkg/usr/bin/$pkgname
25   chmod 755 $startdir/pkg/usr/bin/$pkgname
26   
27   install -D -m644 vm.png $startdir/pkg/usr/share/pixmaps/vm.png
28   install -D -m644 ../videomanager.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop