summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47ce4e72d751f0eab54775117a4da3b9a58a7ddf (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
# Maintainer: Michael Riegert <michael at eowyn net>
# Contributor: Alex Mekkering <amekkering at gmail dot com>

pkgname=libavresample
pkgver=4.4.1
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
}