Date: Wednesday, January 29, 2020 @ 01:36:06
  Author: kpcyrd
Revision: 558376

Check tarball signature, patch failing test, add dolphin integration, install 
man page, make python-setuptools makedepends= only

Added:
  mat2/trunk/fix-test-perl-exiftool.patch
Modified:
  mat2/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |   27 ++++++++++++++++++++++-----
 fix-test-perl-exiftool.patch |   14 ++++++++++++++
 2 files changed, 36 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-01-29 00:42:16 UTC (rev 558375)
+++ PKGBUILD    2020-01-29 01:36:06 UTC (rev 558376)
@@ -3,21 +3,35 @@
 
 pkgname=mat2
 pkgver=0.10.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Metadata removal tool, supporting a wide range of commonly used file 
formats'
 url='https://0xacab.org/jvoisin/mat2'
 arch=('any')
 license=('LGPL3')
-depends=('python' 'python-setuptools' 'python-mutagen' 'python-cairo' 
'python-gobject' 'gdk-pixbuf2' 'poppler-glib' 'librsvg' 'perl-image-exiftool' 
'mailcap')
+depends=('python' 'python-mutagen' 'python-cairo' 'python-gobject' 
'gdk-pixbuf2' 'poppler-glib' 'librsvg' 'perl-image-exiftool' 'mailcap')
+makedepends=('python-setuptools')
 optdepends=(
   'ffmpeg: video support'
   'bubblewrap: sandboxing support'
 )
 checkdepends=('ffmpeg')
-source=(https://0xacab.org/jvoisin/mat2/-/archive/${pkgver}/mat2-${pkgver}.tar.bz2)
-sha512sums=('ae09d2fd2c53cdf7f4c8011c01b469ffdc01c586177c2b2a3e1bfb6d8be5f1a8832e1c0094eea66390941011fc45b57876fa26761cbc08f56d015c0dfac34b7b')
-b2sums=('72806939fde41e9195b85d2e8c714efb4fe975212a972f5a22b783c29367c188b246cd57ffbe9b2a233c49f423c540c28a17bf412e4e7b7f704ce94d3fb9eaea')
+source=(https://0xacab.org/jvoisin/mat2/-/archive/${pkgver}/mat2-${pkgver}.tar.gz
+        
https://0xacab.org/jvoisin/mat2/uploads/8c62aff50acf08820d5e2bbc30aca64e/mat2-${pkgver}.tar.gz.asc
+        fix-test-perl-exiftool.patch)
+sha512sums=('7434365766f5ba893b5b51e852d73af6b1dd562f3804e46b2aa5bf2097694d5465f0ddb5e401b157ed899a86caca2dd405424c5a7c86d66190cefd30eee3ba65'
+            'SKIP'
+            
'7d6419815e8801df2b153d0d5711f74329e0cf1717be4c1f83d1a63e450680d2f41329611f6c6b3aae28c2df529cdd16a502ccd6b8634a7ea4a3ef14369a45c9')
+b2sums=('3aeb1b5fb1e5b39d5a59e84de48a1fefed8afff31d7ae2827324b9d54eab8a95f28f0e1de94d6c96ba250249531782f4a2cff4a82fdccc85da7382d00294fdaf'
+        'SKIP'
+        
'35f48327677b4f9dbbc55aa84ff10743b8ca5cffe1f8ce7a193bb20658673cf7c25d0bc47963854a7e42fce14715a36ca22dcbf302302367308b196409bed7b1')
 
+validpgpkeys=('9FCDEE9E1A381F311EA62A7404D041E8171901CC') # Julien (jvoisin) 
Voisin
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch --forward --strip=1 --input="${srcdir}/fix-test-perl-exiftool.patch"
+}
+
 build() {
   cd ${pkgname}-${pkgver}
   python setup.py build
@@ -31,6 +45,9 @@
 package() {
   cd ${pkgname}-${pkgver}
   python setup.py install --skip-build -O1 --root="${pkgdir}"
+  install -Dm 644 dolphin/mat2.desktop -t 
"${pkgdir}/usr/share/kservices5/ServiceMenus"
+  install -Dm 644 doc/mat2.1 -t "${pkgdir}/usr/share/man/man1"
+  install -Dm 644 doc/*.md -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:

Added: fix-test-perl-exiftool.patch
===================================================================
--- fix-test-perl-exiftool.patch                                (rev 0)
+++ fix-test-perl-exiftool.patch        2020-01-29 01:36:06 UTC (rev 558376)
@@ -0,0 +1,14 @@
+--- a/tests/test_libmat2.py
++++ b/tests/test_libmat2.py
+@@ -449,9 +449,10 @@ class TestCleaning(unittest.TestCase):
+                 'HandlerType': 'Metadata',
+                 'HandlerVendorID': 'Apple',
+                 'MajorBrand': 'MP4  Base Media v1 [IS0 14496-12:2003]',
++                'MediaDataOffset': 48,
++                'MediaDataSize': 379872,
+                 'MediaHeaderVersion': 0,
+                 'MinorVersion': '0.2.0',
+-                'MovieDataOffset': 48,
+                 'MovieHeaderVersion': 0,
+                 'NextTrackID': 3,
+                 'PreferredRate': 1,

Reply via email to