updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / yle-downloader-gui / PKGBUILD
blobc0288b178fec9340e7a6a1e5af7a515bca48a3c5
1 # Maintainer:  Jesse Jaara      <gmail.com: jesse.jaara>
3 pkgname=yle-downloader-gui
4 pkgver=1.3
5 _gitrev=8926895
6 pkgrel=1
7 pkgdesc="Gui for rtmpdump-yle, a app to download videos from Yle-Areena"
8 arch=('i686' 'x86_64')
9 url="http://mpartel.github.com/yle-downloader-gui/"
10 license=('PublicDomain')
11 depends=('rtmpdump-yle' 'qt')
12 source=(https://github.com/mpartel/yle-downloader-gui/tarball/v${pkgver})
13 install=yle.install
15 build() {
16   cd "${srcdir}/mpartel-yle-downloader-gui-${_gitrev}"
18   lrelease yle-downloader-gui.pro
19   qmake
20   make
23 package() {
24   cd "${srcdir}/mpartel-yle-downloader-gui-${_gitrev}"
26   mkdir -p          "${pkgdir}/usr/bin"
27   mkdir -p          "${pkgdir}/usr/share/applications/"
29   cp yle-downloader-gui  \
30                     "${pkgdir}/usr/bin/"
31   cp yle-downloader-gui.desktop \
32                     "${pkgdir}/usr/share/applications/"
34   for png in 16 22 32 48 256; do
35      mkdir -p       "${pkgdir}/usr/share/icons/hicolor/${png}x${png}/apps"
36      cp icons/${png}.png  "${pkgdir}/usr/share/icons/hicolor/${png}x${png}/apps/yle-downloader-gui.png"
37   done
39   mkdir -p       "${pkgdir}/usr/share/icons/hicolor/scaleable/apps"
40   cp icons/yle-downloader-gui.svg \
41                  "${pkgdir}/usr/share/icons/hicolor/scaleable/apps/yle-downloader-gui.svg"
43 md5sums=('af5e48c3b3afa34ddef1127145ac3e26')