From 3bcdfd488ace0b68eff4d1e9a9f4b9395fff28f0 Mon Sep 17 00:00:00 2001 From: Cameron Banta Date: Wed, 27 Oct 2010 19:53:17 +0000 Subject: main/hylafax: update to 6.0.5 / patch for gcc4.5.1 --- main/hylafax/APKBUILD | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'main/hylafax/APKBUILD') diff --git a/main/hylafax/APKBUILD b/main/hylafax/APKBUILD index 419aebc91..5eadc15df 100644 --- a/main/hylafax/APKBUILD +++ b/main/hylafax/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Cameron Banta # Maintainer: Cameron Banta pkgname=hylafax -pkgver=4.4.4 -pkgrel=2 +pkgver=6.0.5 +pkgrel=0 pkgdesc="Sends and receives faxes" url="http://www.hylafax.org/" license="custom" @@ -12,15 +12,20 @@ makedepends="zlib-dev tiff-dev" install="hylafax.post-install" subpackages="$pkgname-doc" source="ftp://ftp.hylafax.org/source/$pkgname-$pkgver.tar.gz + gcc4.5.1.patch + $install " +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + patch -p1 < $startdir/gcc4.5.1.patch +} + build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" - # Patch configure c++ problem - sed -i -e 's:"iostream.h":\n using namespace std;:g' \ - configure - # the configure script does not handle ccache or distcc export CC=gcc export CXX=g++ @@ -42,8 +47,12 @@ build() { --with-PATH_EGETTY=/bin/false \ --with-PATH_VGETTY=/bin/false \ || return 1 - make -j1 || return 1 + make || return 1 +} +package(){ + cd "$_builddir" + # this makefile has issues installing, it doesn't use the standard # install - but the following seems to work mkdir -p "${pkgdir}"/usr/bin "${pkgdir}"/usr/sbin @@ -77,4 +86,6 @@ build() { # - which the user runs after install } -md5sums="4beb3d438ca6c4f00f1d94f9643e6668 hylafax-4.4.4.tar.gz" +md5sums="eb9ac942354ad708e20e4583cec6615f hylafax-6.0.5.tar.gz +bca78921c75448f63b451098528f5296 gcc4.5.1.patch +a3553e6fc4de30e80759abe5c663c85b hylafax.post-install" -- cgit v1.2.3