public
Last active

  • Download Gist
realstudio PKGBUILD.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# Maintainer: Ng Oon-Ee <n g o o n e e AT g m a i l DOT c o m>
# Contributor: Leonardo Miliani <leonardo at leonardomiliani.com>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
 
pkgname=realstudio
pkgver=2012r21
pkgrel=1
pkgdesc="A RAD environment based on BASIC that compiles native applications for Windows, Mac and Linux."
arch=(i686 x86_64)
url=http://www.realsoftware.com
license=(custom)
depends=(lib32-oracle-instantclient-basic10)
optdepends=('cups: For printing support'
'libgtkhtml: Render webpages in the built-in HTML Viewer'
'lib32-libgtkhtml: Render webpages in the built-in HTML Viewer on multilib install')
install=${pkgname}.install
source=(http://realsoftware.cachefly.net/RealStudio${pkgver}/RealStudio${pkgver}.tgz realstudio.desktop)
md5sums=('fea7b049fdff358350c25850df5d59c8'
'fd0a60e87b6e87bb6fff057d03ebcd68')
_srcdirname="RealStudio2012r2.1"
 
if [[ $CARCH == i686 ]]; then
depends+=(gtk2 libstdc++5 mesa)
else
depends+=(lib32-gtk2 lib32-libstdc++5 lib32-mesa)
fi
 
package() {
cd "$srcdir"
 
install -dv -m755 "${pkgdir}/opt/realsoftware/"
cp -a "${_srcdirname}/" "${pkgdir}/opt/realsoftware/RealStudio-${pkgver}"
 
install -Dv -m644 "${_srcdirname}/Read Mes/LicenseAgreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LicenseAgreement.txt"
 
install -Dv -m644 ${_srcdirname}/realstudio.xpm ${pkgdir}/usr/share/pixmaps/realstudio.xpm
 
desktop-file-install realstudio.desktop --dir "${pkgdir}/usr/share/applications/"
 
install -dv -m755 "${pkgdir}/usr/bin"
ln -s "/opt/realsoftware/RealStudio-${pkgver}/Real Studio" "${pkgdir}/usr/bin/realstudio"
}
realstudio desktop file error
1
/home/limao/makepkg/build/pkg/usr/share/applications/realstudio.desktop: error: (will be fatal in the future): value "realstudio.xpm" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
realstudio.desktop
1 2 3 4 5 6 7 8 9 10
[Desktop Entry]
Name=REAL Studio
Comment=A rapid application development environment based on BASIC
Icon=realstudio
Exec=realstudio
Terminal=false
Type=Application
StartupNotify=true
Encoding=UTF-8
Categories=Development;
realstudio.install.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# arg 1: The new package version
post_install() {
update-desktop-database -q
_VERSION=`echo $1 | cut -f-1 -d '-'`
 
# General info
cat <<EOF
 
To launch the IDE, simply type 'realstudio'.
RealStudio is no longer free for Linux except for open
source projects, see www.realsoftware.com/store/opensource
for more details.
 
For printing support in REALStudio you must intall cups.
 
EOF
}
 
post_upgrade() {
update-desktop-database -q
}
 
post_remove() {
update-desktop-database -q
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.