summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d25f41366d5e7ea1b837b5843279106a24684eb (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
41
42
43
44
45
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=libdvdread-git
pkgver=6.1.3.9.gba2227b
pkgrel=1
pkgdesc="Library to access DVD disks. (GIT version)"
arch=('x86_64')
license=('GPL2')
url='https://dvdnav.mplayerhq.hu'
depends=('libdvdcss')
makedepends=('git')
provides=(
  'libdvdread'
  'libdvdread.so'
)
conflicts=('libdvdread')
source=('git+https://code.videolan.org/videolan/libdvdread.git')
sha256sums=('SKIP')

pkgver() {
  cd libdvdread
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build
}

build() {
  cd libdvdread
  autoreconf -vif

  cd "${srcdir}/build"
  ../libdvdread/configure \
    --prefix=/usr \
    --enable-static=no \
    --with-libdvdcss

  make
}

package() {
  depends+=('libdvdcss.so')
  make -C build DESTDIR="${pkgdir}" install
}