updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / 2mandvd / PKGBUILD
blob5197c202b8957a8575398a1a370c04efb76d3787
1 # Maintainer: t3ddy  <t3ddy1988 "at" gmail {dot} com>
2 # Contributor: moostik <mooostik_at_gmail.com>
4 pkgname=2mandvd
5 pkgver=1.7.3
6 pkgrel=1
7 pkgdesc="DVD Authoring Maker In Linux Environnement"
8 url="http://2mandvd.tuxfamily.org/"
9 license=('GPL')
10 arch=('i686' 'x86_64')
11 install=2mandvd.install
12 depends=('qt>=4.6' 'sox' 'mplayer' 'mencoder' 'perl' 'netpbm' 'transcode' 'ffmpegthumbnailer' 'dvdauthor' 'mjpegtools' 'ttf-dejavu' 'dvd+rw-tools' 'exif')
13 optdepends=('xine-ui: to preview the result')
14 source=(http://download.tuxfamily.org/2mandvd/2ManDVD-${pkgver}.tar.gz
15         2mandvd.desktop
16         2mandvd.sh)
17 md5sums=('5ca9fcbcb366a9119da09a2217cb8ff2'
18          'bd59ad69e6ed089d07adbb1ec3d59d66'
19          '0112971f170034aff6efaafb9508b010')
21 build() {
22   cd ${srcdir}/2ManDVD
24   qmake 2ManDVD.pro
26   make
29 package(){
30   cd $srcdir/2ManDVD
32   install -d -m755 ${pkgdir}/opt/2ManDVD ${pkgdir}/usr/bin
33   cp -R Bibliotheque Interface 2ManDVD fake.pl *.qm README.txt ${pkgdir}/opt/2ManDVD/
34   install -D -m755 ${srcdir}/2mandvd.sh ${pkgdir}/usr/bin/2ManDVD
36   # Fixing some right problems
37   cd ${pkgdir}/opt/2ManDVD
38   find . -type f -print0 | xargs -0 -n1 chmod 644
40   chmod 755 Bibliotheque Interface
41   chmod +x 2ManDVD
42   cd ${pkgdir}/opt/2ManDVD/Bibliotheque
43   chmod -R 777 *
45   # Creating menu item
46   install -D -m644 ${srcdir}/2ManDVD/Interface/mandvd.png ${pkgdir}/usr/share/pixmaps/2mandvd.png
47   install -D -m644 ${srcdir}/2mandvd.desktop ${pkgdir}/usr/share/applications/2mandvd.desktop