1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
2 # Contributor: Francois Boulogne <devel at sciunto dot org>
7 pkgdesc='Metadata removal tool, supporting a wide range of commonly used file formats'
8 url='https://0xacab.org/jvoisin/mat2'
11 depends=('python' 'python-mutagen' 'python-cairo' 'python-gobject' 'gdk-pixbuf2' 'poppler-glib' 'librsvg' 'perl-image-exiftool' 'mailcap')
12 makedepends=('python-setuptools')
14 'ffmpeg: video support'
15 'bubblewrap: sandboxing support'
17 checkdepends=('ffmpeg')
18 source=(https://0xacab.org/jvoisin/mat2/-/archive/${pkgver}/mat2-${pkgver}.tar.gz
19 https://0xacab.org/jvoisin/mat2/uploads/672c73a1b8b0e79cdf7187900f3cc8ca/mat2-0.13.3.tar.gz.asc
20 https://0xacab.org/jvoisin/mat2/-/commit/ed0ffa5693b6d710b19a9101d6cb0625f8b6f1fc.patch
21 mat2-fix-tests.patch::https://0xacab.org/jvoisin/mat2/-/commit/daa17a3e9c3e7ac5a97e7c7ab10a382abd7d7562.patch)
22 sha512sums=('48405de214b69e6d6fe818580ce758817632a4a3ab6cc6b73e7c13d0db2d5cd75a4ffffab22ce1b5dc73a6cc03da9436e44e290f74700027277ec18db023a6fb'
24 '2871800a28883c40a7779498692fea480f6e75f8412db3269494b62170a6d0439c109c857a52b33270596b2e3e9f0716c18ed16cde0533944acacaea501376c9'
25 'f6f655ce864be3d6a5a79a45d0a3300f858ea16ecfce9721454a9c9e459d5aed605a2920bbe10db4c8882df107589acc852719122cb2f36ec894e34250dd060c')
26 b2sums=('26ace57f5ac8ba2444a389615cb89f30e27a89f2e704620dcf0e0999f9643d7b46f6a920ead1ee747c1ac7f818cdb3fe0dcd3acf3b370545414aefd7e1c3850c'
28 '6e55c1be6d401860703267232e423de4cff2cc9141f0d058979d0f1aace08e4636b59e948c8dec1f5e8011f5299c503f091038466f661baf3dba8b75281e55de'
29 '6f0a2c0bab32758d4b472b37e6a6e6ad740ca5f2af0ecd1b31fcfcb662cbb8d07b56c6f6505f977f362d8b147d719a923f0276aa072a027d792fb11a4faac374')
31 validpgpkeys=('9FCDEE9E1A381F311EA62A7404D041E8171901CC') # Julien (jvoisin) Voisin
34 cd ${pkgname}-${pkgver}
35 patch -i ../ed0ffa5693b6d710b19a9101d6cb0625f8b6f1fc.patch
36 patch --forward --strip=1 --input=../mat2-fix-tests.patch
40 cd ${pkgname}-${pkgver}
45 cd ${pkgname}-${pkgver}
46 python -m unittest discover -v
50 cd ${pkgname}-${pkgver}
51 python setup.py install --skip-build -O1 --root="${pkgdir}"
52 install -Dm 644 dolphin/mat2.desktop -t "${pkgdir}/usr/share/kservices5/ServiceMenus"
53 install -Dm 644 doc/mat2.1 -t "${pkgdir}/usr/share/man/man1"
54 install -Dm 644 doc/*.md -t "${pkgdir}/usr/share/doc/${pkgname}"