My first PKGBUILD - stock ticker style output on the console

I created my first PKGBUILD of a simple program I wrote called "ticker" which just converts input text to scrolling stock ticker style output on the console.
The PKGBUILD and a screenshot are at http://www.fial.com/~scott/ticker 
I'd like to submit it to the AUR, but I'd really appreciate any comments/advice first.
Scott
Last edited by scottfial (2010-07-04 00:38:38)

Writing what it's about in your post (title) would help building interest, I suppose.

Similar Messages

  • Can you change the color of the output in the console?

    When you run your program using NetBeans the color of the output in the console window is black. Is there any way to change the color of the output to say blue?

    Hi AJL,
    There is no way to color rows of the table control in a SUDialog. You could consider using the ActiveX container control and using the Microsoft ActiveX table control, which might have that functionality. Note though, that then you need to either ensure that control is always on all your client machines or make provisions for it to be installed/registered.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Capturing all the text that I output to the console

    HOw do I capture all the text I output to the console to a file. I know how to open filebuffers and all that, well I don't really know, but I have some sample code that I can follow. I am just wondering if I am suppose to just open the file buffer, then run my normal application with all the system.out.println() statements and then have that fed to a file? Right now I am using a lot of println() statements to debug, and I would like to be able to push it into a file so I can look at it later, without having that console line limitation.
    My guess is to just open up a filestream and have it open and then run my normal code and then close the filestream at the end. Can somebody let me know if that is good enough...
    let say I have a static method hat outputs a bunch of text, can I do this
    filestream open
    static method run
    filestream close
    and that's it.

    I could see why you'd want to automatically
    route output to a file, that normally would
    go to the console. There might be use for
    capturing output lines.
    If the question is to avoid having to specify
    the output on the command line, then what
    one can do is to create a ".bat" file.
    Ex.
    kstring.bat
    ======================================
    @java kstring > kstring.out
    Now in executing, you'd just ==> kstring
    Which will execute the kstring.bat,
    and since "> kstring.out " is inside
    the "bat", your output goes to the
    kstring.out, instead of the console.
    This would be another way, saves all the
    redirection in Java code. Just use the
    DOS command inside a xxx.bat file.
    Just my opinion, may not work in your
    circumstance.
    -- gte99te

  • Directing std output to the console window

    I am trying to direct the standard output from a separately executed console program to the console window belonging to the running application. How can I do this?
    For example, in the following code, if I execute the simple Windows 'dir' command using .exec, how can I make the output go to the application's console instead of going to a separate window?
    import java.io.*;
    class dir
      public static void main(String[] args)
        try
          Process runprogram = Runtime.getRuntime().exec("cmd.exe /C start dir");             
        catch(IOException e){}
    }

    First I will post the mandatory link for everybody who asks about Runtime.exec():
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Read that and notice the bit about getting data from the process's output stream. You can copy that data to the console.

  • Output to the console

    Hi,
    How can we output easily a message to the console when running a function?

    You will also have to do a
    set serveroutput on;
    on the console to get the messages.
    Rajat,
    OTN Team @IDC

  • How do I get my iphone to simultaneously display weather, stock ticker, and calendar at the same time?

    this happened once by accident and I don't know how I did it.

    When your iPhone is unlocked use two fingers on the black bar at the top and pull it down.

  • How to get the select * from emp table output on the console  using java

    public class software {
          * @param args
         static final String JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";
         static final String DATABASE_URL = "jdbc:oracle:abc";
         private static Connection connection;
         private static Statement statement;
         public static void main(String[] args) {
              // TODO Auto-generated method stub
         try {
              System.out.println("-------THIS IS THE Class.forNameJDBC_DRIVER");
                   Class.forName(JDBC_DRIVER);
                   System.out.println("THIS IS THE Class.forNameJDBC_DRIVER");
                   connection = DriverManager.getConnection(DATABASE_URL, "abc",
                   "abc");
                   System.out.println("THIS IS THE connection abc ,abc");
                   statement = connection.createStatement();
                   //Query to find the values in the EMP table.
                   ResultSet resultSet = statement.executeQuery("SELECT * from EMP");
                   if(resultSet.next()){
                   System.out.println("THESE ARE THE VALUES IN EMP TABLE:"+resultSet);  /// How can i get all the values record wise on the  console ??????
                   resultSet.close();
         catch (ClassNotFoundException classNotFound) {
                   System.out.println("Driver not Found"+classNotFound.getMessage());
              } catch (SQLException sqlException) {
                   System.out.println("SQL Exception - bad sql");
                   System.out.println(sqlException.getMessage());
    }

    1sai
    Please assign the dukes here and in your previous threads.
    See [http://wikis.sun.com/display/SunForums/Duke+Stars+Program+-+How+it+Works]
    You are currently the all time career leader in un-awarded dukes, with including this thread 75 unawarded dukes for questions you marked as answered.
    It's even worse when you look and see that you have awarded many dukes as well. So you do know how to do it. You're just too lazy and rude to be bothered.
    Don't be a lazy wank.

  • Made my first PKGBUILD... :)

    Hi Forum,
    I have made my first PKGBUILD, it is a hack of the PKGBUILD of BRLCAD, which I have used to pack Ofeli, http://www.ofeli.net/, to /usr{bin lib share doc} as required by Archer Philosophy.
    Here it is :
    # Maintainer: Loui Chang <louipc dot ist at gmail company>
    pkgname=ofeli
    pkgver=2.0.2
    pkgrel=1
    pkgdesc="Finite elements analysis Package"
    url="http://brlcad.org"
    license=('LGPL' 'BSD' 'custom:BDL')
    #install=brlcad.install
    arch=('i686' 'x86_64')
    #makedepends=('bc' 'libxslt')
    #depends=('boost' 'flex' 'libpng' 'zlib' 'libgl' 'tk>=8.5')
    #options=('!libtool')
    source=(ofeli-2.0.2.tar.gz)
    build() {
    cd $srcdir/$pkgname-$pkgver
    ./configure --prefix=/usr
    # --with-opengl=/usr/lib \
    # --with-tcl=/usr/lib \
    # --disable-step \
    # --disable-tkhtml3 \
    # --disable-tkimg \
    # --disable-opennurbs
    # For opennurbs, etc
    # gcc -I/opt/brlcad/include -L/opt/brlcad/lib
    make || return 1
    package() {
    cd $srcdir/$pkgname-$pkgver
    make DESTDIR=$pkgdir install || return 1
    # install -D -m755 $srcdir/brlcad.sh $pkgdir/etc/profile.d/brlcad.sh
    # mkdir -p $pkgdir/usr/share/licenses/$pkgname
    # cp $srcdir/$pkgname-$pkgver/doc/legal/bdl.txt \
    # $pkgdir/usr/share/licenses/$pkgname
    # cp $srcdir/$pkgname-$pkgver/doc/legal/bsd.txt \
    # $pkgdir/usr/share/licenses/$pkgname
    #md5sums=('8ccbc692d84854c9b0599b6d1255f916'
    # '4922e66ff0835169374b9c0569c2f569')
    As you all can see, I hacked parts of this script so as to run a simple ./configure make make install in $PKG/usr fakeroor, and pack it into an Arch package.
    I have lots of questions, one at a time...
    1.) How do I know that something wont be over written as soon as I run pacman -U my-pkg.tar.xz  ?
    2.) Since Directory structure of Ofeli respects Linux file structure, I decided to drop it in /usr... If it did not, I would probably ship it to /opt, but why /usr instead of /usr/local....?
    3.) I tried to make a similar hack with mbdyn,  http://www.aero.polimi.it/mbdyn/, but I failed. Standard autoconf install of mbdyn complies with ./configure make make install scheme, and it creates /usr/local/{bin lib libexec share }
    When I ran this PKGBUILD
    #  Maintainer: Loui Chang <louipc dot ist at gmail company>
    pkgname=mbdyn
    pkgver=1.3.15
    pkgrel=1
    pkgdesc="A MultiBody Dynamics analysis package"
    url="http://brlcad.org"
    license=('LGPL' 'BSD' 'custom:BDL')
    #install=brlcad.install
    arch=('i686' 'x86_64')
    #makedepends=('bc' 'libxslt')
    #depends=('boost' 'flex' 'libpng' 'zlib' 'libgl' 'tk>=8.5')
    #options=('!libtool')
    source=(mbdyn-1.3.15.tar.gz)
    build() {
        cd $srcdir/$pkgname-$pkgver
        ./configure --prefix=/usr
    #    --with-opengl=/usr/lib \
    #    --with-tcl=/usr/lib \
    #    --disable-step \
    #    --disable-tkhtml3 \
    #    --disable-tkimg \
    #    --disable-opennurbs
    # For opennurbs, etc
    # gcc -I/opt/brlcad/include -L/opt/brlcad/lib
        make || return 1
    package() {
        cd $srcdir/$pkgname-$pkgver
        make DESTDIR=$pkgdir install || return 1
    #    install -D -m755 $srcdir/brlcad.sh $pkgdir/etc/profile.d/brlcad.sh
    #    mkdir -p $pkgdir/usr/share/licenses/$pkgname
    #    cp $srcdir/$pkgname-$pkgver/doc/legal/bdl.txt \
    #        $pkgdir/usr/share/licenses/$pkgname
    #    cp $srcdir/$pkgname-$pkgver/doc/legal/bsd.txt \
    #        $pkgdir/usr/share/licenses/$pkgname
    #md5sums=('8ccbc692d84854c9b0599b6d1255f916'
    #         '4922e66ff0835169374b9c0569c2f569')
    ( Similar hack of BRLCAD PKGBUILD )  it failed when trying to create libexec...   how can I change this....?
    4.) suppose I want to untar a package.zip in /opt/package, and make a script in /usr/bin/ called "package" containing 'cd /opt/package&&./initscript.sh' properly chmoded as executable, How do I build a PKGBUILD to build a package which once installed will perform this...?
    Most of these questions can seem n00bish, but i am not a great Archer yet...  just a little Archer trying to learn something.... 

    1) pacman will yell at you if there are file conflicts. Generally, if you're packaging something that already exists, you should tack on a suffix (e.g. -git or -nox) to describe the difference. The "official" package then makes it into the conflicts array of your modified package.
    2) /usr/local is generally reserved for things that won't fall under the domain of the package manager. See the FHS for more details.
    3) libexec is avoided in Arch because it does not adhere to the FHS (see above link). The files that go to /usr/libexec should probably end up in /usr/lib instead. Look at the help provided by the config script (./configure --help).
    4) You don't need an install scriptlet to chmod files. Set the permission bits in the package() function after they're moved into place.

  • Problem outputting to the screen using  FileDescriptor.out

    I have the following program that reads prime numbers from a binary file. The issue is that the numbers are not printing to the screen using
    FormatWriter out = new FormatWriter(
           new BufferedWriter(
           new FileWriter(FileDescriptor.out)));The numbers are being read from the file as if I unblock the line
    // System.out.println(primes[j]); the numbers are printed to the screen.
    I have pasted the code below and the code that creates the prime numbers file.
    Thanks for any help.
    package readprimes;
    import java.io.*;
    public class ReadPrimes {
       public static void main(String[] args) {
           File myPrimes;
           DataInputStream primesIn;
            try{
                String directory = "C:/JunkData";
                String fileName = "Prime.bin";
                myPrimes = new File(directory, fileName);
                 primesIn = new DataInputStream(new FileInputStream(myPrimes));
            catch(FileNotFoundException e){
                return;
            catch(IOException e){
                return;
        FormatWriter out = new FormatWriter(
           new BufferedWriter(
           new FileWriter(FileDescriptor.out)));
            long[] primes = new long[6];
            boolean EOF = false;
            while(!EOF){
                int index = 0;
                try{
                    for(index = 0; index < primes.length; index++)
                        primes[index] = primesIn.readLong();
                       catch(IOException e){
                return;
    //             catch(EOFException e){
    //                 EOF =  true;
                for(int j = 0;j < index; j++){
             //       System.out.println(primes[j]);
                    out.print(primes[j]);
                    out.println();
    out.close();
    package readprimes;
    import java.io.PrintWriter;
    import java.io.*;
    public class FormatWriter extends PrintWriter{
        private int width = 10;
        public FormatWriter(Writer output){
            super(output);
        public FormatWriter(Writer output, int width){
            super(output);
            this.width = width;
        public FormatWriter(Writer output, boolean autoflush){
            super(output, autoflush);
            public FormatWriter(Writer output, boolean autoflush, int width){
            super(output, autoflush);
            this.width = width;
    Class that creates the prime number file
    package bufferedoutput;
    import java.io.*;
    public class TryPrimesOutput {
       public static void main(String[] args) {
           long[] primes = new long[200];
           primes[0] = 2;
           primes[1] = 3;
           int count = 2;
           long number = 5;
           outer:
           for(; count < primes.length; number +=2L)
               long limit = (long)Math.ceil(Math.sqrt((double)number));
               for(int i = 1; i <count && primes<= limit; i++)
    if(number%primes[i]==0)
    continue outer;
    primes[count++] = number;
    try
    String dirName = "c:\\JunkData";
    String fileName = "Prime.bin";
    File myPrimeDir = new File(dirName);
    if(!myPrimeDir.exists())
    myPrimeDir.mkdir();
    else
    if(!myPrimeDir.isDirectory())
    System.err.println();
    return;
    File primesFile = new File(myPrimeDir, fileName);
    primesFile.createNewFile();
    DataOutputStream primesStream = new DataOutputStream(
    new BufferedOutputStream(
    new FileOutputStream(primesFile)));
    for(int i = 0; i <primes.length;i++)
    primesStream.writeLong(primes[i]);
    primesStream.close();
    catch(IOException e){
    System.out.println("IOExcetoptj");

    Indeed. It isn't obvious to me what the result of new FileWriter(FileDescriptor.out) would result in, but your test appears to show that it doesn't result in something which can be used to output to the console.

  • How to view output on the server?

    When I run WLS locally inside JDeveloper, I can see the output in the console when I have System.out.println() in my web application code.
    After I deploy it to the server, where do I go to see the same output?
    I'm using WLS 10.3.2

    If you still don't see the System.out.printlns in the logs folder look in this file. When you start the weblogic server usually you use like in windows startWeblogic.cmd. So look in that console and it should have the output. Same thing on Linux also, see the shell wiindow where you started weblogic and there you will see the output.
    Usually the bestpractice in linux is to use nohup command to start weblogic and redirect the output to any file. In this way, you can close that shell and still the weblogic will be running and all outputs will be in this log file. You can write a simple file like admin_start.sh with below lines and use this to start weblogic like ./admin_start.sh
    DOMAIN_HOME="/yourFullPath/Oracle/Middleware115/user_projects/domains/yourDomain1"
    LOG_FILE="/yourFullPath/Oracle/Middleware115/user_projects/domains/yourDomain1/logs/admin.log" (The file name can be anything)
    nohup ${DOMAIN_HOME}/bin/startWebLogic.sh > ${LOG_FILE} &
    Thanks
    Ravi Jegga

  • First PKGBUILD: 'cannot stat' error for source file

    I'm attempting my first PKGBUILD and I've run into some trouble.
    PKGBUILD:
    # Maintainer: Simon Wydooghe <hyperbaton at gmail dot com>
    pkgname=vpcs
    pkgver=0.21a
    pkgrel=1
    pkgdesc="Simulates up to 9 computers for ping/traceroute purposes."
    arch=('i686' 'x86_64')
    url="http://vpcs.sourceforge.net/"
    license=('GPL')
    makedepends=('p7zip')
    source=('${pkgname}_${pkgver}.7z::http://downloads.sourceforge.net/project/${pkgname}/binary/${pkgver}/${pkgname}_${pkgver}.7z')
    noextract=('${pkgname}_${pkgver}.7z')
    md5sums=('dac71bdf9d04a3b7e69fe25b15f1ee5c')
    package() {
    local vpcsdir="opt/vpcs"
    local binary="vpcs32"
    cd "${srcdir}"
    mv ${pkgname}_${pkgver}.7z.part ${pkgname}_${pkgver}.7z
    7z e -o"${pkgname}-${pkgver}" "${pkgname}_${pkgver}.7z"
    cd "${pkgname}-{$pkgver}"
    mv startup.vpc readme.txt ${pkgdir}/${vpcsdir}
    if [ $CARCH = "x86_64" ]; then
    binary="vpcs64"
    fi
    mv ${binary} ${pkgdir}/${vpcsdir}/vpcs
    chmod +x ${pkgdir}/${vpcsdir}/vpcs
    Error when running makepkg:
    [hb@hb-desktop vpcs]$ makepkg
    ==> Making package: vpcs 0.21a-1 (Mon Apr 4 15:48:07 CEST 2011)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading ${pkgname}_${pkgver}.7z...
    --2011-04-04 15:48:07-- http://downloads.sourceforge.net/project/vpcs/binary/0.21a/vpcs_0.21a.7z
    Resolving downloads.sourceforge.net... 216.34.181.59
    Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: http://switch.dl.sourceforge.net/project/vpcs/binary/0.21a/vpcs_0.21a.7z [following]
    --2011-04-04 15:48:07-- http://switch.dl.sourceforge.net/project/vpcs/binary/0.21a/vpcs_0.21a.7z
    Resolving switch.dl.sourceforge.net... 130.59.138.21, 2001:620:0:1b::21
    Connecting to switch.dl.sourceforge.net|130.59.138.21|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1168714 (1.1M) [application/x-7z-compressed]
    Saving to: “vpcs_0.21a.7z.part”
    100%[======================================================================================================================================>] 1,168,714 1.10M/s in 1.0s
    2011-04-04 15:48:08 (1.10 MB/s) - “vpcs_0.21a.7z.part” saved [1168714/1168714]
    mv: cannot stat `/home/hb/abs/vpcs/${pkgname}_${pkgver}.7z.part': No such file or directory
    ==> ERROR: Failure while downloading ${pkgname}_${pkgver}.7z
    Aborting...
    So it seems that '.part' is being added to the source filename when being downloaded by makepkg. I added '${pkgname}_${pkgver}.7z::' in front of the source url to rename the file (I believe that's correct, no?).
    This is the PKGBUILD directory after running makepkg:
    [hb@hb-desktop vpcs]$ ls -l
    total 1152
    -rw-r--r-- 1 hb hb 884 Apr 4 15:47 PKGBUILD
    drwxr-xr-x 2 hb hb 4096 Apr 4 16:01 src
    -rw-r--r-- 1 hb hb 1168714 Mar 8 04:18 vpcs_0.21a.7z.part
    I can stat the file in question:
    [hb@hb-desktop vpcs]$ stat vpcs_0.21a.7z.part
    File: `vpcs_0.21a.7z.part'
    Size: 1168714 Blocks: 2288 IO Block: 4096 regular file
    Device: 805h/2053d Inode: 1046825 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 1000/ hb) Gid: ( 1000/ hb)
    Access: 2011-04-04 16:01:22.000000000 +0200
    Modify: 2011-03-08 04:18:48.000000000 +0100
    Change: 2011-04-04 16:01:22.477037824 +0200
    Birth: -
    So can someone tell me which moronic error I've made this time? :-)

    Excellent, thanks, that did the trick!
    While I've opened this topic anyway, I have another question. The application in question uses a configuration file which it only looks for in the directory the executable resides in (unless a specific command line argument is given). For this reason, it seems most logical to place the application under /opt. But /opt is not in $PATH by default. What is the best way to add the directory /opt/vpcs to $PATH but to also remove it from $PATH when the application is removed?
    Last edited by HyperBaton (2011-04-04 14:33:45)

  • Adding a stock ticker to an iWeb site?

    Does iWeb not support Yahoo! Badges? http://finance.yahoo.com/badges
    They use something called iFrame. Is that different than HTML?
    Anyone know how I can add a stock ticker to my iWeb page?
    http://web.mac.com/michaelgrothaus/

    I tested and it worked fine for me....
    I went through Yahoo steps and had code generated...
    Went to iWeb and on page I wanted to add chart, I clicked on the "Web Widgets" icon at bottom of iWeb page and picked "HTML Snippet" and then pasted code in area provided (where it says paste code), finally I hit "Apply" saved my pages and published. Worked fine.
    Hope this helps you.

  • First pkgbuild, verification please

    Hello!
    This is my first pkgbuild from scratch.
    I had read the standards but I want to be sure it's alright.
    Thank.
    # Author: Shaika-Dzari <shaikadzari at gmail _dot_ com>
    pkgname=animeshell
    pkgver=1.0
    pkgrel=1
    pkgdesc="Collection manager for your animes and mangas"
    arch=('i686')
    url="http://code.google.com/p/animeshell/"
    license=('GPL')
    depends=('qt4')
    source=(http://animeshell.googlecode.com/files/Animeshell-$pkgver-linux.tar.bz2 Animeshell.desktop)
    md5sums=('9cb24c9d68c117c05021d3465494e327'
    '4be9aa92283d3751fec654aa5fb2f2fb')
    build() {
    export QMAKESPEC=linux-g++
    cd "$startdir/src/Animeshell-$pkgver-linux"
    qmake -config release
    make || return 1
    # Executable
    install -d $startdir/pkg/usr/bin
    install -Dm755 bin/Animeshell $startdir/pkg/usr/bin/
    # .desktop file
    install -d $startdir/pkg/usr/share/applications
    install -Dm644 $startdir/src/Animeshell.desktop $startdir/pkg/usr/share/applications/
    # Icon
    install -d $startdir/pkg/usr/share/pixmaps
    install -Dm644 ui/resources/animeshell-icon-10.png $startdir/pkg/usr/share/pixmaps/animeshell.png
    [Desktop Entry]
    Name=Animeshell
    Comment=Collection manager
    Exec=Animeshell
    Terminal=false
    Type=Application
    Icon=animeshell.png
    Categories=Qt;Application;
    Encoding=UTF-8

    Allan wrote:
    Shaika-Dzari wrote:
    Allan wrote:Also "install -D" creates the directory structure so you shouldn't need the "install -d" lines beforehand.
    Weird, from the man page:
    -D create all leading components of DEST except the last, then copy
    SOURCE to DEST
    no it is not so weird. As there is currently no directory where you want to install the file to (at least that is what it is assuming) it has otherwise no idea if the last component is either a directory or a file.
    This means that for example
    install -Dm644 sample.desktop $startdir/pkg/usr/share/applications
    removes the last component (applications in this example), and installs the sample.desktop file under the name applications in $startdir/pkg/usr/share/
    Therefore, the correct way is
    install -Dm644 sample.desktop $startdir/pkg/usr/share/applications/sample.desktop
    Last edited by pressh (2008-01-18 16:25:35)

  • First PKGBUILD: fsv2 (3D File System Visualizer, gtk2 port)

    The purpose of this thread is to see whether the PKGBUILD is correct/adequate and whether there is interest in this package.
    I have managed to create a working PKGBUILD for fsv2 based on the one for the original fsv and the wiki prototype. The guidelines state that the package has to be useful - "more than a few people" would have to be interested. The original fsv PKGBUILD is out of date and the last comment is nine months old, but one can hope.
    It seems illogical that a program with a GUI suggests a text-based browser to view the provided documentation. I've left it in the PKGBUILD just in case, but one could easily suggest a different browser or perhaps use a simple text editor to view the documentation. Also, I have not tested it on x86-64 since I do not have access to such a machine.
    pkgname=fsv2
    pkgver=1.1.0
    pkgrel=1
    pkgdesc="gtk2 port of fsv, the 3D File System Visualizer as seen in Jurassic Park"
    arch=('i686' 'x86_64')
    url="http://fedorchenko.net/fsv2.php"
    license=('LGPL')
    depends=('xorg-server' 'gtkglarea' 'gdk-pixbuf2' 'ftgl' 'gtkmm')
    #optdepends=('lynx: help browser')
    options=('!libtool')
    source=(http://fedorchenko.net/src/${pkgname}-${pkgver}.tar.bz2)
    md5sums=('3a8e5e6a9b2e5cdc7a111765a2f18599')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr
    make
    package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
    Edit: fixed namcap errors and warnings
    Last edited by al (2012-01-19 05:23:10)

    I did some corrections:
    pkgname=fsv2
    pkgver=1.1.0
    pkgrel=1
    pkgdesc="GTK2 port of fsv, the 3D File System Visualizer as seen in Jurassic Park"
    arch=('i686' 'x86_64')
    url="http://fedorchenko.net/fsv2.php"
    license=('LGPL')
    depends=('ftgl' 'gtkglarea' 'gtkmm')
    #optdepends=('lynx: help browser')
    options=('!libtool')
    source=("http://downloads.sf.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
    md5sums=('3a8e5e6a9b2e5cdc7a111765a2f18599')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr
    make
    package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
    # vim:set ts=2 sw=2 et:
    Looking at namcap output on PKGBUILD and built package will help you a lot.
    Remember to put the Maintainer tag at the beginning.
    BTW, I suggest that you take care of gtkglarea package as well, since the current AUR one is not good at all.
    Here's my take on it (tested):
    # Contributor: arjan <[email protected]>
    # Contributor: Tom Newsom <[email protected]>
    # Contributor: Luca Bennati <lucak3 AT gmail DOT com>
    # Maintainer: Andreas B. Wagner <[email protected]>
    pkgname=gtkglarea
    pkgver=2.0.1
    pkgrel=2
    pkgdesc="GTK/GL Area libraries"
    arch=('i686' 'x86_64')
    url="http://mono-project.com/GtkGLArea"
    license=('LGPL')
    depends=('gtk2' 'mesa')
    options=('!libtool')
    source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/2.0/${pkgname}-${pkgver}.tar.gz")
    md5sums=('2a81a86cfa80a920a5454dd00fad2e1d')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    sed -r -i -e '5 a\AC_CONFIG_MACRO_DIR([m4])' configure.ac
    sed -r -i -e 's/(ACLOCAL_FLAGS =)/\1 -I m4/' Makefile.am
    sed -r -i -e 's/(LDADD =)/\1 -lm/' examples/Makefile.am
    sed -r -i -e 's/(Libs: .*)/\1 -lm/' gtkgl-2.0.pc.in
    libtoolize --copy --force
    autoreconf -vfi
    ./configure --prefix=/usr --with-lib-GL
    make
    package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
    # vim:set ts=2 sw=2 et:
    Remember to adjust the Maintainer tag if you adopt this one.
    I built and tested successfully gtkglarea and fsv2.

  • First PKGBUILD - looking for review

    Hello all,
    I have created my first PKGBUILD for some new scientific computing libraries and corresponding examples related to my field. I am looking for input before submitting this to the authors for inclusion on their site (and possibly to the AUR if there ends up being more interest).
    Anyway, here is what I have so far, which seems to work on my system:
    PKGBUILD:
    pkgname=ismrmrd-git
    pkgver=20121030
    pkgrel=1
    pkgdesc="Libraries and examples for the proposed ISMRM Raw Data format"
    url="http://ismrmrd.sourceforge.net"
    arch=('any')
    license=('unknown')
    depends=('hdf5-fortran-cxx'
    'boost-libs'
    'xsd'
    'xerces-c')
    optdepends=('fftw: used to compile example programs'
    'doxygen: only needed if you want to produce your own copy of the documentation')
    makedepends=('unzip'
    'git'
    'cmake')
    # install="${pkgname}.install"
    # source=("http://www.syntax-on.com/static/$pkgname/$pkgname-$pkgver.tar.gz")
    # source=("http://downloads.sourceforge.net/project/ismrmrd/src/${pkgname}_${pkgver}.zip")
    source=("cmakelists.diff")
    noextract=("${pkgname}_${pkgver}.zip")
    md5sums=("9ec7ed899e488961826fa41da7109a84")
    _gitroot="git://git.code.sf.net/p/ismrmrd/code"
    _gitname="ismrmrd"
    build() {
    cd "${srcdir}"
    # unzip ${pkgname}_${pkgver}.zip -d ${pkgname}-${pkgver}
    msg "Connecting to GIT server..."
    if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "Local files have been updated"
    else
    git clone $_gitroot "${srcdir}/$_gitname"
    fi
    msg "Received code from GIT or server timed out"
    # stop CMakeLists.txt appending an unwanted dir to the CMAKE_INSTALL_PREFIX
    # also prevent install of /usr/cmake/FindIsmrmrd.cmake
    msg "Patching CMakeLists.txt to comply with Arch Packaging Standards..."
    cd "${srcdir}/${_gitname}"
    patch < ${startdir}/cmakelists.diff --forward
    # start the build
    mkdir "${srcdir}/${_gitname}/build" -p
    cd "${srcdir}/${_gitname}/build"
    msg "Starting cmake..."
    cmake -DCMAKE_INSTALL_PREFIX=/usr ../
    msg "Starting make..."
    make
    package() {
    cd "${srcdir}/${_gitname}/build"
    make DESTDIR="${pkgdir}/" install
    cmakelists.diff
    --- src/ismrmrd-latest/CMakeLists.txt 2012-10-30 11:48:03.332945241 -0500
    +++ src/ismrmrd-latest/CMakeLists_mod.txt 2012-10-30 11:48:27.619612710 -0500
    @@ -10,7 +10,7 @@
    endif (WIN32)
    -set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/ismrmrd)
    +# set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/ismrmrd)
    list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
    find_package(XSD REQUIRED)
    @@ -69,7 +69,7 @@
    INSTALL(FILES ismrmrd.h ${XSDS_SOURCES} ismrmrd_hdf5.h ismrmrd_hdf5_datatypes.h ismrmrd_export.h DESTINATION include)
    INSTALL(FILES schema/ismrmrd.xsd DESTINATION schema)
    -INSTALL(FILES cmake/FindIsmrmrd.cmake DESTINATION cmake)
    +# INSTALL(FILES cmake/FindIsmrmrd.cmake DESTINATION cmake)
    INSTALL(TARGETS ismrmrd DESTINATION lib)
    INSTALL(TARGETS ismrmrd_xsd DESTINATION lib)
    I'm not using any .install file, is this something big I am missing? Again, this is my first time writing a PKGBUILD, so I appreciate any feedback. Thanks!

    Thanks - I will take note for future packages, or if I end up using a non-git version. makepkg seemed to not be able to handle the zip file itself, though. If I re-hosted the source myself in a tarball it worked, but on the authors' site I could only find it as a zip.
    My main question is still about installation location, though. This typically installs itself in:
    /usr/local/ismrmrd/bin
    /usr/local/ismrmrd/lib
    /usr/local/ismrmrd/include
    /usr/local/ismrmrd/schema
    /usr/local/ismrmrd/cmake
    I was able to change this to:
    /usr/bin
    /usr/lib
    /usr/include
    /usr/schema
    Obviously this prevents cmake/FindIsmrmrd.cmake from being installed at all (not sure this is OK or desirable), It also creates the /usr/schema directory, which I don't think is really standard. Where should I put such files? Should I instead install the whole package into /usr/opt/ismrmrd? It doesn't seem big enough to warrant that, but I don't know where else to put the schema and cmake directories and the associated files. Maybe in /usr/share?
    Last edited by aganders3 (2012-11-07 20:20:40)

Maybe you are looking for

  • No class method output... HELP!!!

    hi to everyone... how can i output the classes in the main class??? the output i get is zero and i cannot figure out why... here is my code: //============================================================ import java.io.*; import javax.swing.*; class

  • I get an error every time i start my muvo tx

    Because i didnt shut down the muvo tx fm mp3 player properly when i was done with writing music it started to turn off whenever i turned it on. I checked the manual and it said that i had to format it, but only format FAT files only. I accidentally d

  • I book g3 and firewire

    i have an i book g3 (500 mhz) running os 10.3.9. i bought this in 2001. the firewire has never worked. is there an update i can upload to get the firewire to work. mp

  • ORA-00937, TREAT and NOT IN

    Hi, I'm using Oracle 10g, and I have this query: sql = "SELECT TREAT(VALUE(A) AS TEXT).ORIGINAL_TEXT, ID, NAME FROM TABLE_A A WHERE (A.ID, A.NAME) NOT IN (SELECT ID, NAME FROM TABLE_B)" then I do: Connection.createStatement(ResultSet.TYPE_SCROLL_INSE

  • My iPad keeps asking me to sign into iCloud

    but when I go to sign out of the iCloud in settings it says my password is incorrect. How does that work? When it has allowed me to sign into iCloud on the same device using my actual password. ANd how do I stop my iPad continually asking me to sign