You are not logged in.

#1 2014-05-03 14:46:27

Psirus
Member
Registered: 2012-01-29
Posts: 45

First PKGBUILD - PyMbs - A Python tool for modelling multibody systems

I've tried to make a PKGBUILD for PyMbs (bitbucket.org/pymbs/pymbs), a tool for modelling multibody systems. My try can be seen at this Github gist: https://gist.github.com/Psirus/00d3e873c22e5ee6d8e7, copied here:

# Maintainer: Christoph Pohl <christoph.pohl1[at]mailbox[dot]tu-dresden[dot]de>
pkgname=PyMbs-hg
pkgver=0.2.2.r1752
pkgrel=1
pkgdesc="A Python tool to model multibody systems"
arch=('i686' 'x86_64')
url="http://www.bitbucket.org/pymbs/pymbs"
license=('LGPL')
depends=('python2-numpy' 'python2-scipy' 'python2-matplotlib' 'vtk' 'python2-pyqt4' 'python2-h5py' )
makedepends=('cmake' 'mercurial')
checkdepends=('python2-mock')
source=('hg+https://bitbucket.org/pymbs/pymbs')
md5sums=('SKIP')

_hgroot='https://bitbucket.org/pymbs/pymbs'
_hgrepo='pymbs'

build() {
    cd "$srcdir"
    msg "Connecting to Mercurial server...."

    if [[ -d "$_hgrepo" ]]; then
        cd "$_hgrepo"
        hg pull -u
        msg "The local files are updated."
    else
        hg clone "$_hgroot" "$_hgrepo"
    fi

    msg "Mercurial checkout done or server timeout"
    msg "Starting build..."

    rm -rf "$srcdir/$_hgrepo-build"
    cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
}

package() {
    cd "$srcdir/$_hgrepo-build"
	python2 setup.py install --root="$pkgdir/" --optimize=1
}

As far as I can tell, it works on my machine (tm), but I would still like some feedback before I upload it to the AUR.

Offline

#2 2014-05-03 15:10:44

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: First PKGBUILD - PyMbs - A Python tool for modelling multibody systems

namcap says:

PyMbs-hg E: No upper case letters in package names
PyMbs-hg W: No ELF files and not an "any" package
PyMbs-hg E: Dependency python detected and not included (programs ['python'] needed in scripts ['usr/lib/python2.7/site-packages/PyMbs/Graphics/osgviewerQt4.py'])

The first error is obvious, the last error seems like it might need fixing since python3 is the default in Arch. I'm not sure about the warning; I don't know if .pyc files are architecture specific

Last edited by Spider.007 (2014-05-03 15:11:10)

Offline

#3 2014-05-03 15:53:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,655

Re: First PKGBUILD - PyMbs - A Python tool for modelling multibody systems

This is using a very old, obsolete template. Please read https://wiki.archlinux.org/index.php/VC … Guidelines

Offline

Board footer

Powered by FluxBB