summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9184f8788a64d7fa47b6bc101bb405e57a60088f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
# Co-Maintainer: Corax
pkgname=('python-mediainfodll' 'python2-mediainfodll')
pkgbase=python-mediainfodll
pkgver=19.09
pkgrel=1
pkgdesc="Python shared library for reading metadata from media files"
arch=('any')
url="https://github.com/MediaArea/MediaInfoLib"
license=('BSD 2-Clause')
source=("MediaInfoLib-$pkgver.tar.gz::https://github.com/MediaArea/MediaInfoLib/archive/v$pkgver.tar.gz")
sha256sums=('4cc409f6e5a0bfa95f8c48d95d31054a4f7b7ef0d03b1ab38abcd534d8688038')

package_python-mediainfodll() {
	pkgdesc="Python 3 shared library for reading metadata from media files"
	depends=('libmediainfo' 'python')

	cd "MediaInfoLib-$pkgver"
	install -Dm644 "Source/MediaInfoDLL/MediaInfoDLL.py" \
		"$pkgdir/usr/lib/python3.7/site-packages/MediaInfoDLL.py"
	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_python2-mediainfodll() {
	pkgdesc="Python 2 shared library for reading metadata from media files"
	depends=('libmediainfo' 'python2')

	cd "MediaInfoLib-$pkgver"
	install -Dm644 "Source/MediaInfoDLL/MediaInfoDLL.py" \
		"$pkgdir/usr/lib/python2.7/site-packages/MediaInfoDLL.py"
	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}