# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=ogmtools
pkgver=1.5
pkgrel=9
pkgdesc="Information, extraction or creation for OGG media streams"
arch=('x86_64')
url='https://www.bunkus.org/videotools/ogmtools'
license=('GPL')
depends=('libvorbis' 'libdvdread' 'gcc-libs')
source=("https://www.bunkus.org/videotools/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
  make
}

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