# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: Sarah Hay <sarah@archlinux.org>

pkgname=xvidcore
pkgver=1.3.7
pkgrel=3
pkgdesc='XviD is an open source MPEG-4 video codec'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url=https://www.xvid.com/
license=(GPL)
depends=(glibc)
provides=(libxvidcore.so)
source=(https://downloads.xvid.com/downloads/xvidcore-${pkgver}.tar.gz)
sha256sums=('abbdcbd39555691dd1c9b4d08f0a031376a3b211652c0d8b3b8aa9be1303ce2d')

build() {
  cd xvidcore/build/generic

  ./configure \
    --prefix=/usr --build=${CHOST}
  make
}

package() {
  cd xvidcore/build/generic

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et:
