You are not logged in.

#1 2012-01-18 16:13:39

al
Member
Registered: 2012-01-18
Posts: 1

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)

Offline

#2 2012-01-21 12:34:15

lucak3
Member
From: Italy
Registered: 2010-01-23
Posts: 72

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

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 <arjan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Luca Bennati <lucak3 AT gmail DOT com>
# Maintainer: Andreas B. Wagner <AndreasBWagner@gmail.com>

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.


The Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it. - Linus Torvalds

Offline

Board footer

Powered by FluxBB