updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mobilemediaconverter / PKGBUILD
blobd7bccc00d8ab80b718a6e62c24a3dd9e6dd0ddd9
1 # Contributor: Murtuza Akhtari <inxsible at gmail dot com>
3 pkgname=mobilemediaconverter
4 pkgver=1.7.1
5 pkgrel=1
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."
7 arch=('i686' 'x86_64')
8 url="http://www.miksoft.net/mobileMediaConverter.htm"
9 license=('GPL')
10 source=(http://www.miksoft.net/products/mmc-older/mmc-lin-171.tar.gz
11         $pkgname.desktop
12         $pkgname.png
13         $pkgname.sh)
15 md5sums=('f87887603633403ba3a3ddf68a20a936'
16          '9864d1ffc3c368aa57429d66e6f8c537'
17          '9d4309f98f3689dfc21e641e5773cfd7'
18          '4763cf3c0a5272d057ddf4a96d13bb33')
20 if [ "${CARCH}" = 'x86_64' ]; then
21     ARCH='amd64'
22     depends=('lib32-zlib' 'lib32-gtk2>=2.22' 'lib32-gcc-libs>=4.5.1' 'lib32-glibc>=2.12' 'lib32-libstdc++5>=3.3.0')
23 else
24     ARCH='i386'
25     depends=('zlib' 'gtk2>=2.22' 'gcc-libs>=4.5.1' 'glibc>=2.12' 'libstdc++5>=3.3.0')
28 build() {
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