From 70b797517c64416780c9640b13be9eabdf8c5a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 26 Nov 2020 21:57:51 +0700 Subject: [PATCH] unoconv: fix dependencies --- srcpkgs/unoconv/template | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/srcpkgs/unoconv/template b/srcpkgs/unoconv/template index 1a6c2c913e9..ec52cc4d3db 100644 --- a/srcpkgs/unoconv/template +++ b/srcpkgs/unoconv/template @@ -1,15 +1,21 @@ # Template file for 'unoconv' pkgname=unoconv version=0.9.0 -revision=1 -archs=noarch -build_style=gnu-makefile -hostmakedepends="asciidoc git" -depends="python" +revision=2 +depends="python3 libreoffice" +checkdepends="python3 libreoffice" short_desc="Convert between document formats supported by LibreOffice/OpenOffice" maintainer="Antonio Malcolm " license="GPL-2.0-only" homepage="https://github.com/dagwieers/unoconv" -distfiles="${homepage}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz" -checksum=6ca6cf4db7f113a435558261b8335e256fec3346a6323a9c2823b69697700e8e -python_version=2 +distfiles="$PYPI_SITE/u/unoconv/unoconv-$version.tar.gz" +checksum=308ebfd98e67d898834876348b27caf41470cd853fbe2681cc7dacd8fd5e6031 +python_version=3 + +do_check() { + make -C tests python=python +} + +do_install() { + make install DESTDIR=$DESTDIR +}