summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ba0d8cc6470da8ef16f26fe0e8e01c34882e0e2 (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
# Maintainer: Helg1980 <depositmail@rambler.ru>
pkgname=cine-encoder
_name=${pkgname#python-}
pkgver=2.2
pkgrel=1
pkgdesc="Cine Encoder 2020SE"
arch=(x86_64)
url="https://github.com/CineEncoder/cine-encoder.git"
license=('GPL')
depends=('mkvtoolnix-cli' 'ffmpeg' 'mediainfo' 'python>=3.8.3' 'python-pyqt5' 'python-pymediainfo')
source=("https://github.com/CineEncoder/cine-encoder/archive/2.2.tar.gz")
md5sums=('SKIP')

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

package() {
  cd "${srcdir}/cine-encoder-${pkgver}"
  python setup.py install --root="$pkgdir/" --skip-build  --optimize=1
  # install documentation
  install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
  # install license
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  # install icon
  install -Dm644 cine-encoder/cine-encoder.png -t "${pkgdir}/usr/share/icons/hicolor/64x64/apps/"
  # install .desktop
  install -Dm644 cine-encoder/cine-encoder.desktop -t "${pkgdir}/usr/share/applications/"

}