updated on Thu Jan 12 12:00:22 UTC 2012
[aur-mirror.git] / realstudio / PKGBUILD
blob7863cb172f4ef4ac28721b6313a39cc5ff082395
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')
12 install=${pkgname}.install
13 source=(http://realsoftware.cachefly.net/REALStudio${pkgver}/RealStudio${pkgver}.tgz realstudio.desktop)
14 md5sums=('98a6e405ac7583dbcbcf2da9022bb493'
15          'e51ad6593c387d991c29a2059b1053c7')
17 if [[ $CARCH == i686 ]]; then
18   depends+=(gtk2)
19 else
20   depends+=(lib32-gtk2)
22          
23 package() {
24         install -dv -m755 ${pkgdir}/opt/RealStudio-${pkgver}
25   cp -a ${srcdir}/RealStudio${pkgver}/* ${pkgdir}/opt/RealStudio-${pkgver}
26   
27   install -Dv -m644 "${srcdir}/RealStudio${pkgver}/Read Mes/LicenseAgreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LicenseAgreement.txt"
29   install -Dv -m644 ${srcdir}/RealStudio${pkgver}/realstudio.xpm ${pkgdir}/usr/share/pixmaps/realstudio.xpm
31   install -Dv -m644 ${srcdir}/realstudio.desktop ${pkgdir}/usr/share/applications/realstudio.desktop
33   install -dv -m755 ${pkgdir}/usr/bin
34   ln -s "/opt/RealStudio-${pkgver}/Real Studio 2011" ${pkgdir}/usr/bin/realstudio