You are not logged in.

#1 2013-06-29 12:30:34

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 38

[Solved] Problem building cal3d

In building cal3d, the pkg subdirectory is populated, but the resulting package xz doesn't have any files.  I've tried this on 2 computers with the same result and haven't had any trouble building other packages.  I'm still a newbie with Arch and am not sure what to look for to fix it.  Here's the PKGBUILD in case there's an obvious problem with it.

# Contributor: Hussam Al-Tayeb <...>
pkgname=cal3d
pkgver=0.11.0
pkgrel=5
pkgdesc="A skeletal-based 3D character animation library"
arch=(i686 x86_64)
url="https://gna.org/projects/cal3d"
options=(!libtool)
license=(GPL2)
depends=('gcc-libs')
makedepends=('patch')
source=(http://download.gna.org/cal3d/sources/cal3d-$pkgver.tar.gz cal3d-gcc43.diff)
md5sums=('82ad09c1c28e73bc9596aec47237bfba'
         'f290fb54f844e044ae80165f083cf58f')
build() {
  cd ${pkgname}-$pkgver
  patch -p0 < ../cal3d-gcc43.diff
  ./configure --prefix=/usr
  make
}
package() {
  cd ${pkgname}-$pkgver
  make DESTDIR=$startdir/pkg install
}

Last edited by Myshkin (2013-06-29 13:42:58)

Offline

#2 2013-06-29 12:46:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved] Problem building cal3d

That PKGBUILD needs updating - it doesn't install to the proper directory so makepkg has nothing to make a package out of.  This works:

pkgname=cal3d
pkgver=0.11.0
pkgrel=5
pkgdesc="A skeletal-based 3D character animation library"
arch=(i686 x86_64)
url="https://gna.org/projects/cal3d"
options=(!libtool)
license=(GPL2)
depends=('gcc-libs')
makedepends=('patch')
source=(http://download.gna.org/cal3d/sources/cal3d-$pkgver.tar.gz cal3d-gcc43.diff)
md5sums=('82ad09c1c28e73bc9596aec47237bfba'
         'f290fb54f844e044ae80165f083cf58f')
build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p0 < ../cal3d-gcc43.diff
  ./configure --prefix=/usr
  make
}
package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=${pkgdir} install
}

Be sure to report this to the package maintainer


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2013-06-29 13:41:41

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 38

Re: [Solved] Problem building cal3d

Thank you!  That worked.  I'll notify the maintainer.

Offline

#4 2015-08-10 12:22:40

pjbroad
Member
Registered: 2015-08-10
Posts: 1

Re: [Solved] Problem building cal3d

The modified PKGBUILD still works as of yesterday but I note that the package has been removed from AUR.  I'm new to Arch Linux so please forgive my ignorance, but can I find out why this is?  If the package needs a new maintainer then I would be interested to learn how to do that.  Cal3d is used by a game I help support so I have an interest in making the package easily available.

Offline

#5 2015-08-10 13:00:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved] Problem building cal3d

pjbroad - welcome to the forums.  Please avoid necrobumping old threads - this is a completely new issue.

You can read up on the AUR4 changeover which is almost certainly responsible for this.  If you want to maintain the PKGBUILD, read the AUR and PKGBUILD wiki pages, and open a new thread if you need help with it.

Closed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB