commit bedece0cd1dc88afd231da4bacef81c296b8a537 Author: xhaa123 Date: Sat Nov 2 18:20:44 2024 +0800 python-cairo 1.26.0-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..edf5267 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-cairo +pkgver=1.26.0 +pkgrel=1 +pkgdesc="Python bindings for the cairo graphics library" +arch=('x86_64') +url="https://pycairo.readthedocs.io/en/latest" +license=('LGPL2.1' 'MPL') +depends=('python' 'cairo') +makedepends=('meson') +source=(https://github.com/pygobject/pycairo/releases/download/v${pkgver}/py${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(2dddd0a874fbddb21e14acd9b955881ee1dc6e63b9c549a192d613a907f9cbeb) + +build() { + cd py${pkgname#*-}-${pkgver} + + meson setup build --prefix=/usr --buildtype=release + + meson compile -C build +} + +package() { + cd py${pkgname#*-}-${pkgver} + + meson install -C build --destdir ${pkgdir} +}