summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efd2e7174595d274d86c01b0c8f0c9592cffe802 (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
# Maintainer: Hezekiah Michael <spiritomb at protonmail dot com>

pkgbase='python-pymkv'
pkgname=('python-pymkv')
_module='pymkv'
pkgver='1.0.8'
pkgrel=1
pkgdesc="A Python wrapper for mkvmerge that provides support for muxing, splitting, linking, chapters, tags, and attachments."
url="https://github.com/sheldonkwoodward/pymkv"
depends=('python' 'mkvtoolnix-cli' 'python-iso639' 'python-bitmath')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('194abf99a8f43eef89103c09529af6e73f9c143fe0b54fa7634d49943408442b')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    depends+=()
    cd "${srcdir}/${_module}-${pkgver}"
    install -D -m644 LICENSE.txt -t "${pkgdir}/usr/share/licences/${pkgname}/LICENSE.txt"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}