blob: 32d779889ba4462d0e6f8370d36649b01fa8baaf (
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: David Parrish <daveparrish@tutanota.com>
# shellcheck disable=SC2034,SC2164
_pkgname=losslesscut
pkgname=losslesscut-bin
pkgver=3.64.0
pkgrel=1
pkgdesc="Crossplatform GUI tool for lossless trimming/cutting of video/audio files"
arch=('x86_64')
url="https://github.com/mifi/lossless-cut"
license=('MIT')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
depends=('nss' 'ffmpeg' 'gtk3' 'libxss')
source_x86_64=("$pkgname-$pkgver.tar.bz2::https://github.com/mifi/lossless-cut/releases/download/v$pkgver/LosslessCut-linux-x64.tar.bz2"
"losslesscut.desktop"
"LICENSE"
"https://raw.githubusercontent.com/mifi/lossless-cut/26b4dc13c2c42b88dda6bf0eafd47b17e47f1bed/src/renderer/src/icon.svg")
sha256sums_x86_64=('2cd374976a41b6e91635e7c754cbbc9fc24cce62a6d6891cf341017fe02b0d35'
'87827ee65955d49c40327ba958b15d054cc107cf8e56de7cf1f93d4bc2b6fca5'
'48affed7162fc2e76f1cd47b50355181b869b4025ff04c2a53b03854e329dca0'
'd3d3da3f403ce1b9f846ae2a38a8fe9938fc458024352a9741b59a920eefacf9')
package() {
cd "${srcdir:?}"
mkdir -p "${pkgdir:?}"/usr/{share/losslesscut,bin}
cd LosslessCut-linux-x64
tar -cf - . | tar -C "$pkgdir/usr/share/losslesscut" -xvf -
ln -s /usr/share/losslesscut/losslesscut "$pkgdir"/usr/bin/losslesscut
install -Dm644 ../losslesscut.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
install -Dm644 ../icon.svg "$pkgdir"/usr/share/pixmaps/$_pkgname.svg
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|