# Contributor: Cameron Banta # Maintainer: Cameron Banta pkgname=hylafax pkgver=6.0.6 pkgrel=4 pkgdesc="Sends and receives faxes" url="http://www.hylafax.org/" arch="all" license="MIT" #depends on gcc for libgcc_s.so, it's scripts are hardcoded to bash depends="ghostscript bash tiff-tools" makedepends="zlib-dev tiff-dev gettext-dev" install="" subpackages="$pkgname-doc $pkgname-lang" source="ftp://ftp.hylafax.org/source/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd hylafax-charset.patch " builddir="$srcdir"/$pkgname-$pkgver prepare() { default_prepare update_config_guess } 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 make } 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="be7e0533a24391c87deac6af35e01c81a79c99977c7f7a931e336d7c737b388d2a7c147faab3bf5eda196b1fa1c8671bee53c05dab2338f2f519010532f7d773 hylafax-6.0.6.tar.gz 3862cefcd26092000e4489c097537e5e0e2ae1f7c2a7a16b1e933b3bb78d136b6d8a65fb712ae245dd8ca881900408d0d9788bd2e0b859a9569fc6f4ede8cc7c hylafax.initd 3c07726cc9d7351dceb80a46354c6626e54b033b0f434c1db01db2a3b3ab5e9084d551dd23cae3ab40806f27aa5fa0a5b70c43a6b7802356871c0b343baa2376 hylafax.confd f97c805a62dfcb57f85f614b6eb28bd6b58e0582ce4f9aa5166337a46d453ea038a098223d879d120f51454008a5e8ed2fa60ba6e8be12af7b7d5a4927c51471 hylafax-charset.patch"