blob: 13a01707d6e7f29a56a6208898f02780d2a2ce45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Maintainer: Corax <cor dot ax26 at gmail dot com>
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-mediainfodll
pkgver=24.06
pkgrel=1
epoch=1
pkgdesc="Python shared library for reading metadata from media files"
arch=('any')
url="https://github.com/MediaArea/MediaInfoLib"
license=('BSD 2-Clause')
depends=('libmediainfo' 'python')
source=("MediaInfoLib-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('2a569dca09d953a38bf4ba0f47ba5415183c79436babb09e1202ebc3a54aa046')
package() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "MediaInfoLib-$pkgver"
install -Dm644 Source/MediaInfoDLL/MediaInfoDLL3.py -t "$pkgdir/$site_packages"
install -Dm644 License.html -t "$pkgdir/usr/share/licenses/$pkgname"
}
|