2 changed files with 90 additions and 0 deletions
@ -0,0 +1,45 @@
|
||||
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org> |
||||
# Contributor: Francois Boulogne <devel at sciunto dot org> |
||||
|
||||
pkgname=mat2 |
||||
pkgver=0.12.4 |
||||
pkgrel=1 |
||||
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-mutagen' 'python-cairo' 'python-gobject' 'gdk-pixbuf2' 'poppler-glib' 'librsvg' 'perl-image-exiftool' 'mailcap') |
||||
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') |
||||
optdepends=( |
||||
'ffmpeg: video support' |
||||
'bubblewrap: sandboxing support' |
||||
) |
||||
checkdepends=('ffmpeg') |
||||
source=(https://0xacab.org/jvoisin/mat2/-/archive/${pkgver}/mat2-${pkgver}.tar.gz |
||||
https://0xacab.org/jvoisin/mat2/uploads/22c4479cbd0f281457309903280ca104/mat2-0.12.4.tar.gz.asc) |
||||
sha512sums=('20936c80d0fa31dae9ee14c3d853c0e63a87b2d3ad5838a17bdbbc3e7cb4cf73462c9a9573d2aeab6e4ab0d6c18ce24c63a80e1a7cd044724c8ecc639d13da80' |
||||
'SKIP') |
||||
b2sums=('161d92dfea16c7ab5a09e9271b5cd4fbd64ddeaca18187395ff3ffb5671d5fc5d98c70d2a081c566148cbed7b6c9923ca87f732552d0172cb841030edbf70192' |
||||
'SKIP') |
||||
|
||||
validpgpkeys=('9FCDEE9E1A381F311EA62A7404D041E8171901CC') # Julien (jvoisin) Voisin |
||||
|
||||
build() { |
||||
cd ${pkgname}-${pkgver} |
||||
python -m build --no-isolation --wheel |
||||
} |
||||
|
||||
check() { |
||||
cd ${pkgname}-${pkgver} |
||||
python -m unittest discover -v |
||||
} |
||||
|
||||
package() { |
||||
cd ${pkgname}-${pkgver} |
||||
python -m installer --destdir="$pkgdir" dist/*.whl |
||||
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: |
@ -0,0 +1,45 @@
|
||||
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org> |
||||
# Contributor: Francois Boulogne <devel at sciunto dot org> |
||||
|
||||
pkgname=mat2 |
||||
pkgver=0.12.4 |
||||
pkgrel=1 |
||||
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-mutagen' 'python-cairo' 'python-gobject' 'gdk-pixbuf2' 'poppler-glib' 'librsvg' 'perl-image-exiftool' 'mailcap') |
||||
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') |
||||
optdepends=( |
||||
'ffmpeg: video support' |
||||
'bubblewrap: sandboxing support' |
||||
) |
||||
checkdepends=('ffmpeg') |
||||
source=(https://0xacab.org/jvoisin/mat2/-/archive/${pkgver}/mat2-${pkgver}.tar.gz |
||||
https://0xacab.org/jvoisin/mat2/uploads/22c4479cbd0f281457309903280ca104/mat2-0.12.4.tar.gz.asc) |
||||
sha512sums=('20936c80d0fa31dae9ee14c3d853c0e63a87b2d3ad5838a17bdbbc3e7cb4cf73462c9a9573d2aeab6e4ab0d6c18ce24c63a80e1a7cd044724c8ecc639d13da80' |
||||
'SKIP') |
||||
b2sums=('161d92dfea16c7ab5a09e9271b5cd4fbd64ddeaca18187395ff3ffb5671d5fc5d98c70d2a081c566148cbed7b6c9923ca87f732552d0172cb841030edbf70192' |
||||
'SKIP') |
||||
|
||||
validpgpkeys=('9FCDEE9E1A381F311EA62A7404D041E8171901CC') # Julien (jvoisin) Voisin |
||||
|
||||
build() { |
||||
cd ${pkgname}-${pkgver} |
||||
python -m build --no-isolation --wheel |
||||
} |
||||
|
||||
check() { |
||||
cd ${pkgname}-${pkgver} |
||||
python -m unittest discover -v |
||||
} |
||||
|
||||
package() { |
||||
cd ${pkgname}-${pkgver} |
||||
python -m installer --destdir="$pkgdir" dist/*.whl |
||||
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: |
Loading…
Reference in new issue