summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc8d1660de3d3ccbc83394608b7499a07bcb9833 (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
33
34
# Maintainer: neeshy <neeshy@tfwno.gf>
pkgname=webm
pkgver=0.12.1
pkgrel=1
pkgdesc="Cross-platform command-line WebM converter"
arch=('any')
url="https://github.com/Kagami/webm.py"
license=('custom:CC0')
depends=('python' 'ffmpeg')
optdepends=('mpv: for interactive mode')
makedepends=('python-setuptools')
source=("https://github.com/Kagami/webm.py/archive/v$pkgver.tar.gz"
        "mpv-options.patch"
        "drop-python2-support.patch")
sha256sums=('786244edc928583a49e210cbb5533d192bf9ad31bc82eb0a66d393964db119c8'
            'ddaf7c409fb7e0d6a50c638338b1d18fb2df3f7555503d6c9d0e5054703ad958'
            '70308ed9a2f0a3d9fc445fec5a8cebf8f8e7fb51686af2a9fcc77953094bce0d')

prepare() {
  cd "$srcdir/webm.py-$pkgver"
  patch -Np1 -i "$srcdir/mpv-options.patch"
  patch -Np1 -i "$srcdir/drop-python2-support.patch"
}

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

package() {
  cd "$srcdir/webm.py-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}