# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=libmpeg2
pkgver=0.5.1
pkgrel=10
pkgdesc='Library for decoding MPEG-1 and MPEG-2 video streams'
arch=('x86_64')
url='https://libmpeg2.sourceforge.io/'
license=('GPL-2.0-or-later')
depends=('glibc')
source=("https://libmpeg2.sourceforge.io/files/$pkgname-$pkgver.tar.gz")
b2sums=('29b71740fa601c668a8f5b0a43aa763bda2fc66587f5bff847d4bc6d03dd831abe46428616b770aaaabf2d42877daad8c305ab4dd988cc91a4c90decfcc19c9a')

prepare() {
  cd $pkgname-$pkgver
  autoreconf -fi
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
