You are not logged in.

#1 2010-02-09 22:41:25

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

My first PKGBUILD - python-sleekxmpp

I'm reading the O'Reilly book on XMPP and it use a python library called "SleekXMPP". It doesn't seem to be in the AUR, so I decided to try my hand at a PKGBUILD. How does this one look?

# Contributor: Jonathan Arnold <jdarnold@buddydog.org

pkgname=python-sleekxmpp
pkgver=20100209
pkgrel=1
pkgdesc="An XMPP library written for Python 3.x (with 2.6 compatibility)"
arch=(any)
url="http://github.com/fritzy/SleekXMPP"
license=('GPL2')
depends=('python')
makedepends=('git')
options=(!emptydirs)
md5sums=() #generate with 'makepkg -g'

_gitroot="git://github.com/fritzy/SleekXMPP.git"
_gitname="sleekxmpp"

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

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi

  msg "GIT checkout done or server timeout"

  cd "$srcdir/$_gitname"
  python setup.py install --root=$pkgdir/ --optimize=1 || return 1
}

Offline

#2 2010-02-10 03:45:33

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: My first PKGBUILD - python-sleekxmpp

Hi, please put your name as "Maintainer" and not "Contributor". smile


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2010-02-10 03:47:49

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: My first PKGBUILD - python-sleekxmpp

You can also delete the empty md5sums array.  Otherwise, looks fine.

Offline

#4 2010-02-10 13:45:23

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: My first PKGBUILD - python-sleekxmpp

Thanks for the input. I'll put it up on the AUR now.

Offline

Board footer

Powered by FluxBB