diff options
author | Carsten Teibes | 2016-05-29 01:25:29 +0200 |
---|---|---|
committer | Carsten Teibes | 2016-05-29 01:25:29 +0200 |
commit | f7e5d27aac845a63a7ea951a5878f3f36f59b31f (patch) | |
tree | c2b71a86cfcb200e7c690b8e1b245dab5849cc99 | |
parent | d131a0bbe6ff33106ad5b35f28ec906e07cb4778 (diff) | |
download | aur-f7e5d27aac845a63a7ea951a5878f3f36f59b31f.tar.gz |
[fix] Replace outdated FFMPEG enum and type
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 8 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = corsix-th pkgdesc = Reimplementation of the game engine of Theme Hospital pkgver = 0.50 - pkgrel = 2 + pkgrel = 3 url = https://github.com/CorsixTH/CorsixTH install = corsix-th.install arch = i686 @@ -4,7 +4,7 @@ pkgname=corsix-th pkgver=0.50 -pkgrel=2 +pkgrel=3 pkgdesc='Reimplementation of the game engine of Theme Hospital' url='https://github.com/CorsixTH/CorsixTH' arch=('i686' 'x86_64' 'armv7h') @@ -20,11 +20,14 @@ sha256sums=('822cb5b4a4ec863ba410b6a37e456b360516b2362337532689070e4555c037ee' '3614197a30498774fff4055ee54d82a812a8b88eba353b70c3288a09ff700158') prepare() { + cd CorsixTH-$pkgver + # fix location in .desktop entry - cp -up CorsixTH-$pkgver/DebianPackage/usr/share/applications/CorsixTH.desktop $pkgname.desktop - sed 's/games/share/g' -i $pkgname.desktop + sed 's/games/share/g' DebianPackage/usr/share/applications/CorsixTH.desktop > ../$pkgname.desktop # fix crash in ffmpeg 2.8+ - patch -d CorsixTH-$pkgver -Np1 < $pkgname-fix-parameters-to-sws_scale.patch + patch -Np1 < ../$pkgname-fix-parameters-to-sws_scale.patch + # fix compilation with recent ffmpeg + sed 's/PIX_FMT_RGB24/AV_&/g;s/PixelFormat/AV&/g' -ibak CorsixTH/Src/th_movie.{cpp,h} } build() { |