Sunday, November 21, 2010

Edited PKGBUILD for Aarddict after setuptools not found error

Again a PKGBUILD had to be adapted to be able to compile a python packet: error message:
File "setup.py", line 4, in from setuptools import setup, find_packages ImportError: No module named setuptools


So I had to adapt the pkgbuild, becoming this (thick letters were changed):

# Contributor: Jeffery MacEachern

pkgname=aarddict
pkgver=0.9.1
pkgrel=1
pkgdesc="Aard Dictionary is a multiplatform dictionary and offline Wikipedia reader."
arch=(any)
url="http://aarddict.org/"
license=(GPL)
depends=('python2' 'python-pyicu' 'python-simplejson' 'hicolor-icon-theme' 'setuptools' 'pyqt')
makedepends=('setuptools')
install=aarddict.install
source=(http://bitbucket.org/itkach/${pkgname}/get/${pkgver}.zip aarddict.install)
md5sums=('41224733330d98b61818391e34311802'
'4d14628e16252af7ddf562ad19e3bcb4')

build() {
cd $srcdir/$pkgname
python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
}

Install with: makepkg -sci PKGBUILD

No comments:

Blog Archive

About Me

Exclusion of liability Regarding StillStupid: The use you make of the guides, tips and downloads that you listed on this web site or on another website to which I refer is entirely at your own risk. In no way can I be held liable for damage or consequential damages of any kind, which occurs as a result of that use.