AUR - add application.desktop

Hello Folks,
There's an program (OpenSCAD) in the AUR which does not provide any .desktop file to add the program to the start menu or however you call that thing.
Now I tried to do that myself so I can submit a patch. Therefore, I took a look to another program (slic3r) from the AUR which does have a working .desktop file.
First, the "working" program, slic3r:
PKGBUILD:
pkgname=slic3r-git
pkgver=20120901
pkgrel=1
pkgdesc="Slic3r is an STL-to-GCODE translator for RepRap 3D printers, aiming to be a modern and fast alternative to Skeinforge."
arch=('any')
url="http://slic3r.org/"
license=('GPL')
depends=('perl' 'perl-moo' 'perl-moo' 'perl-boost-geometry-utils' 'perl-math-clipper' 'perl-math-convexhull' 'perl-math-geometry-voronoi' 'perl-math-planepath')
makedepends=('git')
optdepends=('perl-wx: GUI support'
'perl-growl-gntp: notifications support via growl'
'perl-net-dbus: notifications support via any dbus-based notifier'
'perl-xml-sax: Additive Manufacturing File Format (AMF) support')
provides=('slic3r')
conflicts=('slic3r')
source=('slic3r.desktop')
md5sums=('c997a07f658061d29b221cf7fd07ff97')
_gitroot="git://github.com/alexrj/Slic3r"
_gitname="Slic3r"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
# ENV for perl
export PERL_MM_USE_DEFAULT=0 PERL_AUTOINSTALL="--skipdeps" \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null SLIC3R_NO_AUTO=1
# Nasty fix for useless Growl dependency ... please post in comment real fix, if u know one ;)
# sed -i "s/ 'Growl/\#&/" Build.PL
msg " ⚠ DO NOT respond to any question with 'yes'. Report a bug in comment instead.\n"
# Cuz cpan will install fixes to $HOME ... which is not the point of this package
# Build stage
{ /usr/bin/perl Build.PL &&
./Build &&
./Build test &&
./Build install; } || return 1
# Icons " current Build.PL is not really geared for installation "
install -d $pkgdir/usr/bin/vendor_perl/var
install -m 644 $srcdir/$_gitname-build/var/* $pkgdir/usr/bin/vendor_perl/var/
install -d $pkgdir/usr/share/applications
install -m 644 $srcdir/slic3r.desktop $pkgdir/usr/share/applications/
.desktop:
[Desktop Entry]
Name=Slic3r
Comment=STL-to-GCODE translator for RepRap printers
Exec=slic3r.pl --gui
Icon=/usr/bin/vendor_perl/var/Slic3r_128px.png
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Development;Application;
Now here's what I tried with OpenSCAD:
PKGBUILD
# Maintainer: Pierre DOUCET <pierre at equinoxefr.org>
pkgname=openscad
pkgver=2011.12
pkgrel=1
pkgdesc="OpenSCAD is a software for creating solid 3D CAD objects."
arch=('i686' 'x86_64')
license=('GPLv2')
url="http://openscad.org/"
source=("https://github.com/downloads/openscad/openscad/${pkgname}-${pkgver}.src.tar.gz" "openscad.desktop")
md5sums=('4acd522ccdf368c081e916bd280df260' 'b1e704b3d37f83c293598fcfd5dcd8cc')
depends=('qt' 'cgal' 'eigen' 'opencsg' 'bison' 'flex' 'gcc')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
qmake || return 1
make || return 1
install -D openscad $pkgdir/usr/bin/openscad
install -m 644 $srcdir/openscad.desktop $pkgdir/usr/share/applications/
.desktop
[Desktop Entry]
Name=OpenSCAD
Comment=software for creating solid 3D CAD objects
Exec=openscad
#Icon=/usr/bin/vendor_perl/var/Slic3r_128px.png
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Graphics;Application;
Here's the output from makepkg -si
==> Making package: openscad 2011.12-1 (Wed Sep 19 10:39:54 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found openscad-2011.12.src.tar.gz
-> Found openscad.desktop
==> Validating source files with md5sums...
openscad-2011.12.src.tar.gz ... Passed
openscad.desktop ... Passed
==> Extracting Sources...
-> Extracting openscad-2011.12.src.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
make: Nothing to be done for `first'.
install: target ‘/home/tectu/build/openscad/pkg/usr/share/applications/’ is not a directory: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
Can anybody tell me what I am doing wrong?
~ Tectu

Your install command is failing - the error message tells you exactly what's wrong, and the solution is in the slic3r PKGBUILD that you used for inspiration.
I would, however, suggest a thorough examination of the install man page, as there is a better way to do it.

Similar Messages

  • When I try to click and drag items to the desktop, I receive the following error: You can't open the application "Desktop" because it may be damaged or incomplete.

    I am not able to edit my desktop, I receive the following error: You can’t open the application “Desktop” because it may be damaged or incomplete.
    Also, I cannot rearrange folders, add folders, or move things out of my trash back to the desktop.

    Try using another account and see if the problem persists.
    Try booting into the Safe Mode and see if the problem persists.
    Starting Up in the Safe Mode
    What is Safe Mode

  • How do I add a desktop link to gmail?  I have one email account as my safari home page because it has trouble with apple mail, but I want a one-click link to two other email accounts.

    How do I add a desktop link to additional email accounts?  I have one email account as my safari home page because it has trouble with apple mail, but I want a one-click link on my desktop that takes me to two other email accounts.

    Can you set up a rule in your old account to forward mail to your new account and then delete it from the old account?
    (1012)

  • How to add applications of Agent-managed-Device

    Hello,
    we just can´t get the Application-Monitoring get to work. We followed dozens of guides and read hundreds of forum-posts about it but nobody seems to have our problem.
    So here´s the thing:
    We downloaded/installed the "Application Monitoring" MP.
    Klicking on the "Applications" view in this MP, there is no data shown.
    We sure know that you first HAVE TO add Applications, but
    HOW?
    There is no option in Authoring or Administration.
    You can´t even select which devices OM should scan for Applications.
    Before I forget: We do NOT want to monitor local processes.
    First, we got that to work and second, it´s pointless anyway(you can see with your bare eyes if a process is running or not...)
    Thanks in advance for your help guys! We are really lost here.
    P.S. We´re from Germany, so please excuse spelling-mistakes etc.

    Hi,
    What sort of monitoring do you want for your application?
    APM integrated to SCOM 2012 is only for managed applications (.NET and Java), and it also suits well (and actually is intended for this purpose) for your custom apps monitoring, not only for Microsoft apps as you wrote. But these should be .NET/Java-stack
    based apps.
    Except of APM SCOM provides more other monitoring capabilities, some of which could be used to monitor third-party unmanaged apps:
    - Web Application Availability Monitoring
    http://technet.microsoft.com/en-us/library/hh881883.aspx
    - Web Application Transaction Monitoring
    http://technet.microsoft.com/en-us/library/hh457553.aspx
    - GSM Monitoring
    http://blogs.technet.com/b/momteam/archive/2012/06/19/global-service-monitor-for-system-center-2012-observing-application-availability-from-an-outside-in-perspective.aspx
    - Windows Service Monitoring
    http://technet.microsoft.com/en-us/library/hh457595.aspx
    - Process Monitoring
    http://technet.microsoft.com/en-us/library/hh457551.aspx
    - Monitoring capabilities provided by specific MPs (for example, SharePoint 2010 MP, BizTalk MP, etc)
    http://unofficialsystemcentercatalog.wordpress.com/2012/12/27/operations-manager-is-there-a-management-pack-for/
    - etc
    As you see SCOM brings much, but APM, the current forum branch is dedicated to, is only for managed code apps, because it works as profiling wrapping the calls of your application. The profiling is not applicable to unmanaged (for example, plain C++)
    code.
    Igor Savchenko, VIAcode Consulting LLC (http://www.viacode.com/)

  • Applications Desktop Integrator release 7.2(latest) for Windows

    Dear all,
    We have installed oracle Apps 11i (11.5.10)under Redhat Linux AS 3.0.
    Now we need Applications Desktop Integrator release 7.2 (latest)for Windows.
    Where we can get ADI. Please give us the exact download URL.
    Regards
    Mahtab

    In 11i10 ADI 7.2 is included in the startCD. You can launch the startCD/Disk1/rapidwiz/ClientWiz.cmd
    to start the wizard for client applications
    or startCD/CL3/SetupAdi.exe to install ADI directly.

  • How to add application to sidebar in lion?

    sounds like a stupid question.
    used to could add applications to sidebar, now if i try drag and drop apps or app alias into sidebar, it won't expand betwwen icons and allow room. just wants to add (move) it into the default folders.
    adding personal folders still works, just not apps.
    what gives?
    curious too, how can i add a space bar between groupings of like folders on sidebar?

  • I need Web Applications Desktop Integrator...for window xp

    I need Web Applications Desktop Integrator...for window xp (window xp as client with oracle 11i)
    please share any link or website for download/setup
    thanks &regards,
    A.A

    893544 wrote:
    I need Web Applications Desktop Integrator...for window xp (window xp as client with oracle 11i)
    please share any link or website for download/setup
    thanks &regards,
    A.AAre you looking for client-based ADI or Web ADI ? If the former, see Helios' reply above.
    For Web ADI in 11i, see these MOS Docs (and the docs that they link to)
    FAQ: Certification Information For Client ADI And Webadi [ID 1251224.1]     
    Which Customers Need to Migrate From Client/Server ADI to WebADI and Report Manager? [ID 458589.1]     
    Web Applications Desktop Integrator (Web ADI) List of Patches [ID 726989.1]     
    HTH
    Srini

  • Oracle Applications Desktop Integrator, office 2007

    Any of you know if there is a way that Oracle Applications Desktop Integrator works with office 2007? thanks for any response

    Webadi have a look at note 466229.1 for a appropriate viewers
    ADI Version 7.2 have a look at note 443515.1 for the current status and patches required.

  • Add Applications to Desktop Dock

    I have set up additional accounts for our kids on my MacBook Pro.  When logging onto their accounts the dock at bottom of desktop screen only shows Finder, Application Folder, Docs Folder, Shared Folder & Trash.  When I try to drag an application icon to the left side of the doc for shortcut clicking, it will add it to the left but then remove it when I close the application.  How can I get selected application icons to stay over on the left side so they are easily there when my kids logon to their accounts?

    I just tried that and it stays in the Dock (left side) while app is open but when I log out and log back in the icon is no longer in the Dock (left side).  I have to go back through the app folder and re-open it.  On my main (admin) account login the icons stay in the left side regardless of whether it's open or not.  This is what I'm trying to accomplish for kids' desktop so that they don't have to go searching for appropriate apps.

  • Error in Cisco Application Desktop

    I have the following error when i install the Cisco Agent Desktop application(CAD) with version 7.02 release 3 and i am using cisco call manger 4.2(3) and IPCC Enterprise version (7).

    file that is creating the error is put down during the base install of the agent/supervisor package. This file lives in the c:\windows\system32 directory once the install is completed correctly. I would recommend that you use the add/remove program tool in windows to remove the agent software first. Second, remove the supervisor if installed. Last would be to remove the agent base software. Once removed, you can remove the Cisco directory under c:\program files. Reboot the desktop system and reinstall.

  • How do I add applications when they are denied?

    Every time I go to open an e-mail, I get a message stating "Your browser must have Flash 9.0 or higher installed to add this application." However, I cannot download this application. At times, I get other messages stating that I need to tell my browser to allow access (such as to att.net), but I don't know how to do this. Any help is appreciated.

    1.Download the Flash setup file from here: <br />
    [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
    Save it to your Desktop.<br />
    2. Close Firefox using File > Exit <br />
    then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
    {XP: Ctrl+Alt+Del = Processes tab}
    3. Then run the Flash setup file from your Desktop.

  • How to add multiple desktop on mac os x?

    On my previous version of Mac OS X I was able to add as much desktops I want by just going into upper right corner with my pointer and clickin on the sign +. Now, after replacing my SSD and installing new OS I don't have that option. Does anyone knows how to add desktops on Mac OS 10.7.5? Thank you

    Mission Control – Work in Multiple Spaces  
    If you want to keep the desktops in a specific order, go to System Preferences/Mission Control and uncheck the box " Automatically rearrange spaces based on most recent use." You can also select the box below that so if you open an application, you'll be taken to that space.
    If you want to cut down the number of desktops, there is also an option to remove the Dashboard as a desktop and have it work like it did in Snow Leopard. That can be set in System Preferences/Mission Control by deselecting Show Dashboard as a  space. You can access the Dashboard by clicking on the Dashboard icon in the dock or using the FN 12 key.

  • Create shortcut and add application to Dock after install

    Hello everybody, I've developped a Qt application with Xcode. It works correctly and I've created a setup that installs the application and other files. But I've not able to create a shotcut on the desktop nether to add my application to finder by default. Also, I want to give it an specific icon.
    Can anyone help me to all this :
    1) Create a shortcut of the application after install
    2) Add the application to the Finder and Dock
    3) Give to my application a specific icon
    I'm using Xcode.
    Thank you very much. Best regards.

    HI
    i have developed small application on iphone simulator,i want to create setup file to install how u have created installer please send me instruction or document to create the set up file thanks in advance
    my mail -id: [email protected]

  • ARD Unix cmd to add application to docks on lab iMacs not working

    Hello,
    I've been trying to add an application to the dock of 23 iMacs in a computer lab using Apple Remote Desktop. The ARD 3.1 Admin Guide (p. 133-34) provides a Unix command for doing this, but I haven't had any success.
    After sending the command, there is a green check next to the item in the task history and text indicating the command was successfully sent. It all seems to go swimmingly except that the application I tried to add to the dock fails to appear.
    Here's the command provided in the ARD Admin guide with the addition of the path to the application I want to add to the dock (i.e., /Applications/Google Earth.app):
    defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-
    data</key><dict><key>file-data</key>
    <dict><key>_CFURLString</key><string>/Applications/Google Earth.app
    </string><key>_CFURLStringType</key><integer>0</integer></dict>
    </dict></dict>';killall -HUP Dock
    I'm not an experienced Unix user and may be making some fundamental errors. Any and all help is appreciated. Thanks in advance.
    Note: I originally posted this message to the Apple Remote Desktop discussion, but realized it might be equally relevant to post it here.

    The problem was solved thanks to ubermark's reply:
    http://discussions.apple.com/thread.jspa?messageID=8331363#8331363

  • Trying to add Applications icon to Dock

    I reinstalled my Mac OS, Maverick. How do I add the Applications folder to the Dock? When I try, it looks as if all my apps are being copied to the newly created Dock icon for Applications, because of the blue progress bar under the icon. And it seems to be stuck as it has not moved in quite awhile.

    Hello there, Chris.
    The following Knowledge Base article explains how to add a folder to the Dock:
    Mac Basics: The Dock
    http://support.apple.com/kb/ht2474
    Adding and removing Dock items
    If you want to add an application to the Dock, click the Launchpad icon in the Dock and drag the application icon to the Dock; the icons in the Dock will move aside to make room for the new one. If you want to add a file or folder to the Dock, just drag its icon from any Finder window (or the desktop) and drop it on the Dock. The resulting icon that appears in the Dock is actually an alias of the original item (it's kind of a pointer to your original item). If you drag an application or file onto the Dock, you'll be able to open it anytime by simply clicking its docked icon. If you drag a folder onto the Dock, a Finder window of the folder's contents will display when you click the folder icon in the Dock.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

Maybe you are looking for