summaryrefslogtreecommitdiffstats
path: root/main/hylafax/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/hylafax/APKBUILD')
-rw-r--r--main/hylafax/APKBUILD29
1 files changed, 20 insertions, 9 deletions
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 <cbanta@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
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":<iostream>\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"