updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / musicdog / PKGBUILD
blob5cd7ff49e6e35167a8e801fd7ad9df6df0e443ba
2 pkgname=musicdog
3 pkgver=2.2.1
4 license='?'
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 pkgdesc="Music streaming media player."
8 url=('http://www.musicdog.se/')
9 source=(http://www.musicdog.se/downloads/MusicDog_Installer.air ${pkgname}.desktop)
10 depends=('adobe-air')
11 makedepends=('unzip')
12 md5sums=('c5902861ff616ddc24a6e119292f228c'
13          '5939d05459f32a86980b0c00ce820e26')
15 build() {
16   mkdir -p ${pkgdir}/opt/airapps/
17   mkdir -p ${pkgdir}/usr/bin/
18   cd $srcdir
19   unzip MusicDog_Installer.air -d ${pkgdir}/opt/airapps/${pkgname}
20   touch $pkgdir/usr/bin/${pkgname}
21   echo "#!/bin/bash" >> $pkgdir/usr/bin/${pkgname}
22   echo "/opt/adobe-air-sdk/bin/adl -nodebug /opt/airapps/${pkgname}/META-INF/AIR/application.xml /opt/airapps/${pkgname}/" >> $pkgdir/usr/bin/${pkgname}
23   chmod +x $pkgdir/usr/bin/${pkgname}
24   install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
25