diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gnofract4d |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gnofract4d')
-rw-r--r-- | community/gnofract4d/PKGBUILD | 34 | ||||
-rw-r--r-- | community/gnofract4d/gnofract4d.install | 12 | ||||
-rw-r--r-- | community/gnofract4d/imageIO.cpp.patch | 13 |
3 files changed, 59 insertions, 0 deletions
diff --git a/community/gnofract4d/PKGBUILD b/community/gnofract4d/PKGBUILD new file mode 100644 index 000000000..28e11bcea --- /dev/null +++ b/community/gnofract4d/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: Angelo Theodorou <encelo@users.sourceforge.net> + +pkgname=gnofract4d +pkgver=3.13 +pkgrel=2 +pkgdesc='A fractal browser with PyGTK gui' +arch=('i686' 'x86_64') +url='http://gnofract4d.sourceforge.net' +license=('custom') +depends=('pygtk' 'libjpeg' 'libpng' 'shared-mime-info') +options=('!strip') +install='gnofract4d.install' +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz" + 'imageIO.cpp.patch') +md5sums=('d739eb0a61bc518ada8f5b8952298166' + 'ff29a621a27a3836de211c577f6ab9a4') + +build() { + cd ${pkgname}-${pkgver} + + patch -p0 < ${srcdir}/imageIO.cpp.patch + + python2 setup.py build +} + +package() { + cd ${pkgname}-${pkgver} + + python2 setup.py install --root=${pkgdir} --optimize=1 + + install -D -m644 COPYING \ + ${pkgdir}/usr/share/licenses/${pkgname}/COPYING +} diff --git a/community/gnofract4d/gnofract4d.install b/community/gnofract4d/gnofract4d.install new file mode 100644 index 000000000..1fa01b255 --- /dev/null +++ b/community/gnofract4d/gnofract4d.install @@ -0,0 +1,12 @@ +post_install() { + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install $1 +} + + +post_remove() { + post_install $1 +} diff --git a/community/gnofract4d/imageIO.cpp.patch b/community/gnofract4d/imageIO.cpp.patch new file mode 100644 index 000000000..62c7e1c69 --- /dev/null +++ b/community/gnofract4d/imageIO.cpp.patch @@ -0,0 +1,13 @@ +--- fract4d/c/imageIO.cpp.orig 2010-03-28 04:47:10.000000000 +0200 ++++ fract4d/c/imageIO.cpp 2010-08-18 23:29:06.000000000 +0200 +@@ -3,6 +3,10 @@ + + #include "image_public.h" + ++#define png_infopp_NULL (png_infopp)NULL ++#define int_p_NULL (int*)NULL ++#define png_bytepp_NULL (png_bytepp)NULL ++ + class image_writer : public ImageWriter + { + public: |