You are not logged in.

#1 2007-01-19 16:26:29

sash
Member
Registered: 2005-10-16
Posts: 155

my PKGBUILD for imageio

I made an attempt to package ImageIO for java (https://jai-imageio.dev.java.net)

What I don't know yet is how to make the script to accept the end user agreement automatically (ie: blah blah blah... say yes/no)

Anyone have suggestions? AUR-worthy? Thanks in advance for any input.
I also packaged JAI (https://jai.dev.java.net)

# $Id: PKGBUILD,v 1.1 2007/01/19 20:36:25 app Exp $
# Maintainer: sash

pkgname=jai-imageio
pkgver=1.1
pkgrel=1
pkgdesc="Java (TM) Advanced Imaging Image I/O Tools"
arch=(i686)
url="https://jai-imageio.dev.java.net"
depends=('jdk')
source=(http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-i586-jdk.bin)
md5sum=('68f00ce89fa14caffbcd6a6069c6dced')

build() {
  #create a java directory with the proper hierarchy:
  mkdir -p ${startdir}/src/${JAVA_HOME}
  cd ${startdir}/src/${JAVA_HOME}
  mkdir jre
  cd jre
  mkdir lib
  cd lib
  mkdir ext i386
  cd ${startdir}/src/${JAVA_HOME}
  #install imageIO:
  sh ${startdir}/src/jai_imageio-1_1-lib-linux-i586-jdk.bin

  #copy the installation for packaging:
  cd ${startdir}
  mkdir -p pkg/opt
  mv ${startdir}/src/opt/java ${startdir}/pkg/opt
}

Offline

#2 2007-01-24 02:45:11

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: my PKGBUILD for imageio

Ok, stuff in build() for makepkg should be non-interactive, so much is clear.
Another thing: if jdk get's pulled in just before building this, and you haven't sourced /etc/profile yet, then $JAVA_HOME won't exist. Just use the full path, it's fixed anyway.
And kill the comments above, it's only "# Contributor: sash".


1000

Offline

#3 2007-02-24 18:37:25

sash
Member
Registered: 2005-10-16
Posts: 155

Re: my PKGBUILD for imageio

Will do, thanks :-)
For the comments: remove them from the build() section?

Offline

#4 2007-02-25 22:46:24

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: my PKGBUILD for imageio

No, the two lines at the top.


1000

Offline

Board footer

Powered by FluxBB