updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / realstudio / PKGBUILD
blob6d86e357e42d8b0765f95f91ff0a9f76b3a41c2c
1 # Maintainer: Ng Oon-Ee <n g  o o n  e e AT g m a i l DOT c o m>
2 # Contributor: Leonardo Miliani <leonardo at leonardomiliani.com>
3 pkgname=realstudio
4 pkgver=2011r4
5 pkgrel=1
6 pkgdesc="A RAD environment based on BASIC that compiles native applications for Windows, Mac and Linux."
7 arch=('i686' 'x86_64')
8 url="http://www.realsoftware.com"
9 license=('custom')
10 depends=()
11 optdepends=('cups: For printing support'
12             'libgtkhtml: Render webpages in the built-in HTML Viewer'
13             'lib32-libgtkhtml: Render webpages in the built-in HTML Viewer on multilib install')
14 install=${pkgname}.install
15 source=(http://realsoftware.cachefly.net/REALStudio${pkgver}/RealStudio${pkgver}.tgz realstudio.desktop)
16 md5sums=('98a6e405ac7583dbcbcf2da9022bb493'
17          'e51ad6593c387d991c29a2059b1053c7')
19 if [[ $CARCH == i686 ]]; then
20   depends+=(gtk2)
21 else
22   depends+=(lib32-gtk2)
24          
25 package() {
26         install -dv -m755 ${pkgdir}/opt/RealStudio-${pkgver}
27   cp -a ${srcdir}/RealStudio${pkgver}/* ${pkgdir}/opt/RealStudio-${pkgver}
28   chmod 755 -R ${pkgdir}/opt/RealStudio-${pkgver}
29   
30   install -Dv -m644 "${srcdir}/RealStudio${pkgver}/Read Mes/LicenseAgreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LicenseAgreement.txt"
32   install -Dv -m644 ${srcdir}/RealStudio${pkgver}/realstudio.xpm ${pkgdir}/usr/share/pixmaps/realstudio.xpm
34   install -Dv -m644 ${srcdir}/realstudio.desktop ${pkgdir}/usr/share/applications/realstudio.desktop
36   install -dv -m755 ${pkgdir}/usr/bin
37   ln -s "/opt/RealStudio-${pkgver}/Real Studio 2011" ${pkgdir}/usr/bin/realstudio