# $Id: PKGBUILD 341122 2018-06-06 09:36:31Z jsteel $
# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: yugrotavele <yugrotavele at archlinux dot us>
# Contributor: Varun Acharya <varun@archlinux.org>
# Contributor: Nicolai Lissner <nlissne@linux01.gwdg.de>

pkgname=dvdbackup
pkgver=0.4.2
pkgrel=4
pkgdesc="Tool to rip video DVDs from the command line"
arch=('x86_64')
url="https://dvdbackup.sourceforge.net"
license=('GPL3')
depends=('libdvdread')
optdepends=('libdvdcss: to decrypt encrypted DVDs')
source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz)
sha512sums=('df9abb2ca0b8a7cd7855ddff94dae249b06b2ec0ee42f3e9c53aa46aebd9885bdf26dacecbd4a20ff5f642ea10c0c64b811d25c23802c8a2b1489281900fbe0d')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr

  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}
