75 lines
3.1 KiB
Bash
75 lines
3.1 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=mat2
|
|
pkgver=0.13.4
|
|
pkgrel=04
|
|
pkgdesc='Metadata removal tool, supporting a wide range of commonly used file formats'
|
|
url='https://0xacab.org/jvoisin/mat2'
|
|
depends=('python' 'python-mutagen' 'python-cairo' 'python-gobject' 'gdk-pixbuf2' 'poppler-glib' 'librsvg' 'perl-image-exiftool' 'mailcap' 'hicolor-icon-theme')
|
|
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
|
optdepends=('ffmpeg: video support'
|
|
'bubblewrap: sandboxing support')
|
|
checkdepends=('ffmpeg')
|
|
conflicts=(mat mat2-git)
|
|
provides=(mat)
|
|
#source=("git+https://0xacab.org/jvoisin/${pkgname}.git")
|
|
source=(https://0xacab.org/jvoisin/mat2/-/archive/${pkgver}/mat2-${pkgver}.tar.gz
|
|
https://0xacab.org/jvoisin/mat2/uploads/95d1f3782dfc731545fd9b467c594cb2/mat2-0.13.4.tar.gz.asc
|
|
tests-VideoFullRangeFlag.patch::https://0xacab.org/jvoisin/mat2/-/commit/bbd5b2817c9d64013e2f5ed670aca8d4738bb484.patch
|
|
manpage-location.patch::https://0xacab.org/jvoisin/mat2/-/commit/a3081bce47bc475a7afaa25e834e8afe399dc350.patch)
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
patch -Np1 -i ../tests-VideoFullRangeFlag.patch
|
|
patch -Np1 -i ../manpage-location.patch
|
|
}
|
|
|
|
#pkgver() {
|
|
# cd "${srcdir}/${pkgname}"
|
|
# local ver="$(git describe --tags | sed 's|-|\.|g')"
|
|
# printf "%s" "${ver//-/.}"
|
|
#}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
python -m unittest discover -v
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
|
# This desktop is made only for KDE/plasma use and only works with kdialog installed
|
|
# new install -Dm 644 dolphin/mat2.desktop -t "${pkgdir}/usr/share/kio/servicemenus"
|
|
# old install -Dm 644 dolphin/mat2.desktop -t "${pkgdir}/usr/share/kservices5/ServiceMenus"
|
|
# edit your own install -Dm 644 dolphin/mat2.desktop -t "${pkgdir}/usr/share/applications"
|
|
install -Dm 644 data/mat2.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
|
|
install -Dm 644 doc/*.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('LGPL3')
|
|
|
|
validpgpkeys=('9FCDEE9E1A381F311EA62A7404D041E8171901CC') # Julien (jvoisin) Voisin
|
|
|
|
sha256sums=(dbd30f33edd9b99042b3d9ec2b5e7e9c9a08bba4318bcf3fa63be8854cc871db # mat2-0.13.4.tar.gz
|
|
b2100acfcdadf2d5b3bc116298e4bd0a073954d04f9c455c04b01590aaa680bf # mat2-0.13.4.tar.gz.asc
|
|
e7bf3fab23a6c51a3b4e6c4b4396f61060db970a8d10b7db5446639ef6ba37df # tests-VideoFullRangeFlag.patch
|
|
43e0800e108b60fbb32b23fada2821366302841fcffafc0fe897e21e15d9891a) # manpage-location.patch
|
|
|
|
## 66390651cd3a5dd792310ebfd3c4301c5570e61a85587a4dc68d7fc01109b2c2 mat2-0.13.4-04-x86_64.pkg.tar.lz
|
|
dbd30f33edd9b99042b3d9ec2b5e7e9c9a08bba4318bcf3fa63be8854cc871db mat2-0.13.4.tar.gz
|
|
b2100acfcdadf2d5b3bc116298e4bd0a073954d04f9c455c04b01590aaa680bf mat2-0.13.4.tar.gz.asc
|