updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xiamiradio / PKGBUILD
blobf10fa9a01efbc5dd78a2e25d0029864f27266d39
1 # Maintainer: Sychopx <infinity.illusion AT gmail DOT com>
2 pkgname=xiamiradio
3 pkgver=0.01
4 pkgrel=1
5 pkgdesc="a Chinese online music streaming application like Last.fm"
6 arch=('i686' 'x86_64')
7 url="http://www.xiami.com/software/xiamiair"
8 depends=('adobe-air')
9 license=('unknown')
10 source=(http://st.xiami.com/download/air/xiamiRadio_v${pkgver}.air xiamiradio ${pkgname}.desktop)
11 md5sums=("1b7d66033fe189dcf23a0ce6aba4eaa0" "0deedd5a9ecbd6e5d3e533fa88178e5a" "6567183a98cd13af28842c6d87e39654")
12 makedepends=('unzip')
13 build() {
14     install -d ${pkgdir}/{usr/{bin,share/{applications/${pkgname},icons/${pkgname}}},opt/${pkgname}}
15     
16     unzip ${srcdir}/xiamiRadio_v${pkgver}.air -d ${srcdir}/   
17     
18     install -Dm644 ${srcdir}/assets/icon/icon_256.png ${pkgdir}/usr/share/icons/${pkgname}/
19     install -Dm644 ${srcdir}/xiamiRadio_v${pkgver}.air ${pkgdir}/opt/${pkgname}/
20     
21     install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}/
22     install -Dm755 ${srcdir}/${pkgname} ${pkgdir}/usr/bin/${pkgname}