summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69a2aa57db4af871c14d0bc23422641d10b1a1a4 (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
# Maintainer: Alex Mekkering <amekkering at gmail dot com>

pkgname=libavresample
pkgver=4.1.3
pkgrel=1
pkgdesc="libavresample from the ffmpeg package because it's been excluded due to deprecation"
arch=('x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url=https://ffmpeg.org/
license=(GPL3)
depends=(
  ffmpeg
)
makedepends=(
  git
  nasm
)
provides=(
  libavresample.so
)
source=(git+https://git.ffmpeg.org/ffmpeg.git#tag=n${pkgver})
sha256sums=("SKIP")

build() {
  cd ffmpeg

  ./configure --prefix=/usr --disable-all --disable-static --enable-shared --enable-manpages --enable-avresample

  make
}

package() {
  make DESTDIR="${pkgdir}" -C ffmpeg install install-man

  # Remove items owned by ffmpeg
  rm -r ${pkgdir}/usr/share
  rm -r ${pkgdir}/usr/include/libavutil
  rm  ${pkgdir}/usr/lib/libavutil.so*
  rm  ${pkgdir}/usr/lib/pkgconfig/libavutil.pc
}