You are not logged in.
Hi Archers!
There is a very fine geometry drawing package called Eukleides available for Linux:
http://perso.wanadoo.fr/obrecht/
I tried to build Arch package for it and its X-frontend Xeukleides, but did not manage. I would appreciate if someone with a bit more experience could help me.
Thnx!
Jan
Offline
Could you post the PKGBUILD you used and the error messages you got?
Offline
Hi!
So I worked a bit more and finally got something working. However, namcap complains about some wrong symlinks in eukleides package. Can someone please help me sorting this out?
eukleides PKGBUILD:
pkgname=eukleides
pkgver=1.0.2
pkgrel=1
pkgdesc="Eukleides -- a geometry drawing program"
url="http://perso.wanadoo.fr/obrecht/"
license="GPL"
makedepends=('bison' 'flex' 'texinfo')
depends=('bash')
source=(http://perso.wanadoo.fr/obrecht/download/$pkgname.$pkgver.tar.gz)
md5sums=('c0f24b9f6de9f52dc23e8774672a392f')
build() {
cd $startdir/src/$pkgname.$pkgver
make || return 1
make PREFIX=$startdir/pkg/usr install
}
xeukleides PKGBUILD
pkgname=xeukleides
pkgver=1.0.1
pkgrel=1
pkgdesc="XEukleides -- a frontent for Eukleides"
url="http://perso.wanadoo.fr/obrecht/"
license="GPL"
makedepends=('bison' 'flex')
depends=('gtk' 'x-server')
source=(http://perso.wanadoo.fr/obrecht/download/$pkgname.$pkgver.tar.gz)
md5sums=('66d37a4f34a8f9cc82e1edb562fb5b6c')
build() {
cd $startdir/src/$pkgname.$pkgver
make || return 1
make PREFIX=$startdir/pkg/usr install
}
And it seems that they got compiled against GTK, not GTK2 ...
Thnx,
Jan
Offline
Good job
Some comments:
1. the license field should be empty
2. you don't need 'bison' and 'flex' as makedepends. They are part of the base packages so it is assumed that everyone has them installed.
3. the 'x-server' depends is not needed because gtk depends on 'x-server'
4. the symlink error is because the pkg contains symlinks referring to the build directory. To correct that, add:
rm $startdir/pkg/usr/man/man1/{euk2edit.1,euk2eps.1}
ln -fs /usr/man/man1/eukleides.1.gz $startdir/pkg/usr/man/man1/euk2edit.1.gz
ln -fs /usr/man/man1/eukleides.1.gz $startdir/pkg/usr/man/man1/euk2eps.1.gz
after the make install line of eukleides.
5. gtk2 is not gtk version 2; they are completely different (incompatible). It seems that the program was made to use gtk. You cannot change that without modifying the source code.
Offline
Snowman,
Thanx for the comments -- got it all working now. However, when removing the x-server dependency, namcap started complaining about it, so I put it back. Is it a namcap problem?
Jan
Offline
It's a namcap problem. Namcap is a useful tool but it's not perfect. You still need to rely to the docs and common sense even if you use namcap. Namcap doesn't realise that x-server is a depend of gtk. If you have gtk installed, you necessarily have x-server installed.
Offline