packager="slaveriq <arch@plassmann.biz> modified by: simon1573 <simon@tuxflux.se"
pkgname=wimp-se
pkgver=2.6.1
#build=1022
license='custom'
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="The Adobe Air based Streaming Client for the Telenor Wimp Service.The NO version "
url=('http://getwimp.com')
#airfile=seWiMP.${pkgver}.${build}.air
airfile=seWimp-${pkgver}.air
source=("http://wimpmusic.com/wweb/resources/wimp_files/SE_62/release/${airfile}"
'WiMP.desktop')
depends=('bash'
'adobe-air-sdk'
'unzip')
conflicts=('wimp')
md5sums=('dcd7310c9e17d665f16a843856aa782a'
'17d42e980e7f37e6bbf9eb39e304e1ef')
#install=$pkgname.install
noextract=(seWimp-2.6.1.air)
build() {
cd $srcdir
mkdir -p $pkgdir/opt/airapps/wimp
mkdir -p $pkgdir/usr/bin
cd $pkgdir/opt/airapps/wimp
unzip $srcdir/${airfile}
echo "#!/bin/bash" >> $pkgdir/usr/bin/wimp
echo "/opt/adobe-air-sdk/bin/adl -nodebug /opt/airapps/wimp/META-INF/AIR/application.xml /opt/airapps/wimp/" >> $pkgdir/usr/bin/wimp
sed -i 's/application\/3.5/application\/2.6/g' META-INF/AIR/application.xml
chmod +x $pkgdir/usr/bin/wimp
}