1 # Contributor: Murtuza Akhtari <inxsible at gmail dot com>
3 pkgname=mobilemediaconverter
6 pkgdesc="Converts mp3, wma, ogg, wav audio files to AMR files and vice-versa. Converts wmv, mpeg, wmv, avi, flv video files to 3GP and vice-versa."
8 url="http://www.miksoft.net/mobileMediaConverter.htm"
10 source=(http://www.miksoft.net/products/mmc-older/mmc-lin-171.tar.gz
15 md5sums=('f87887603633403ba3a3ddf68a20a936'
16 '9864d1ffc3c368aa57429d66e6f8c537'
17 '9d4309f98f3689dfc21e641e5773cfd7'
18 '4763cf3c0a5272d057ddf4a96d13bb33')
20 if [ "${CARCH}" = 'x86_64' ]; then
22 depends=('lib32-zlib' 'lib32-gtk2>=2.22' 'lib32-gcc-libs>=4.5.1' 'lib32-glibc>=2.12' 'lib32-libstdc++5>=3.3.0')
25 depends=('zlib' 'gtk2>=2.22' 'gcc-libs>=4.5.1' 'glibc>=2.12' 'libstdc++5>=3.3.0')
30 cd $srcdir/MobileMediaConverter/lib
31 mkdir -p $pkgdir/usr/share/$pkgname/lib
32 install -Dm755 ffmpeg $pkgdir/usr/share/$pkgname/lib/ffmpeg
33 install -Dm644 libopencore-amrnb.so $pkgdir/usr/share/$pkgname/lib/libopencore-amrnb.so
34 install -Dm644 libopencore-amrnb.so.0 $pkgdir/usr/share/$pkgname/lib/libopencore-amrnb.so.0
35 install -Dm644 libopencore-amrnb.so.0.0.2 $pkgdir/usr/share/$pkgname/lib/libopencore-amrnb.so.0.0.2
36 install -Dm644 libopencore-amrwb.so $pkgdir/usr/share/$pkgname/lib/libopencore-amrwb.so
37 install -Dm644 libopencore-amrwb.so.0 $pkgdir/usr/share/$pkgname/lib/libopencore-amrwb.so.0
38 install -Dm644 libopencore-amrwb.so.0.0.2 $pkgdir/usr/share/$pkgname/lib/libopencore-amrwb.so.0.0.2
39 cp -r icons/ $pkgdir/usr/share/$pkgname/lib
40 cp -r mmc\ Libs/ $pkgdir/usr/share/$pkgname/lib
41 cp -r profiles/ $pkgdir/usr/share/$pkgname/lib
42 install -Dm755 mmc $pkgdir/usr/share/$pkgname/lib/mmc
43 install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
44 install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
45 install -Dm755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname