Changing name of directory created after source file is extracted

This seems like it should not be a big problem, but I can't figure out how to fix it. I'm writing a PKGBUILD for a program called JAGS (http://calvin.iarc.fr/~martyn/software/jags/). When I use "pkgname = JAGS", the PKGBUILD works perfectly for my purposes, but in the spirit of providing public goods I thought I'd submit it to AUR, which requires the pkgname to be all lower caps. This little detail is causing me problems. (The non-working PKGBUILD is below, and becomes the working PKGBUILD if you switch out the pkgname.)
The source file online is called JAGS-1.0.3.tar.gz. Fine, so I added "$pkgname-$pkgver.tar.gz::" to the beginning of the source url. However, when this file is extracted, it takes the name of the original source file (JAGS in all caps), and then when the build function tries to cd $pkgname-$pkgver it gives errors.
How would you deal with this? Of course I can just change the cd command, but I prefer that the directory be consistent with the package name. Should I add the whole tarball to the noextract argument and include a different tar command in the build function?
pkgname=jags
pkgver=1.0.3
pkgrel=1
pkgdesc="Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation"
arch=('x86_64')
url="http://calvin.iarc.fr/~martyn/software/jags/"
license=('GPL')
makedepends=('gcc-fortran')
source=($pkgname-$pkgver.tar.gz::http://calvin.iarc.fr/~martyn/software/jags/JAGS-1.0.3.tar.gz)
md5sums=('fa94031290e23d47e26affc571f76e38')
build () {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
make DESTDIR="$pkgdir/" install

Change:
cd "$srcdir/$pkgname-$pkgver"
to:
cd "$srcdir/JAGS-$pkgver"
Edit: You may also avoid renaming the tarball on download since this doesn't serve any purpose.
Last edited by foutrelis (2009-11-26 16:56:11)

Similar Messages

  • How do i create one source file that feeds two users on the same pro book?

    how do i create one source file/folder of photos that feeds two users on the same pro book?

    Well you can do exactly the same with a folder of photos, just put in the Users/Shared folder.
    Iphoto is a mite more complex than this. It's a database and so there's a bit more involved.
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How can I change the size of a pdf source file, or, convert it to Word?

    How can I change the size of a pdf source file, or, convert it to Word?

    A lot depends on the form of the PDF. Is it graphics, a scan of a text file, pure text, or other? What version of Acrobat are you working with.
    You can do a save as to get a WORD file, but do not expect great results. The ability to get a decent WORD file depends on what the form of PDF you are working from. If it was created from WORD with tags and all, you might get good results. If not, you might get a lot of messed up results.
    Explain what you are starting with and your ultimate goal. Also check the audit of the file (should be under PDF Optimize) to see where the file information is concentrated (text, fonts, graphics, other).

  • Need Target File  Name  Timestamp  is  same  as Source File name Timestamp

    Hi ,
           I want to genereate Target file name (Target_09062008082030.xml)   but  this time stamp is exactly Sorce FileTime stamp..(Source_09062008082030.xml)..
         so, i want to create a  target file  with the same source file time stamp.. 
    for this.. i sed Message Specific attributes... in both sender and receiver side.. but  that was creating with the complete name.of source file name.. but i want only Timestamp of the source filename... and remaing is the constant.. for this  how can i proceed  ..
    Thanks
    Jain

    See in Sender CC when you set the Adapter Specific Message Attr  for file name it will send the filename in the header of the XI Message.
    To acces this file name inside mapping you need to create a UDF . The type can be any thing as you desire.
    You dont need to pass any variable .if suppose you want the file name (constant) e.g ABC_<timestamp>.xml
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String fileName= conf.get(key);
    //see above your key is FileName which will be sent by the sender CC automatically... You are simply accessing it here using get() method.
    //now ur filename will contain name of the source file... you need to perform a substring operation to get the timestamp and create a new file name as you desire.
    fileName = "New_<timestmp>.xml"; //for e.g
    //set this file name again in header message using put()
    conf.put(key, fileName);
    //when you check on the adapter specific message attr for fileName in the receiver CC ,it will automatically take this new file name value.
    return fileName;
    // if you want to use this new fileName inside your mapping payload (for other fields) you can assign this to any target field,else just assign it to the root tag which will make no difference if this file name is not used anywhere.

  • How to create dynamic source file path for lumira?

    i have source file for lumira  visualization on  D:\lumira\SourceFiles\sample.xlsx;
    also .lums file in D:\lumira\demo.lums
    But when i use the same Lumira folder in different system i have to again create connection for the datasource for fetching the data.So please suggest me how can i use this file so that i don't need to create a new connection again and i should get the updated data i.e. the data should change according to the change in the datasource file.

    Hi,
    this isn't possible.
    you need to go the Connections window in Lumira home page, and repoint the connection to the new location
    regards,
    H

  • Whenever I modify a photo in Iphoto it puts it in a "modified" subfolder. Why can't I move this modified file (I changed name) back to the Iphoto main file so I can see it when I open my photos?

    Whenever I modify a photo in Iphoto it puts it in a "modified" subfolder. Why can't I move this modified file (I changed and saved file name) back to the Iphoto main file so I can see it when I open my photos?

    A good general step for strange issues is to renew the iPhoto preference file - quit iPhoto and go to "your user name" ==> library ==> preferences ==> com.apple.iPhoto.plist and trash it - launch iPhoto which creates a fresh new default preference file and reset any personal preferences you have changed and if you have moved the iPhoto library repoint to it. This may help
    This does not affect your photos or any database information (keywords, faces, places, ratings, etc) in any way - they are stored in the iPhoto library - the iPhoto preference file simply controls how iPhoto works - which is why renewing it is a good first step.
    If that does not cure it backup up your iPhoto library and rebuild it - depress the option and command keys and launch iphoto and use the options there - exact option depends on teh version you have
    And always remember - NEVER make any changes of any sort to the structure or content of the iPhoto library - nothing - no deletions - no name changes - nothing
    LN 

  • Where do I change the default directory for print to file?

    Currently the file is placed in the Mozilla Firefox directory under the Programs files directory. I want to change the default directory.

    This is not solved as I do not know where to change the default directory.

  • JS - Save File as Field Name in the Data Merge Source File

    Hi All - I need some help...
    I'm trying to figure out the JavaScript code to save an indd file using the data merge source file field value.
    As an example...
    Let's say I have an invoice template called template.indd that is linked to invoice.txt.
    To make it easy, let's say the text file has 1 field called "invoice number" with a value of 123
    I run data merge.
    Now I want to save the merged indd file as 123.indd
    I've got everything figured out in JS except getting the source text file data into a variable to use when saving.  This one's been giving me fits for hours!
    Is this possible??
    Thanks very much

    Did you ever get this to work?

  • How to create executable(.exe) file to extract a .zip using winzip self extractor

    Hi i wanted to create an .exe file extract the content from .zip using winzip extractor,  please
    see the below piece of code. the same is working in 32bit machine, but not working in 64bit machine windows server 2008
      private bool CreateExeFile(string directoryPath, string zipFileName)
                bool status = false;
                string emuPath = String.Empty;
                emuPath = System.Configuration.ConfigurationManager.AppSettings["winzipSe32Loacation"];
                //string emuParams = @" -e " + directoryPath + "\\" + zipFileName + ".zip " + directoryPath;
              string emuParams = " " + directoryPath + zipFileName + ".zip -win32 -y "; 
                //string emuParams = " " + directoryPath + zipFileName + ".exe a " +zipFileName +".Exe -mmt -mx5 -sfx" + directoryPath;
                try
                    Process p = new Process();
                    ProcessStartInfo psI = new ProcessStartInfo(emuPath, emuParams);
                    psI.CreateNoWindow = false;
                    psI.UseShellExecute = true;
                    p.StartInfo = psI;
                    p.Start();
                    p.WaitForExit()
                    status = true;
                catch
                    status = false;
                return status;
    Regards
    Bharath

    Hello,
      What error with you program?
     if the reply help you mark it as your answer.
     Free No OLE C#
    Word,  PDF, Excel, PowerPoint Component(Create,
    Modify, Convert & Print) 

  • How to change the replication group information after db files are created

    Since group information is persisted in the database, I am wondering if there is a way to update the information.
    We want to implement some kind of Berkeley DB master relay mechanism for our two data centers, which has slow link in between. Basically have one master populating a database file and launch another two node as master to replay that to other nodes of its own group. It will be much efficient this way so we don't have to copy the data multiple times over the slow link.
    We periodically (once a day) update the Berkeley DB content from customer's feed on a backend node and upload (rsync) the Berkeley DB File to two the data centers. We would like to have a master node in each data center to read the pre-populated data file, replicate the changes to the web node (read only) while they are still running. I simulated local and if I trick the nodeName and nodeHostPort setting, it should work (basically, fake the replication node on the backend node using tampered hostfile so they get registerred). However, it is not very convenient and definitely a dangerous hack on the production servers.
    If there is a way, after the creation, to update the group information (for example, change all the nodes information) without corrupt the log file/replication stream, it will be much easier for us. Basically, we would like to have the node/group information and data file de-coupled?
    Any ideas how to do that, or is there a better way to design such a replay of data using Berkeley DB?
    Thanks in advance!

    2. You mentioned to not clean up the log file. Is there a point where I can safely call clean up on the environment when BDB is still online as I can imagine we will run out of space very soon if we don't clean up.The approach outlined above (steps 1 to 5) will ensure that no log files are deleted on A while you are updating B and C. The use of DbBackup ensures this. For more information on how this works, see the DbBackup javadoc.
    Whether this causes you to run out of disk space on A is something you'll have to evaluate for yourself. It depends on the write rate on A and how long it takes to do the copy to B and C. If this is a problem, you could make a quick local copy of the environment on A, and then transfer that copy to B/C. But you must prohibit log file deletion during the copy, using DbBackup, or the copy will be invalid.
    You should perform explicit JE log cleaning (including a checkpoint) before doing the copy to B/C. This will reduce the number of files that are copied to B/C, and will reduce the likelihood that you'll fill the disk on A. See the javadoc for Environment.cleanLog for details on how to do an explicit log cleaning.
    In your earlier post, it sounded like the updates to A were in batch mode -- done all at once at a specific time of day. If so, you can do the copy to B/C after the update to A. In that case, I don't understand why you are afraid of filling the disk on A, since updates would not be occurring during the copy to B/C.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Using a dialog window to select a name and directory to save the file

    Hi there
    I have a problem with the FILE_SAVE_DIALOG method or better with the windows that will be shown.
    Before I save a file (e.g. PDF file) on the presentation server (the PC), I want to open a dialog window to have the option to give another directory and file name, under which I will save the file.
    Therefore I use the method CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG. I found many information about this FILE_SAVE_DIALOG in this forum, but these tips didn't satisfy me.
    The main problem is the FILE_FILTER. How to use this filter (is it a STRING?) properly, when I want to have a list in the dialog window? Nothing worked till now.
    I use ERP 2005 with JAVA 1.4.1-07.
    My Code:
    DATA: fileName         TYPE  STRING,
          path             TYPE  STRING,
          workdir          TYPE  STRING,
          user_action      TYPE  I,
          encoding         TYPE  ABAP_ENCODING.
        fileName = I_FILENAME.
        path = I_PATH.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
           EXPORTING
             WINDOW_TITLE         = 'Save Adobe PDF file'
    *         WITH_ENCODING        = 'X'
             INITIAL_DIRECTORY    = workdir
    *         DEFAULT_EXTENSION    = '*.pdf'
             DEFAULT_FILE_NAME    = fileName
             FILE_FILTER          = '*.pdf'
             PROMPT_ON_OVERWRITE  = 'X'
          CHANGING
             FILENAME             = fileName
             PATH                 = path
             FULLPATH             = fullpath
             USER_ACTION          = user_action
             FILE_ENCODING        = encoding
          EXCEPTIONS
             CNTL_ERROR           = 1
             ERROR_NO_GUI         = 2
             NOT_SUPPORTED_BY_GUI = 3
             others               = 4.
        IF SY-SUBRC <> 0.
          EXIT.
        ENDIF.
        IF user_action <> CL_GUI_FRONTEND_SERVICES=>ACTION_OK.
          EXIT.
        ENDIF.
    When I call this method with these parameters, I get the dialog window, but there is no filtering for PDFs.
    I also tried the ideas with:
      FILE_FILTER = 'Adobe files (*.pdf)|(*.pdf)'
    and so on. But nothing made the dialog window work properly, even the selection list didn't show the right content to select.
    Who can help with this method SAVE_FILE_DIALOG?
    Thanks
    Frowin

    HI,
    check this program.
    <b>
    report ZTEST2.
    data:  file type string,
           path type string,
           file_path type string.
    data: itab type standard table of cskt.
    start-of-selection.
      SELECT * FROM cskt INTO TABLE itab.
      call method cl_gui_frontend_services=>file_save_dialog
          exporting
                    FILE_FILTER = '*.PDF'
          changing FILENAME = file
                   path     = path
                   fullpath = file_path.
      check not file_path is initial.
      call method cl_gui_frontend_services=>gui_download
        exporting    filename                = file_Path
                      WRITE_FIELD_SEPARATOR = 'X'
         changing    data_tab                = itab.
    </b>
    REgards,

  • How to change name of Broadcaster/Precalculation generated workbook file ?

    Hello,
    I am using the Broadcaster in 7.0 in order to precalculate workbooks and to send them via email to the users.
    The users receive an email with in attachment the workbook with (for example) as name :
    WORKBOOK_VZD06S2M7I4PY7NILPNH60WYZ.
    The second part is the technical ID (workbook_id) of the workbook. But what the users want to have as filename in their mail is the description of the workbook (to find in table RSRWBINDEXT)
    This doesn't look like too big a change, but the problem is this filename is generated automatically and there is nowhere an option to change this.
    So I started looking in programs and classes to find where this filename is set (in order to change the coding there) but I have not been able to find the exact place.
    I came up with following classes (and the methods there under) :
    CL_RSR_PREC_SERVER
    CL_RSRD_ITEM_BROADCASTER
    CL_RSRD_UTILITIES
    but I can't find the exact place.
    Does anybody know where this can be changed, or has another solution perhaps ?
    Thanks in advance !
    Axel

    Hi Axel,
    We had similar kind of requirement and here is how we solved it.
    As mentioned in the various blogs, its NOT possible to broadcast the Workbooks with
    the file name instead of the technical id. But there is a workaround for this requirement.
    This can be achieved through Backend
    1) Go to SE38 program  RS_PREC_PLAN ( Precal test program). Enter the Technical id and
    the Variant ( Its mandatory) for the workbook and execute by entering the emai id.
    you will receive the workbook as the attachment with the File name and not technical id.
    2) The only issue here is the subject of the mail will always be TEST.
    3) Create a copy of this program Z_RS_PREC_PLAN and have the Subject and date field in the Selection screen
    . you can make changes so that the date and the Text for the subject will be populated with the values you enter in the selection screen.
    Hope this will help in your requirement
    Regards,
    BINETWEAVER2004s

  • Windows Server 2012 R2 robocopy not copying inherited directory permission from source file server to destination ?

    Can anyone here please help me with Robocopy on Windows Server 2012 R2 to copy the file server content from \\OldFileServer\Data share into the local S:\Data drive ?
    here's my script that I use to copy 11 TB of file server contents:
    robocopy.exe "\\OLDFILESERVER\Data" S:\Data *.* /E /SECFIX /SEC /XO /ZB /COPYALL /MIR /DCOPY:DAT /R:0 /W:0 /NP /NFL /NDL /TEE /LOG:"G:\robocopy.log"
    Any kind of help and assistance would be greatly appreciated.
    Thanks
    /* Server Support Specialist */

    Hi,
    Based on my tests, inherited permissions will not be copied using robocopy.exe.
    That’s because that after we copy or move an objects to another volume, the object inherits the permissions of its new parent folder.
    My suggestion for you is to disable the inheritance on corresponding subfolders, and Convert inherited permissions into explicit permissions on this object. After that, those permissions can be copied.
    Here are some references below for you:
    Robocopy not copying NTFS permissions
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b36748cd-14d1-47a5-9fb6-878ca93ad6fc/robocopy-not-copying-ntfs-permissions
    How permissions are handled when you copy and move files and folders
    http://support.microsoft.com/kb/310316
    Powershell ACL commands? NTFS Permissions - Turn inherited permissions into explicit permissions and remove inheritance
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/884e2837-ec1d-4937-83a5-722cd00d7d16/powershell-acl-commands-ntfs-permissions-turn-inherited-permissions-into-explicit-permissions-and?forum=ITCG
    Best Regards,
    Amy

  • Warning: Unknown property 'mso-style-name'. Declaration dropped. Source File: about:blank Line: 108, Column: 16 Source Code: {

    For the last month, in both of my computers every time i send an email this error above apear, so i need to put cancel, the accept and send it again.

    Are you composing messages in Word and then pasting them into a TB Write window?

  • How to create a war file from extracted file-system on server?

    Hi!
    On a weblogic I have
    to offer a test environment
    where users can exchange classes in the folders
    of the extracted archieve for faster testing.
    Now I need a command (should be easily to use) where
    you can achieve the following logic
    create war-file host:user:passwort/webapp-folder
    Is there anything? Up to now I havent find someting!
    Nice greetings Starki

    alternatively you could create the required directory structure and use winzip to zip the file .. save the file with .WAR extention .

Maybe you are looking for

  • Account Based CO-PA Quantity Not updated in COEP-MEGBTR

    Hello, We use account based CO-PA. For  certain Billing transactions, the quantity is not coming to the BW. On analysis, we notice that the line item document created in COEP table is not updating the quantity field MEGBTR but only the field MBGBTR.

  • HT1296 cannot sync my own music to my i-pod

    Cannot sync my own music to my i-pod touch

  • How to I get the built-in iSight camera to work?

    My built-in iSight camera is working but the "capture" button is greyed out and I can't record.

  • Nokia Lumia 1520 troubles

    I purchased the Lumia 1520 6 months ago because of its large screen.  When I asked about a case or screen protector, the store I purchased it from had none and directed me toward the department stores and online.  The department stores do not support

  • Idoc configuration,rfc and port

    whenwe are sending data  from file to idoc then in the receiver communication channel do we have to write the rfc destinations and ports of r/3(Receiver systems)  i.e created in the r/3 systems or that created ion the sender system