updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mielophone / PKGBUILD
blobf684ddc9df643bea8fea2bf67a2dc29a16f3c77b
2 pkgname=mielophone
3 pkgver=0.2.3
4 license='GPLv3'
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 pkgdesc="A minimalistic application for searching, listening, downloading and discovering new music"
8 url=('http://mielophone.github.com')
9 source=(https://github.com/downloads/mielophone/Mielophone/Mielophone_generic_v${pkgver}.air ${pkgname}.desktop)
10 depends=('adobe-air')
11 md5sums=('27a4af3f91039ac266241e6dd00c5778'
12          '2d54e795f0cca3ecdef707bc33fd681e')
14 build() {
15   mkdir -p ${pkgdir}/opt/airapps/
16   mkdir -p ${pkgdir}/usr/bin/
17   cd $srcdir
18   unzip Mielophone_generic_v${pkgver}.air -d ${pkgdir}/opt/airapps/${pkgname}
19   touch $pkgdir/usr/bin/${pkgname}
20   echo "#!/bin/bash" >> $pkgdir/usr/bin/${pkgname}
21   echo "/opt/adobe-air-sdk/bin/adl -nodebug /opt/airapps/${pkgname}/META-INF/AIR/application.xml /opt/airapps/${pkgname}/" >> $pkgdir/usr/bin/${pkgname}
22   chmod +x $pkgdir/usr/bin/${pkgname}
23   install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
24