68 lines
2.3 KiB
Bash
68 lines
2.3 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=02
|
|
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')
|
|
makedepends=(python-setuptools)
|
|
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)
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
# patch -i ../ed0ffa5693b6d710b19a9101d6cb0625f8b6f1fc.patch
|
|
# patch --forward --strip=1 --input=../mat2-fix-tests.patch
|
|
}
|
|
|
|
#pkgver() {
|
|
# cd "${srcdir}/${pkgname}"
|
|
# local ver="$(git describe --tags | sed 's|-|\.|g')"
|
|
# printf "%s" "${ver//-/.}"
|
|
#}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
python -m unittest discover -v
|
|
}
|
|
|
|
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 data/mat2.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
|
|
install -Dm 644 doc/mat2.1 -t "${pkgdir}/usr/share/man/man1"
|
|
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
|
|
|
|
## bb9ba3f1e2325805952e3bd7497df848ea83b09511bf77cc3309f0b4079edfbe mat2-0.13.4-02-x86_64.pkg.tar.lz
|