blob: 9fd51f3b13628ec68ff27a866bd64ea5e0004dd3 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Michael Picht <mipi@fsfe.org>
_pkgorg=gitlab.com/mipimipi
pkgname=otr
pkgver=0.11.5
pkgrel=1
pkgdesc="Decode and cut video files from Online TV Recorder (OTR)"
arch=(
aarch64
x86_64
)
url="https://$_pkgorg/$pkgname"
license=(GPL3)
source=("https://${_pkgorg}/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('de296e20753465ea1d68f04812b976a7664577850a5a6ea0ee3b680d11989c94')
validpgpkeys=(11ECD6695134183B3E7AF1C2223AAA374A1D59CE) # Michael Picht <mipi@fsfe.org>
conflicts=(otr-git)
depends=(
ffmpeg
ffms2
)
makedepends=(
bash
cargo
git
make
)
options=(
!debug
)
prepare() {
cd "${pkgname}-${pkgver}" || return
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname}-${pkgver}" || return
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
make BUILD_FLAGS="--frozen"
}
package() {
cd "${pkgname}-${pkgver}" || return
make DESTDIR="$pkgdir" install
install -Dm644 resources/otr.desktop "$pkgdir/usr/share/applications/otr.desktop"
install -Dm644 resources/otrkey_mime.xml "$pkgdir/usr/share/mime/packages/otrkey_mime.xml"
}
|