From cfcafbafd7294756231f54184e5d6c67ac6f11d8 Mon Sep 17 00:00:00 2001 From: idealist1508 Date: Fri, 10 May 2024 09:12:33 +0200 Subject: [PATCH] New package: python3-pillowfight-0.3.0 --- srcpkgs/python3-pillowfight/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/python3-pillowfight/template diff --git a/srcpkgs/python3-pillowfight/template b/srcpkgs/python3-pillowfight/template new file mode 100644 index 00000000000..e67ac266ae3 --- /dev/null +++ b/srcpkgs/python3-pillowfight/template @@ -0,0 +1,25 @@ +# Template file for 'python3-pillowfight' +pkgname=python3-pillowfight +version=0.3.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-nose" +makedepends="python3-devel" +case $XBPS_TARGET_MACHINE in + x86_64*) depends+=" python3-pillow-simd" ;; + *) depends+=" python3-Pillow" ;; +esac +checkdepends="python3-Pillow" +short_desc="Python bindings for libpillowfigh" +maintainer="idealist1508 " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight" +distfiles="https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/-/archive/${version}/libpillowfight-${version}.tar.bz2" +checksum=0f39a6b0099bf246e961e30ddb9d3c19e8f9460ee24fbfa5c463cda196209327 +python_version=3 + +pre_build() { + cat > src/pillowfight/_version.h <<- EOF || die + #define INTERNAL_PILLOWFIGHT_VERSION "$version" + EOF +}