# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=hylafaxplus _pkgname=hylafax pkgver=5.6.1 pkgrel=0 pkgdesc="Making the Premier Open-Source Fax Management System Even Better" url="http://hylafax.sourceforge.net" arch="all" license="MIT" # check/test not supported from upstream options="!check" depends="ghostscript bash tiff-tools" makedepends="zlib-dev tiff-dev gettext-dev openldap-dev lcms2-dev libffi-dev jbig2dec-dev sed readline-dev" subpackages="$pkgname-doc $pkgname-lang" source="https://downloads.sourceforge.net/hylafax/${_pkgname}-${pkgver}.tar.gz $pkgname.initd $pkgname.confd common-functions-busybox-awk.patch " builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" # the configure script does not handle ccache or distcc export CC=gcc export CXX=g++ ./configure \ --nointeractive \ --disable-pam \ --with-DIR_BIN=/usr/bin \ --with-DIR_SBIN=/usr/sbin \ --with-DIR_LIB=/usr/lib \ --with-DIR_LIBEXEC=/usr/sbin \ --with-DIR_LIBDATA=/var/spool/"$pkgname"/lib \ --with-DIR_LOCALE=/usr/share/locale/"$pkgname" \ --with-DIR_LOCKS=/var/lock \ --with-DIR_MAN=/usr/share/man \ --with-DIR_SPOOL=/var/spool/"$pkgname" \ --with-DIR_HTML=/usr/share/doc/"$pkgname"/html \ --with-PATH_IMPRIP="" \ --with-SYSVINIT=no \ --with-REGEX=yes \ --with-LIBTIFF="-ltiff -lz" \ --with-LIBINTL="-lintl" \ --with-DSO=auto \ --with-PATH_EGETTY=/bin/false \ --with-PATH_VGETTY=/bin/false # parallel build breaks libfaxutil dso building make -j1 } 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 mkdir -p "${pkgdir}"/usr/lib/"$pkgname" "${pkgdir}"/usr/share/man mkdir -p "${pkgdir}"/usr/share/locale/$pkgname mkdir -p "${pkgdir}"/var/spool/"$pkgname" mkdir -p "${pkgdir}"/var/spool/"$pkgname"/lib touch "${pkgdir}"/var/spool/"$pkgname"/lib/pagesizes chown uucp:uucp "${pkgdir}"/var/spool/"$pkgname" chmod 0600 "${pkgdir}"/var/spool/"$pkgname" make \ BIN="${pkgdir}/usr/bin" \ SBIN="${pkgdir}/usr/sbin" \ LIBDIR="${pkgdir}/usr/lib" \ LIB="${pkgdir}/usr/lib" \ LIBEXEC="${pkgdir}/usr/sbin" \ LIBDATA="${pkgdir}/var/spool/$pkgname"/lib \ MAN="${pkgdir}/usr/share/man" \ LOCALEDIR="${pkgdir}/usr/share/locale/$pkgname" \ SPOOL="${pkgdir}/var/spool/$pkgname" \ HTMLDIR="${pkgdir}/usr/share/doc/$pkgname/html" \ install install -m644 -D "$srcdir/$_pkgname-$pkgver/COPYRIGHT" \ "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT install -m644 -D "$srcdir/$_pkgname-$pkgver/README" \ "$pkgdir"/usr/share/doc/$pkgname/README install -D -m755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -D -m644 "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname } sha512sums="c86c33dc9e8feec4e265156fa3bbda18cf187feeef5c812ff3d3c7857de048a688bb979fcd3494ee8fe58a004a384a2a161d05245c86d0c304311d63f62a9eb1 hylafax-5.6.1.tar.gz 9a5be82e98a7220402142ac85f0f54989e6110280b35ead6e32d84ac48377f0ab5d1cfbec8cae5b72949e6cc97cdb06c76a044e7d176fb94cd08d027fbb33491 hylafaxplus.initd a2117eddc8f0ff70a23a90f2001dcb88c5bddee46ffa021d6d1701cc5cfc3bcb0362ead2b1b1ce2b288992728053c5947466d08916649f45e7dfb1876576e50f hylafaxplus.confd 6131e45b3b8b8ff22ba1d740bd5571b59c1347e6d80b00aa9b6404c7f38571b598002c4457b54ccd15320448c111ee900ff89a832d6c7df3c530b517c8621927 common-functions-busybox-awk.patch"