You are not logged in.

#1 2006-01-05 21:54:09

jellywerker
Member
From: Sunny Seattle
Registered: 2005-04-04
Posts: 286

[PKGBUILD] Xanim

Since snowmans pkgbuild no longer works, I whipped up my own from his.

# Contributor: Eric Belanger <belanger@astro.umontreal.ca> Aaron Meyers <jellywerker@gmail.com>

pkgname=xanim
pkgver=2.80.1
pkgrel=1
pkgdesc="XAnim is a program that can play animations, audio and video of various formats"
url="http://xanim.polter.net/"
license=""
depends=('x-server' 'glibc')
makedepends=('sed' 'x-server' 'zlib')
source=(http://xanim.polter.net/files/${pkgname}2801.tar.gz)
md5sums=('e2ecd086c160f18dd7cc3cac438758c2')

build() {
  cd $startdir/src/${pkgname}2801
  xmkmf
  sed -i 's=INCROOT = /usr/X11R6/include=INCROOT = /usr/X11R6/include/X11=' Makefile
  cp docs/xanim.man .
  make || return 1
  make DESTDIR=$startdir/pkg install
  make DESTDIR=$startdir/pkg install.man
} 

I got a segfault with it once, but it worked on the second try.

Offline

#2 2006-01-05 22:05:10

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [PKGBUILD] Xanim

What was the problem?

By a quick comparison, it seems that your PKGBUILD is equivalent to mine. You use a sed line to change the Makefile while I pass the INCROOT variable directly. :?

Offline

#3 2006-01-05 22:12:09

jellywerker
Member
From: Sunny Seattle
Registered: 2005-04-04
Posts: 286

Re: [PKGBUILD] Xanim

It is yours, edited because yours is out of date a bit tongue Notice the top line?

Edit: Btw, I am trying to make a pkgbuild for the loki version for gimp gap, but the md5's never match, and it says it is not .tar.gz, although it is clearly labeled as such, my pkgbuild atm is:

# Contributor: Aaron Meyers <jellywerker@gmail.com>

pkgname=xanim-loki
pkgver=2.80.1
pkgrel=1
pkgdesc="XAnim is a program that can play animations, audio and video of various formats. This modified loki version has export support."
url="http://lokigames.com/development/smjpeg.php3"
license=""
depends=('x-server' 'glibc')
makedepends=('sed' 'x-server' 'zlib')
source=(http://www.3ddownloads.com/linuxgames/loki/open-source/smjpeg/xanim2801-loki090899.tar.gz)
md5sums=('0a57e3f9840985917c7bed50f9e0b86d')

build() {
  cd $startdir/src/xanim2801-loki090899
  xmkmf
  sed -i 's=INCROOT = /usr/X11R6/include=INCROOT = /usr/X11R6/include/X11=' Makefile
  cp docs/xanim.man .
  make || return 1
  make DESTDIR=$startdir/pkg install
  make DESTDIR=$startdir/pkg install.man
} 

Also based on your original xanim pkgbuild.

Offline

#4 2006-01-05 22:23:51

jellywerker
Member
From: Sunny Seattle
Registered: 2005-04-04
Posts: 286

Re: [PKGBUILD] Xanim

Also, how can I correct the sed thing?

Offline

#5 2006-01-06 01:26:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [PKGBUILD] Xanim

jellywerker wrote:

It is yours, edited because yours is out of date a bit tongue Notice the top line?

Yes, I noticed that you added your name to the contributor line. I also noticed that you did some modifications to the depends/makepends line.  I'm also aware that when the modular xorg will hit current, xanim will need to move from /usr/X11R6/bin to /usr/bin. However, I'm still unclear what the issue is. I tried my PKGBUILD in AUR and it builds, intalls and run fine. Could you please be more specific?

jellywerker wrote:

dit: Btw, I am trying to make a pkgbuild for the loki version for gimp gap, but the md5's never match, and it says it is not .tar.gz, although it is clearly labeled as such

xanim2801-loki090899.tar.gz is not a .tar.gz:

$ file xanim2801-loki090899.tar.gz
xanim2801-loki090899.tar.gz: ISO-8859 HTML document text, with very long lines

It's a web page where you can download the file. It use some kind of download queue so you'll probably need to download it seperatly (unless you can get a direct link).

Offline

#6 2006-01-06 19:29:14

jellywerker
Member
From: Sunny Seattle
Registered: 2005-04-04
Posts: 286

Re: [PKGBUILD] Xanim

Your package would not build for me, that's why I changed it, I'll remove it if it upsets you. I updated it to a current server.

I'll download that package and find a place to host it for the pkgbuild, thanks.

Offline

#7 2006-01-06 21:50:11

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [PKGBUILD] Xanim

jellywerker wrote:

Your package would not build for me, that's why I changed it, I'll remove it if it upsets you. I updated it to a current server.

Can you post the error messages? Is the problem caused because I use:

  make INCROOT=/usr/X11R6/include/X11 || return 1

instead of

  sed -i 's=INCROOT = /usr/X11R6/include=INCROOT = /usr/X11R6/include/X11=' Makefile
   make || return 1 

I am not upset. I just want to know why it doesn't build for you so I can fix it. smile

Offline

#8 2006-01-07 20:52:29

jellywerker
Member
From: Sunny Seattle
Registered: 2005-04-04
Posts: 286

Re: [PKGBUILD] Xanim

No, it's caused by your server not working, nothing technical. Speaking of technical though, I can't get an xanim loki package to build, I downloaded the tar.gz to my home dir, etc... but I am not sure how to make it build, I can't even get it to build as a non pkgbuild.

Offline

#9 2006-01-07 22:18:33

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [PKGBUILD] Xanim

If you're refering to my personal repo, I have removed it a while ago.  My binary packages are now in the community repo and my PKGBUILD are in AUR.

For xanim-loki, I would assume that the xanime PKGBUILD will built it if the sources are in its directory. If it doesn't work, post the error messages.

Offline

Board footer

Powered by FluxBB