You are not logged in.

#1 2005-01-30 00:47:12

tranquility
Member
From: Portugal
Registered: 2004-08-06
Posts: 136

[New] python-fam

Hi all. Made this because I needed it for a project of mine.
Here goes:

PKGBUILD

# $Id: PKGBUILD,v 1.1 2004/08/21 22:10:09 damir Exp $
# Contributor: tranquility <trankas@gmail.com>

pkgname=python-fam
pkgver=1.0.2
pkgrel=1
pkgdesc="Python FAM is the interface to the File Alteration Monitor for Python."
url="http://python-fam.sourceforge.net/"
depends=('python' 'fam')
groups=()
source=(http://dl.sourceforge.net/python-fam/$pkgname-$pkgver.tar.gz)
md5sums=('68e1a9ab61bdaf2954a305f007694f7c')
build() {
  cd $startdir/src/$pkgname-$pkgver
  cat $startdir/python-fam-makefile.patch | patch -Np0 || return 1
    make || return 1
  mkdir -p $startdir/pkg/usr/lib/python-2.4/site-packages/
  cp _fam.so $startdir/pkg/usr/lib/python-2.4/site-packages/
}

python-fam-makefile.patch

--- Makefile.orig    2005-01-28 20:52:53.000000000 +0000
+++ Makefile    2005-01-30 00:10:55.000000000 +0000
@@ -5,7 +5,7 @@
 all: _fam.so
 
 _fam.o: _fam.c _fam.h Makefile
-    gcc -fPIC -I/usr/include/python2.2 -c _fam.c
+    gcc -fPIC -I/usr/include/python2.4 -c _fam.c
 
 _fam.so: _fam.o
     ld -shared -lfam -o _fam.so _fam.o

Offline

Board footer

Powered by FluxBB